Skip to content

Commit 8fb01a6

Browse files
committed
clean up
1 parent 7978d6f commit 8fb01a6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

packages/client-coinbase/src/index.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,17 @@ export class CoinbaseClient implements Client {
111111
await this.runtime.processActions(memory, [memory], state, callback);
112112

113113
// Generate tweet content
114-
const tweetContent = `🚀 ${event.event.toUpperCase()} for ${event.ticker}! Amount: $${amount}. Current price: $${event.price}. `;
114+
const formattedTimestamp = new Intl.DateTimeFormat('en-US', {
115+
hour: '2-digit',
116+
minute: '2-digit',
117+
second: '2-digit',
118+
timeZoneName: 'short'
119+
}).format(new Date(event.timestamp));
120+
121+
const tweetContent = `🚀 ${event.event.toUpperCase()} for ${event.ticker}!
122+
Amount: $${amount}.
123+
Price: $${event.price}.
124+
Time: ${formattedTimestamp} 🌀`;
115125

116126
try {
117127
elizaLogger.info("Tweet content:", tweetContent);

packages/client-direct/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"dependencies": {
2222
"@elizaos/core": "workspace:*",
2323
"@elizaos/plugin-image-generation": "workspace:*",
24+
"@elizaos/plugin-twitter": "workspace:*",
2425
"@types/body-parser": "1.19.5",
2526
"@types/cors": "2.8.17",
2627
"@types/express": "5.0.0",

0 commit comments

Comments
 (0)