- Clone this repo
git clone https://github.com/zhenyangg/umbrella-network-price-bot.git
- Create your Discord bot here
- Set up environment variables:
- Create a .env file in the project root folder
- Input the following in the file:
DISCORD_BOT_TOKEN=XXX UMBRELLA_API_KEY=XXX UMBRELLA_API_URL=https://api.dev.umb.network UMBRELLA_REGISTRY_CONTRACT_ADDRESS=XXX BLOCKCHAIN_PROVIDER_URL=https://kovan.infura.io/v3/YOUR_KEY_HERE
- DISCORD_BOT_TOKEN How to get
- UMBRELLA_API_KEY How to get
- UMBRELLA_API_URL Available networks
- BLOCKCHAIN_PROVIDER_URL Get from infura
- Run
node bot.js
- Go to https://discord.com/api/oauth2/authorize?client_id=868744432411873280&permissions=0&scope=bot
- Add it to your server
- Once added, the default ticker price shown will be BTC.
!tickers
!eth