Temperamental Python (3.12) Discord Bot
Inspired by kkrypt0nn
- Install Python (obviously)
- Clone
- CD to cloned repository and open with VSCode:
code .
- Create a Python virtual environment (VSCode VE Setup)
- Install project dependencies:
python3 -m pip install -r requirements.txt
- Create a
config.json
file at the project level and add aprefix
andinvite_link
:
{
"prefix": "!",
"invite_link": "https://discord.com/oauth2/authorize?client_id=1231284567344812033&permissions=633318429163329&scope=bot"
}
- Create an
.env
file at the project level with a botTOKEN
from Discord's developer portal:
TOKEN=discord_bot_token_without_quotes
- Start the server:
python3 main.py runserver