Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Rewrite main.py #4

@TheWever

Description

@TheWever

Rewrite main.py to refactor and clean up the existing code, improving both readability and usability.

Currently, bot-related events, user settings, and other functionalities are all mixed together in main.py, which should solely be responsible for running the bot.
This structure makes it difficult to change configurations and reduces readability.
The code itself should also be refactored.

  • Move the user settings to a new configuration file (config.*)
    • I suggest using a config.toml file along with a config.py module to parse the configuration.
  • Remove bot-specific code from main.py as much as possible
    • Consider creating a bot subclass (e.g., bot.py) or using cogs
  • Clean up existing code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions