This Discord bot seamlessly retrieves real-time cryptocurrency prices from both Firi and CoinGecko, updating its nickname and presence with the latest information. Designed primarily for a Norwegian audience, it prioritizes displaying prices in NOK over USD.
- Click on the following link to invite the bot for BTC price: Invite BTC Price Bot
- Follow the on-screen instructions to authorize the bot and select the server where you want it to operate.
- Click on the following link to invite the bot for ETH price: Invite ETH Price Bot
- Follow the on-screen instructions to authorize the bot and select the server where you want it to operate.
Make sure to authorize the bot with the necessary permissions to ensure seamless operation. Enjoy tracking cryptocurrency prices in your Discord server!
- Fetches the current price of a cryptocurrency from Firi and CoinGecko.
- Updates its nickname with the price from Firi.
- Updates its presence with the price from CoinGecko.
- Checks if the bot has permission to change its nickname.
The bot uses the following environment variables:
DISCORD_TOKEN
: The bot's Discord token.CRYPTO
: The cryptocurrency to fetch the price for from Firi (default is "ETH").CRYPTOGECKO
: The cryptocurrency to fetch the price for from CoinGecko (default is "ethereum").
- Clone the repository.
- Install the dependencies with
npm install
. - Set the environment variables.
- Start the bot with
npm start
.
- discord.js
- node-fetch
- dotenv
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.