Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
humanagent committed Dec 26, 2024
1 parent d2749f9 commit d96b953
Show file tree
Hide file tree
Showing 4 changed files with 2,198 additions and 1,750 deletions.
8 changes: 1 addition & 7 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import { FarcasterAgentClient } from "@elizaos/client-farcaster";
import { LensAgentClient } from "@elizaos/client-lens";
import { SlackClientInterface } from "@elizaos/client-slack";
import { TelegramClientInterface } from "@elizaos/client-telegram";
import { XmtpClientInterface } from "@elizaos/client-xmtp";
import { TwitterClientInterface } from "@elizaos/client-twitter";
import { paymentagent as defaultCharacter } from "./paymentagent";
import {
AgentRuntime,
CacheManager,
Character,
Clients,
DbCacheAdapter,
defaultCharacter,
elizaLogger,
FsCacheAdapter,
IAgentRuntime,
Expand Down Expand Up @@ -384,11 +383,6 @@ export async function initializeClients(
if (telegramClient) clients.telegram = telegramClient;
}

if (clientTypes.includes(Clients.XMTP)) {
const xmtpClient = await XmtpClientInterface.start(runtime);
if (xmtpClient) clients.xmtp = xmtpClient;
}

if (clientTypes.includes(Clients.TWITTER)) {
const twitterClient = await TwitterClientInterface.start(runtime);

Expand Down
10 changes: 10 additions & 0 deletions docs/docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ TWITTER_EMAIL= # Account email
TELEGRAM_BOT_TOKEN=your_token_here
```

### XMTP Agent

1. Create a wallet
2. Export private key

```bash
EVM_PRIVATE_KEY=your_private_key
TEST_ENCRYPTION_KEY=another_private_key
```

## Optional: GPU Acceleration

If you have an NVIDIA GPU:
Expand Down
9 changes: 4 additions & 5 deletions packages/client-xmtp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ export const XmtpClientInterface: Client = {

elizaLogger.success("✅ XMTP client started");
elizaLogger.info(`XMTP address: ${xmtp.address}`);
elizaLogger.info(`Share it on `);
elizaLogger.info(`Talk to me on:`);
elizaLogger.log(
`💬 Converse: https://converse.xyz/dm/${xmtp.address}`
`Converse: https://converse.xyz/dm/${xmtp.address}`
);
elizaLogger.log(
`💬 Coinbase Wallet: https://go.cb-w.com/messaging?address=${xmtp.address}`
`Coinbase Wallet: https://go.cb-w.com/messaging?address=${xmtp.address}`
);
elizaLogger.log(
`🖼️ Share in Farcaster (Framev2): https://frames.message-kit.org/dm/${xmtp.address}`
`Web or Farcaster Frame: https://client.message-kit.org/?address=${xmtp.address}`
);

return xmtp;
Expand Down Expand Up @@ -173,7 +173,6 @@ const onMessage = async (message: Message) => {
return [memory];
}
);
console.log("newMessage", _newMessage);
for (const newMsg of _newMessage) {
await xmtp.send({
message: newMsg.text,
Expand Down
Loading

0 comments on commit d96b953

Please sign in to comment.