Stucture - TheGElCOgecko/pemonlist-bot GitHub Wiki

This a broad overview of the structure of the project:

Folders

Commands

This folder contains files for commands. Commands are executed by discord users with "/{command_name}". setup.py - Adds commands to the bot. The setup function will be called by the on_ready event in the main file, bot.py. You cannot initialize the commands immediately because there are some variables needed by commands that aren't initialized until on_ready runs.

modules

Basically like the helper function stuff

tasks

This folder contains files for tasks. Tasks are functions that occur at regular time intervals. setup.py - Adds tasks to the bot. The setup function will be called by the on_ready event in the main file, bot.py. You cannot initialize the tasks immediately because there are some variables needed by commands that aren't initialized until on_ready runs.

bot.py

This is where the bot is initialized. on_ready is like basically the first thing that runs. on_message runs any time there is a message in the server. Currently it does not do anything, but is there in case there is a need for it.