Skip to content

klappstuhlpy/Percy

Repository files navigation

Percy v2 Project

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. :)

Prerequisites

Before running the bot, make sure you have the following installed:

Installation

  1. Clone the repository:
git clone https://github.com/klappstuhlpy/Percy.git
  1. Install the required Python dependencies with poetry:
poetry install
  1. 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 .env file 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=

License

This project is licensed under the MPL License. See the LICENSE file for details.

About

My personal multipurpose Discord Bot for moderation and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages