I could have chosen Red-DiscordBot
like my old projects (that never get to see the light of day). But, due to Red being bound to Python 3.9 because discord.py
, and I can't be arsed to make her cooperate with Python 3.10 because one gotta ride the software update train, and because discord.py
is dead, with pycord
being its mere corpse reanimated sloppily. Might as well take the time to learn a new framework.
It's scary, yes; I have to reimplement some features I take for granted from Red-DiscordBot
, yes. But I don't see why I need to stay in my comfortable zone. Plus, it's something I've been sitting on for quite a while, might as well take a stab at it.
As for why lightbulb
, it's a coin flip.
git clone https://github.com/PythonTryHard/remi
cd remi
# For normal usage
poetry install --no-dev
# For development
poetry install
pre-commit install
In the repository root, edit .env.example
then rename it to .env
. Example:
TOKEN='Your token goes here'
BOT_PREFIX='op!'
OWNER_IDS='31415,92653,58979,32385'
DATA_PATH=''
TOKEN
: Your bot's token, obtained from Discord Developer Dashboard.BOT_PREFIX
: Your preferred prefix for your bot. This will be the default prefix.OWNER_IDS
: Comma-separated Discord user IDs. Those assigned will have full access to the bot's functionalities. Use with care.DATA_PATH
: Location to store your bot's various configuration files.
$ remi --help
Usage: remi [OPTIONS]
Options:
-v, --verbose Increase verbosity (can be stacked).
-f, --file Enable writing log files (rotated at midnight).
--dev Enable developer mode.
--log-sql Enable logging of SQL.
--help Show this message and exit.
All contributions are welcomed, whether issues, PRs, or even typo corrections.
/remi/res/*
: Flaticon's UIcon- Profile picture: Cropped from RONOPU's artwork. I used to play King's Raid. Tempted to play it again.
See LICENSE. TL; DR: MIT License