Calibanda / BotAToutFer

The 'BotAToutFer', the Discord bot that does everything (even the coffee)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BotAToutFer

Python Version Open Source? Yes! License

The 'BotAToutFer', the Discord bot that does (or did) everything (even the coffee).

Installation

Clone the repository

Clone this repository in your personal directory with the command:

git clone https://github.com/Calibanda/BotAToutFer.git

Create a new virtual environment

On Linux or MacOS

python3 -m venv .venv
source .venv/bin/activate
.venv/bin/python3 -m pip install --upgrade pip

On Windows

python -m venv .venv
.venv\Scripts\activate.bat
python -m pip install --upgrade pip

For more information about virtual environments see the official documentation.

Follow installation of py-cord

Follow the installation of the Pycord library on https://github.com/Pycord-Development/pycord

Install needed packages

Install needed packages with:

pip install -r requirements.txt

List of direct dependencies:

  • python-dotenv
  • py-cord
  • yt-dlp

Declare environment variable

At the source of the directory, create a file named ".env". In this file, enter the private information needed by the bot:

# .env
DISCORD_TOKEN= #Enter here the token of your Discord bot
OWNER_IDS= #Enter here the IDS of the bot owners (separated by a semicolon)
DEBUG_GUILDS= #Enter here the IDS of the debug guilds if any (separated by a semicolon)
GM_ROLES= #Enter here the IDS of the roles authorized to create role manager messages (separated by a semicolon)

Running the bot

Execute the following command to start the bot:

python main.py

About

The 'BotAToutFer', the Discord bot that does everything (even the coffee)

License:GNU General Public License v3.0


Languages

Language:Python 100.0%