Skip to content

[Feat] Improve Settings #2

@astra1dev

Description

@astra1dev
  • Implement a wrapper function that will check for every command if it is active or not, instead of only being able to enable & disable command categories as a whole. Although, the functionality to configure each category should not be removed. With this change, the settings set command and database structure will also need to be updated.
  • This check should work in such a way that the bot does not need to be restarted in order for settings to take effect. (Right now, modules are either added to the command tree or not on startup with
async def setup(bot): 
    if Settings.module_anime:
        bot.tree.add_command(.....)

depending on if the setting is on or off in the database. If any setting changes during runtime, it will have no effect)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions