pacapon / StyroBotPy

Python version of my custom DiscordBot, based on Rapptz discord.py
MIT License
2 stars 0 forks source link

Allow the admins to enable/disable plugins at runtime #48

Closed zylozs closed 7 years ago

zylozs commented 7 years ago

This disables the plugin. If you provide a boolean value of true, it disables it permanently. If you give false, it is only until you restart the bot or re-enable it. !disableplugin \<tag> !disableplugin \<tag> \<ispermanent>

This enables the plugin. If you provide a boolean value of true, it enables it permanently. If you give false, it is only until you restart the bot or disable it again. !enableplugin \<tag> !enableplugin \<tag> \<ispermanent>

If you want to do it permanently, it should save this in the bot settings using the settings API.

If you try to use a plugin command for a plugin that is disabled, it should give you a message.

zylozs commented 7 years ago

Added