コード例 #1
0
ファイル: moderation.py プロジェクト: Travus/BernieBot
async def teardown(bot: tbb.TravusBotBase):
    """Teardown function ran when module is unloaded."""
    await bot.remove_cog("ModerationCog")  # Remove cog and command help info.
    bot.remove_module("Moderation")
    bot.remove_command_help(ModerationCog)
コード例 #2
0
ファイル: dev.py プロジェクト: Travus/Travus_Bot_Base
def teardown(bot: tbb.TravusBotBase):
    """Teardown function ran when module is unloaded."""
    bot.remove_cog("DevCog")  # Remove cog and command help info.
    bot.remove_module("Dev")
    bot.remove_command_help(DevCog)