Overview • Software • Installation
MP2I is a Discord bot adapted from PyBoss bot created by Adridri. Original code source is available at this url and was originally led by Adridri.
It provides some features like:
- Roles selection
- Suggestion automation
- Custom commands (clear, profile ...)
- Moderation
Python
It's required to have python 3.9 or more installed on your system.
Download Python
Docker
You can also use Docker to deploy the environment in one command.
Get started with Docker
First set variables in .env file:
DISCORD_TOKEN = <discord_bot_token>
# Can be development (More logs)
ENVIRONMENT = production
# Optional, a SQLite database will be created otherwise.
DATABASE_URL = mysql+mysqlconnector://user:password@host:port/database
#Optional
COMPOSE_PROJECT_NAME = mp2i
# Timezone
TZ = Europe/Paris
#For email, optional
SMTP_SERVER = <smtp_server>
EMAIL_USER = <email_user>
EMAIL_PASSWORD = <password>
Create a bot-config.toml
file based on the bot-config.yaml.example
file.
Install pipenv
dependencies:
python3 -m pip install pipenv
Now, you can create an empty .venv
directory and running pipenv
It will install packages in the virtual environment (recommended).
pipenv install
Run the command python3 -m mp2i
on Linux or py -m mp2i
on Windows.
docker compose up --build