Files
DiscordAIBot/README_EN.md
T
2026-11-01 02:22:05 +02:00

1.6 KiB

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)

  1. Open the Discord Developer Portal and create a new bot.
  2. Under the "Bot" tab, generate a token and save it for later.
  3. In the same tab, enable Presence Intent, Server Members Intent, and Message Content Intent.
  4. 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