A lightweight toolkit for app developers to test messaging functionality against XMTP bots.
Send a message to
0x5348Ca464c55856AcfEE5F4490d12BF51D24B01F
- Node.js (20.18.0)
- Yarn
git clone https://github.com/xmtp/xmtp-qa-testing
cd xmtp-qa-testing
yarn install
If you need to run the test bot locally:
yarn bot
This will return the address of the bot
In the example the public key is 0x6Cb6aA63AA37E42B4741430cE6a5A8d236C1b14F
Command | Description |
---|---|
gm |
Returns gm to your message |
/create [5] |
Creates a test group with simulated users and conversation |
/rename [name] |
Rename the current group |
/add [name] |
Add the name of a persona to the group |
/remove [name] |
Remove the name of a persona from the group |
/groups |
List all active groups |
/members |
List all members in the current group |
/broadcast [message] |
Broadcast a message to all participants in the current group |
/leave |
Leave the current group |
/info |
Get info about the current group |
/workers |
List all available workers |
Create a .env
file with the following configuration:
LOGGING_LEVEL="off" # off, error, warn, info, debug, trace
XMTP_ENV="dev" # dev, production
OPENAI_API_KEY="sk-proj-..." # OpenAI API key
- If a persona does not exist, its keys are created.
- If persona exists uses the existing env file keys and .data folder
- If the data folder doesnt exist, it creates one
- Personas prefixed with "random" have keys that are stored only in memory.
See more about workers in the workers section file