coconut98coca / alorabot

for alora discord bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-bot-2-template

A template for my future bots.

Prerequisites

  • Create a bot on Discord Developer Portal — My Applications

  • You would need MESSAGE CONTENT INTENT in your bot page set as ON

    image-20231214000335948

    While most other stuff can be left disabled, way too many functions (mentions, DMs, etc) rely on this. My advice: just leave it enabled.

Code setup

  1. I think I don't need to write this but still

    git clone
    cd discord-bot-2-template
    # python -m venv venv
  2. Create a .env file in the root directory, .env.example is provided as a template.

    cp .env.example .env
    # modify .env as needed
  3. Install dependencies and run:

    pip install -r requirements.txt
    python ./main.py
  4. If you want to, check this tutorial

TODOs

  • message sending queue for slow mode
    • maybe check kafka...maybe.
  • background loop that runs timed stuff (e.g. countdowns)
  • tbc

Credits

probably will have even more copy-pasta from other bot templates/tutorials in the future

About

for alora discord bot

License:MIT License


Languages

Language:Python 100.0%