Generic, functional bot based on discord.py
Including a custom help command and ping command, utils for easy embed creation, logging configuration, and a general bot setup
pip install -r requirements.txt
export TOKEN="your-key"
python3 main.py
Remember using a virtual environment!
parameter | description |
---|---|
export Prefix="b!" |
Command prefix |
export VERSION="unknown" |
Version the bot is running |
export OWNER_NAME="unknwon" |
Name of the bot owner |
export OWNER_ID="100000000000000000" |
ID of the bot owner |
The shown values are the default values that will be loaded if nothing else is specified.
This bot does 'nothing' but is completely functional!
What is does:
- setup logging
- overwrite
on_ready()
function for information at startup - register example cog with
b!ping
command - util function for easy embed creation
This repository contains code that was written by me across various bot-projects, like:
https://github.com/nonchris/discord-fury
https://github.com/Info-Bonn/poll-bot
I collected the most useful and generic functions to save me some time when starting the next bot-project.
This project is based on discord.py V1.x
minimum required: V1.5.1