A Discord Bot that tracks crypto using the CoinGecko API
- Fetches coin price every 60 seconds and sets it as its nickname in each server
- Automatically changes nickname in each server to match live price (from CoinGecko API)
- Multiple instances can be run through just one app
- Download Zip file from github and unzip (or use the command line)
git clone https://github.com/ALEXA8596/CryptoTracker
cd CryptoTracker
- Install Dependencies
npm install
- Rename config.example.json to config.json and input your discord token for each coin
{
"coinName": {
"token": "discord token of bot"
},
"coinName2": {
"token": "discord token of bot"
}
}
- Run
node index.js
- You are able to customize the coins that are tracked through this app
- Add or delete specific coins to the config.json file
- Format:
{
"coinName": {
"token": "token"
}
}
- replace "coinName" with the coin's name found here and "token" with the discord bot token
- Ex: $USDT is referenced as "tether" in the coin gecko api, so the config would look like this:
{ "tether": { "token": "discord token" } }
- the r/CryptoCurrency discord