示例#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
示例#2
0
文件: vac.py 项目: wjgan7/lendbot
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)
示例#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)
示例#4
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Karma())
示例#5
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(OsrsCog(bot))
示例#6
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Misc(bot))
示例#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
示例#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
示例#9
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Config(bot))
示例#10
0
def setup(bot: discord.ext.commands.Bot):
	bot.add_cog(Bridge(bot))
示例#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
示例#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
示例#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
示例#14
0
文件: filter.py 项目: CDWimmer/Dot
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(WordFilter(bot))
示例#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))
示例#17
0
文件: grinch.py 项目: theelk801/santa
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(GrinchCommands(bot))
示例#18
0
def setup(bot: discord.ext.commands.Bot):
    bot.add_cog(Misc(bot))
    print(bot.help_attrs)