Beispiel #1
0
async def setup(bot: Red):
    # Replace invite command.
    global old_invite
    old_invite = bot.get_command("invite")
    if old_invite:
        bot.remove_command(old_invite.name)

    # Replace info command.
    global old_info
    old_info = bot.get_command("info")
    if old_info:
        bot.remove_command(old_info.name)

    brawlcord = Brawlcord(bot)
    await brawlcord.initialize()
    bot.add_cog(brawlcord)
def setup(bot: Red) -> None:
    apc = AnotherPingCog(bot)
    global old_ping
    old_ping = bot.get_command("ping")
    if old_ping:
        bot.remove_command(old_ping.name)
    bot.add_cog(apc)
Beispiel #3
0
async def setup(bot: Red) -> None:
    global old_ping
    old_ping = bot.get_command("ping")
    if old_ping:
        bot.remove_command(old_ping.name)

    cog = AnotherPingCog(bot)
    await cog.async_init()
    await out_of_date_check("anotherpingcog", cog.__version__)
    bot.add_cog(cog)
Beispiel #4
0
async def setup(bot: Red) -> None:
    global old_uptime
    old_uptime = bot.get_command("uptime")
    if old_uptime:
        bot.remove_command(old_uptime.name)

    cog = BetterUptime(bot)
    await cog.async_init()
    await out_of_date_check("betteruptime", cog.__version__)
    bot.add_cog(cog)
Beispiel #5
0
def setup(bot: Red):
    old_payday = bot.get_command("payday")
    if old_payday:
        bot.remove_command(old_payday.name)
    cog = DblTools(bot)
    bot.add_cog(cog)