A telegram bot which watches and sends message to the group when a swap above threshold amount takes place for the solana SPL-TOKEN on meteora pools. Currently, the bot is limited to 4 tokens per group (this can be modified in the by changing maxTokensPerGroup).
Create an .env file and add the following variables.
BOT_TOKEN=
DB_URI=
HELIUS_API_KEY=
BACKEND_RPC=
BIRDSEYE_API_KEY=
pnpm install
pnpm start
- setup - Setup the portal, add the bot to the group.
- config - Configure the bot; add/remove tokens to watch and modify their settings.
- Open chat with @MeteoraWhaleBot
- Enter command
/setup
. - Select the group you want to add the bot to.
- From the group chat, enter command
/config
. - Click on
Configure Bot
button, this redirects you to the bot DM. - Click on
Start
followed byAdd New Token
button. - Enter the token CA (eg. 3dCCbYca3jSgRdDiMEeV5e3YKNzsZAp3ZVfzUsbb4be4 for $BUTT).
- Congrats! The bot is now watching for swaps of $BUTT in the group.
- From the group chat, enter command
/config
. - Click on
Configure Bot
button, this redirects you to the bot DM. - Click on
Start
followed by token you want to modify. - Click on
Buy Amount
and enter the new minimum buy amount. - Done! The bot will now only notify you if the swap amount is above the new minimum buy amount.
To create a new migration, run the following command:
npx migrate-mongo create <migration-name>
This will create a new migration file in the migrations
folder, where required changes are to be specified. To run the migrations, use the following command:
npx migrate-mongo up
To rollback the migrations, use the following command:
npx migrate-mongo down