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.jsonfile at the project level and add aprefixandinvite_link:
{
"prefix": "!",
"invite_link": "https://discord.com/oauth2/authorize?client_id=1231284567344812033&permissions=633318429163329&scope=bot"
}- Create an
.envfile at the project level with a botTOKENfrom Discord's developer portal:
TOKEN=discord_bot_token_without_quotes- Start the server:
python3 main.py runserver