Skip to content

desolv/Potion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Potion

A Discord bot built with discord.py featuring moderation capabilities and PostgreSQL database integration.

Features

  • Moderation commands
  • PostgreSQL database support with SQLAlchemy
  • Async/await architecture
  • Automatic extension loading

Requirements

  • Python 3.8+
  • PostgreSQL database

Installation

  1. Clone the repository:
git clone <repository-url>
cd Potion
  1. Create a virtual environment and activate it:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the root directory with the following variables:
DISCORD_TOKEN=your_discord_bot_token
POSTGRES=postgresql://user:password@localhost/database

Usage

Run the bot:

python potion.py

Project Structure

Potion/
├── backend/          # Database backend and utilities
├── commands/         # Bot command modules
├── core/             # Core bot functionality
├── master/           # Master control modules
├── models/           # Database models
├── potion.py         # Main entry point
├── requirements.txt  # Python dependencies
└── .env              # Environment variables (not in repo)

Configuration

The bot uses a ? prefix for commands by default. This can be modified in potion.py.

About

Multi-purpose Punishment Discord Robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages