Skip to content

"AIPG-Discord-Bot: Enhancing AIPG community interactions on Discord with Python-powered features

Notifications You must be signed in to change notification settings

gonner22/AIPG-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot for AI Power Grid (AIPG)

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.

Features

  • 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.

Installation and Configuration

Follow these steps to install, configure, and run the bot on your Discord server:

Step 1: Prerequisites

  • Python installed on your machine.
  • Discord account with the necessary permissions to add a bot to your server.

Step 2: Clone the Repository

git clone https://github.com/gonner22/AIPG-Discord-Bot.git
cd AIPG-Discord-Bot

Step 3: Create and Activate a Virtual Environment (Optional but Recommended)

# On Windows
python -m venv venv
venv\Scripts\activate

# On macOS/Linux
python3 -m venv venv
source venv/bin/activate

Step 4: Install Dependencies

pip install discord requests python-dotenv

Step 5: Configure the Bot

  1. Create a file named .env in the project root.
  2. Add your Discord bot token to the .env file:
DISCORD_BOT_TOKEN=YOUR_BOT_TOKEN_HERE
  1. 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.

Step 6: Run the Bot

python bot.py

Step 7: Invite the Bot to Your Server

  1. Go to the Discord Developer Portal.
  2. Create a new application and add a bot to it.
  3. Copy the bot token.
  4. On OAuth2 --> URL Generator --> select bot and set administrator permission.
  5. Use the link to invite the bot to your server

Step 8: Enjoy!

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.

AIPG-Discord-Bot

About

"AIPG-Discord-Bot: Enhancing AIPG community interactions on Discord with Python-powered features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages