mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-15 01:00:53 +08:00
1.1 KiB
1.1 KiB
Contributing
Setup
To run the bot
cp .env.example .env
python -V # 3.10
pip install -r requirements.txt
python -m bot
To test the bot
python -m pip install -r dev-requirements.txt
nox
To test the bot on your own discord server you need to register a discord application at the Discord Developer Portal and get at bot token.
- Follow a tutorial on how to get a bot token, for example this one: Creating a discord bot & getting a token
- The bot script expects the bot token to be in the
.envfile under theTOKENvariable.
Resources
Main framework
Command handler
Component handler (buttons, modals, etc... )