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
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)
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)
def setup(bot: discord.ext.commands.Bot): bot.add_cog(Karma())
def setup(bot: discord.ext.commands.Bot): bot.add_cog(OsrsCog(bot))
def setup(bot: discord.ext.commands.Bot): bot.add_cog(Misc(bot))
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
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
def setup(bot: discord.ext.commands.Bot): bot.add_cog(Config(bot))
def setup(bot: discord.ext.commands.Bot): bot.add_cog(Bridge(bot))
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
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
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
def setup(bot: discord.ext.commands.Bot): bot.add_cog(WordFilter(bot))
def setup(bot: discord.ext.commands.Bot): bot.add_cog(PartyParrot(bot))
def setup(bot: discord.ext.commands.Bot): bot.add_cog(GenericCommands(bot))
def setup(bot: discord.ext.commands.Bot): bot.add_cog(GrinchCommands(bot))
def setup(bot: discord.ext.commands.Bot): bot.add_cog(Misc(bot)) print(bot.help_attrs)