This project is a Discord bot written in Python using the discord.py library. The bot is designed to perform various tasks and enhance the moderation, fun and utility of a Discord server.
I would prefer if you not run an instance of my bot, just invite Percy to your Discord but clicking this link. :)
Before running the bot, make sure you have the following installed:
- Python =3.12: Download Python
- PostgreSQL: Download PostgreSQL
- Poetry: Download Poetry
- Clone the repository:
git clone https://github.com/klappstuhlpy/Percy.git- Install the required Python dependencies with poetry:
poetry install- Create a PostgreSQL database for the bot:
- Launch the PostgreSQL command-line interface.
- Run the following command to create a new database:
CREATE ROLE percy WITH LOGIN PASSWORD 'password';
CREATE DATABASE percy OWNER percy;
CREATE EXTENSION pg_trgm;3.5 Configuration of database
To configure the PostgreSQL database for use by the bot, go to the directory where main.py is located, and run the script by doing python3.12 main.py db init
4Configure the bot:
- Set up a
.envfile in the root directory of the project that will store your sensitive data.
DISCORD_TOKEN=
DISCORD_BETA_TOKEN=
DISCORD_CLIENT_SECRET=
DATABASE_PASSWORD=
DATABASE_HOST=
LAVALINK_NODE_1_PASSWORD=
STATS_WEBHOOK_TOKEN=
GENIUS_TOKEN=
GITHUB_TOKEN=
DBOTS_TOKEN=
TOPGG_TOKEN=
IMAGES_API_TOKEN=
ANILIST_CLIENT_ID=
ANILIST_CLIENT_SECRET=
MARVEL_API_PUBLIC_KEY=
MARVEL_API_PRIVATE_KEY=This project is licensed under the MPL License. See the LICENSE file for details.