Welcome to the Discord Bot designed to provide real-time updates and statistics for AI Power Grid (AIPG) cryptocurrency. This bot automatically creates and updates voice channels in your Discord server, displaying essential information such as difficulty, hashrate, block count, supply, price, and market cap.
- Real-time Updates: Stay informed with up-to-date statistics from the AI Power Grid blockchain.
- Automatic Channel Creation: The bot dynamically generates voice channels to display key metrics.
- Privacy Management: Channels are automatically set to private, restricting access to maintain data integrity.
Follow these steps to install, configure, and run the bot on your Discord server:
- Python installed on your machine.
- Discord account with the necessary permissions to add a bot to your server.
git clone https://github.com/gonner22/AIPG-Discord-Bot.git
cd AIPG-Discord-Bot
# On Windows
python -m venv venv
venv\Scripts\activate
# On macOS/Linux
python3 -m venv venv
source venv/bin/activate
pip install discord requests python-dotenv
- Create a file named .env in the project root.
- Add your Discord bot token to the .env file:
DISCORD_BOT_TOKEN=YOUR_BOT_TOKEN_HERE
- Set Permissions for .env
chmod 600 .env
This step ensures that only the owner of the file has read and write permissions, providing an extra layer of security for sensitive information.
python bot.py
- Go to the Discord Developer Portal.
- Create a new application and add a bot to it.
- Copy the bot token.
- On OAuth2 --> URL Generator --> select bot and set administrator permission.
- Use the link to invite the bot to your server
Your AI Power Grid Discord bot is now set up and running on your server. Channels will be automatically created under the category "Server Stats" and updated with the latest data of the AIPG blockchain.
Feel free to customize the bot to suit your server's needs, and don't hesitate to reach out for any assistance or feature requests.