Discord Server Interface - Python
Python Discord Server Starter Kit - From VE7LTX Diagonal Thinking LTD
Links
Discord Bot
This is a Discord bot that interacts with an AI service to generate responses and uploads messages to a memory API. It is built using the Discord.py library.
Features
Chat with the bot and receive AI-generated responses.
Messages are uploaded to a memory API for further analysis.
Handles multiple server channels.
Dependencies
A Personal.ai API Tier Account
Python 3.7 or higher
nextcord
(Discord.py) - Library for Discord integrationrequests
- Library for making HTTP requestspython-dotenv
- Library for loading environment variables
Installation
Clone the repository:
git clone https://github.com/your-username/discord-bot.git
Install the required dependencies:
pip install -r requirements.txt
Set up your environment variables in a
.env
file:BOT_TOKEN
- Token for your Discord botAPI_KEY
- API key for the AI service and memory APIBASE_URL
- Base URL for the AI service API (default: 'https://api.personal.ai/v1/message')MEMORY_API_URL
- URL for the memory API (default: 'https://api.personal.ai/v1/memory')
Run the bot:
python discord.py
Usage
Invite the bot to your Discord server using the provided OAuth2 link.
Start the bot by running the
discord_bot.py
script.The bot will listen to messages in the server channels and respond accordingly.
Messages will be uploaded to the memory API for analysis.
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
License
OPEN SOURCE 4 LIFE
Last updated