This project deploys a text-based chatgpt-like bot on xmtp network.
pnpm i
pnpm run build
By default, your bot will have a new address every time you start it up. That's ideal. If you have a private key, you can encode it to a hex string and set the KEY
environment variable. Your bot will then use this key to connect to the network.
pnpx tsx gen-wallet.ts
This will print the generated wallet address and the private key.
By default, the bot connects to the dev
network. If you want to connect to production, specify XMTP_ENV=production
.
Adapted from (XMTP Bot Starter)[https://github.com/xmtp/xmtp-bot-starter]