SwiftQS / SDG_Discord_Bot_Original

Multipurpose bot for a private Discord server.
3 stars 1 forks source link

On Off Switches for Bot Features #9

Open DaKing opened 8 years ago

DaKing commented 8 years ago

There should be a way to toggle feature on and off while the bot is still running

Example: "!bot [feature] off/on"

SwiftQS commented 8 years ago

Agreed. Isn't this as simple as creating an if statement to check if a flag is on/off for each feature?

DaKing commented 8 years ago

@B1anc0N1n0 Yes sir. That along with deciding if we want that to persist when the bot turns off and on OR if we want all features on by default or a subset on by default etc etc

SwiftQS commented 8 years ago

Okay. I think this also goes hand-in-hand with breaking everything out into different 'modules'. Thinking about the future - if we want to advertise the bot for public use, should we design it so that we have a core module with additional modules the discord server admin could install, or do you think feature on/off is good enough?

DaKing commented 8 years ago

@B1anc0N1n0 my personal opinion is On/Off on the fly is probably fine for now but I like where your head is at for more long term goals.

We could have the bot check the permissions of the user requesting a feature can be turned on/off before allowing the change. Similar to Discords AirHorn bot creating it's own section we may be able to add a similar role for ShameBot which lets the Admin specify what role can manage the bot features.

airhornrolesexample