Exemplo n.º 1
0
async def twitch_cog(bot: discord.ext.commands.Bot):
    """ setup any state specific to the execution of the given module."""
    twitch_cog = cog.TwitchAlert(bot)
    bot.add_cog(twitch_cog)
    await dpytest.empty_queue()
    dpytest.configure(bot)
    return twitch_cog
Exemplo n.º 2
0
def setup(bot: discord.ext.commands.Bot):
    global client
    client = bot
    vac = Vac()
    bot.add_cog(vac)

    async def job():
        await vac.check_vac_status_and_send_results()

    schedule.every().hour.do(job)
Exemplo n.º 3
0
def setup(bot: discord.ext.commands.Bot):
    global client
    client = bot
    vac = Vac()
    bot.add_cog(vac)

    channel = bot.get_channel(int(config.default_channel))

    async def job():
        await vac.check_vac_status_and_send_results(channel, False)

    schedule.every().day.at("12:00").do(job)
Exemplo n.º 4
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Karma())
Exemplo n.º 5
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(OsrsCog(bot))
Exemplo n.º 6
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Misc(bot))
Exemplo n.º 7
0
def announce_cog(bot: discord.ext.commands.Bot):
    announce_cog = announce.Announce(bot)
    bot.add_cog(announce_cog)
    dpytest.configure(bot, 2, 1, 2)
    logger.info("Tests starting")
    return announce_cog
Exemplo n.º 8
0
def utils_cog(bot: discord.ext.commands.Bot):
    utils_cog = LastCtxCog(bot)
    bot.add_cog(utils_cog)
    dpytest.configure(bot)
    logger.info("Tests starting")
    return utils_cog
Exemplo n.º 9
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Config(bot))
Exemplo n.º 10
0
def setup(bot: discord.ext.commands.Bot):
	bot.add_cog(Bridge(bot))
Exemplo n.º 11
0
def announce_cog(bot: discord.ext.commands.Bot):
    announce_cog = Announce.Announce(bot)
    bot.add_cog(announce_cog)
    dpytest.configure(bot)
    print("Tests starting")
    return announce_cog
Exemplo n.º 12
0
async def tf_cog(bot: discord.ext.commands.Bot):
    tf_cog = TextFilterCog(bot)
    bot.add_cog(tf_cog)
    dpytest.configure(bot)
    logger.info("Tests starting")
    return tf_cog
Exemplo n.º 13
0
def base_cog(bot: discord.ext.commands.Bot):
    base_cog = BaseCog(bot)
    bot.add_cog(base_cog)
    dpytest.configure(bot)
    logger.info("Tests starting")
    return base_cog
Exemplo n.º 14
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(WordFilter(bot))
Exemplo n.º 15
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(PartyParrot(bot))
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(GenericCommands(bot))
Exemplo n.º 17
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(GrinchCommands(bot))
Exemplo n.º 18
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Misc(bot))
    print(bot.help_attrs)