4575638d3059433895215140d3c47570e7e31092
Discord Bot with Built-in AI
RU | EN
Questions
What is this?
Well, if it wasn't clear from the name, this is a Discord bot with an integrated AI assistant.
By the way, the bot is written in Python.
What is this bot made for?
The bot is currently being written for a small Minecraft Discord server so players can chat with it, idrk.
By design, it's meant to be a bot you can: chat with, ask questions about the server, ask for help with Minecraft, etc.
Why Gemini?
Because it's free ¯\_(ツ)_/¯
Limitations
The only limitations are that it cannot write code and its responses cannot exceed 2000 characters.
How to install it?
Part 1 (In Browser)
- Open the Discord Developer Portal and create a new bot.
- Under the "Bot" tab, generate a token and save it for later.
- In the same tab, enable Presence Intent, Server Members Intent, and Message Content Intent.
- Open Google AI Studio, create an API key, and copy it.
Part 2 (On Server)
Install all necessary packages.
On Debian/Ubuntu:
apt update && apt install git python3 python3-pip -y
Clone the repository and install all required libraries:
git clone https://github.com/timurtom/DiscordAIBot.git
cd DiscordAIBot
pip install discord.py google-genai python-dotenv
Insert your API keys into the .env file.
To-Do List
- Write the bot itself
- Move limitations to a separate file
- Make it answer frequently asked questions about the server
Languages
Python
100%