Feature-rich Discord bot made by hakergeniusz with the goal of learning Discord.py. It is licenced with GNU Affero General Public License version 3.
You must have following installed on your computer for this bot to work correctly:
- A Discord bot token from Discord Developer Program.
- Python 3.12+
- Git for cloning the repository.
- FFmpeg for
/playcommand to work correctly.
NOTE: These commands are for Linux. If you use Windows, please use Windows Subsystem for Linux (WSL).
- Download all files from this repository with
git clone -b main https://github.com/hakergeniusz/discord-bot.git.
NOTE: If you want
latestbranch with new features (also broken bot), usegit clone -b latest https://github.com/hakergeniusz/discord-bot.git.
- Open the folder with
cd discord-bot. - Create a Python venv with
python3 -m venv .venv. - Activate venv with
source .venv/bin/activate. - Install all required libraries with
pip install -r requirements.txt. - Create and fill up
.envfile.
Note on
.envvalues:DISCORD_BOT_TOKEN=YOUR_BOT_TOKEN DISCORD_OWNER_ID=YOUR_DISCORD_ID GEMINI_API_KEY=GOOGLE_AI_STUDIO_KEY POWEROFF_COMMAND=True/False
DISCORD_BOT_TOKEN: Your Discord bot token from Discord Developer Program.DISCORD_OWNER_ID: Your Discord user ID or other account that you want it to have all permissions.GEMINI_API_KEY: Your Google AI Studio API key (obtainable for free on aistudio.google.com).POWEROFF_COMMAND:Trueif you want/turn_off_pcto work, anything else if you don't want it to work. If value is not provided, it is default set toFalse.
With your .venv active, execute the following command in src folder:
python3 -m mainAll credits for are in CREDITS file.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details.