A template for future Discord bots using discord.py.
- Fork this repo.
- Install Python 3.6 or higher.
- Install Discord.py (rewrite):
pip install --user discord.py
- Create a file
data/config.json
with the following contents:
{
"daemon": false,
"dev": true,
"token": "<bot_token>",
"prefix": "!",
"github_email": "<user_email>@users.noreply.github.com",
"author": "<your_name>",
"author_link": "<your_link>",
"github_repo": "<your_name>/Discord-Bot-Template"
}
(Obviously adjust parameters as appropriate.)
- Run
python3 main.py
to start the bot.