示例#1
0
def setup(bot: ArenaBot) -> None:
    """Add the cog to the bot"""
    bot.add_cog(Task(bot))
示例#2
0
def teardown(bot: ArenaBot) -> None:
    """Remove the cog cleanly"""
    bot.remove_cog('Task')
示例#3
0
def teardown(bot: ArenaBot) -> None:
    """Remove the cog cleanly"""
    bot.remove_cog('Inventory')
示例#4
0
def setup(bot: ArenaBot) -> None:
    """Add the cog to the bot"""
    bot.add_cog(Inventory(bot))
示例#5
0
def teardown(bot: ArenaBot) -> None:
    """Remove the cog"""
    bot.remove_cog("Development")
示例#6
0
def setup(bot: ArenaBot) -> None:
    """Add the cog"""
    bot.add_cog(Development(bot))
示例#7
0
def main() -> None:
    bot = ArenaBot.create()
    bot.load_extensions()

    bot.run(TOKEN)