This bot listens to vault events and posts relevant information to Ribbon Auction Telegram group.
- Run
yarn install
- Create a new
.env
file with the following variables
BOT_TOKEN=<Telegram Bot Token>
CHAT_ID=<Telegram Chat ID>
WEBSOCKET_URL=<Infura or Alchemy RPC URL>
RPC_URL=<Infura or Alchemy RPC URL>
Notes:
- Create a new bot: https://core.telegram.org/bots#3-how-do-i-create-a-bot
- Get Chat ID: https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id
- Run
yarn test
- Testing uses past transaction hashes
/setstrike
: set the strike price (only used for ETH put for now) e.g. /setstrike ETHput 2800/getsizes
: get the estimated sizes for the auctions
The bot is deployed in a VM hosted by Google Cloud Compute service. It's run via tmux.