File tree 4 files changed +2198
-1750
lines changed
4 files changed +2198
-1750
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,14 @@ import { FarcasterAgentClient } from "@elizaos/client-farcaster";
6
6
import { LensAgentClient } from "@elizaos/client-lens" ;
7
7
import { SlackClientInterface } from "@elizaos/client-slack" ;
8
8
import { TelegramClientInterface } from "@elizaos/client-telegram" ;
9
- import { XmtpClientInterface } from "@elizaos/client-xmtp" ;
10
9
import { TwitterClientInterface } from "@elizaos/client-twitter" ;
11
- import { paymentagent as defaultCharacter } from "./paymentagent" ;
12
10
import {
13
11
AgentRuntime ,
14
12
CacheManager ,
15
13
Character ,
16
14
Clients ,
17
15
DbCacheAdapter ,
16
+ defaultCharacter ,
18
17
elizaLogger ,
19
18
FsCacheAdapter ,
20
19
IAgentRuntime ,
@@ -384,11 +383,6 @@ export async function initializeClients(
384
383
if ( telegramClient ) clients . telegram = telegramClient ;
385
384
}
386
385
387
- if ( clientTypes . includes ( Clients . XMTP ) ) {
388
- const xmtpClient = await XmtpClientInterface . start ( runtime ) ;
389
- if ( xmtpClient ) clients . xmtp = xmtpClient ;
390
- }
391
-
392
386
if ( clientTypes . includes ( Clients . TWITTER ) ) {
393
387
const twitterClient = await TwitterClientInterface . start ( runtime ) ;
394
388
Original file line number Diff line number Diff line change @@ -183,6 +183,16 @@ TWITTER_EMAIL= # Account email
183
183
TELEGRAM_BOT_TOKEN=your_token_here
184
184
```
185
185
186
+ ### XMTP Agent
187
+
188
+ 1 . Create a wallet
189
+ 2 . Export private key
190
+
191
+ ``` bash
192
+ EVM_PRIVATE_KEY=your_private_key
193
+ TEST_ENCRYPTION_KEY=another_private_key
194
+ ```
195
+
186
196
## Optional: GPU Acceleration
187
197
188
198
If you have an NVIDIA GPU:
Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ export const XmtpClientInterface: Client = {
57
57
58
58
elizaLogger . success ( "✅ XMTP client started" ) ;
59
59
elizaLogger . info ( `XMTP address: ${ xmtp . address } ` ) ;
60
- elizaLogger . info ( `Share it on ` ) ;
60
+ elizaLogger . info ( `Talk to me on: ` ) ;
61
61
elizaLogger . log (
62
- `💬 Converse: https://converse.xyz/dm/${ xmtp . address } `
62
+ `Converse: https://converse.xyz/dm/${ xmtp . address } `
63
63
) ;
64
64
elizaLogger . log (
65
- `💬 Coinbase Wallet: https://go.cb-w.com/messaging?address=${ xmtp . address } `
65
+ `Coinbase Wallet: https://go.cb-w.com/messaging?address=${ xmtp . address } `
66
66
) ;
67
67
elizaLogger . log (
68
- `🖼️ Share in Farcaster (Framev2) : https://frames .message-kit.org/dm/ ${ xmtp . address } `
68
+ `Web or Farcaster Frame : https://client .message-kit.org/?address= ${ xmtp . address } `
69
69
) ;
70
70
71
71
return xmtp ;
@@ -173,7 +173,6 @@ const onMessage = async (message: Message) => {
173
173
return [ memory ] ;
174
174
}
175
175
) ;
176
- console . log ( "newMessage" , _newMessage ) ;
177
176
for ( const newMsg of _newMessage ) {
178
177
await xmtp . send ( {
179
178
message : newMsg . text ,
You can’t perform that action at this time.
0 commit comments