def start(log_stream: StringIO) -> None:
    """
    Starts the bot.
    """
    try:
        bot = AniSearchBot(log_stream)
        bot.api.start()
        bot.run()
    except Exception as e:
        logging.exception(e)
def setup(bot: AniSearchBot):
    """
    Sets up the `Profile` cog.
    """
    bot.add_cog(Profile(bot))
    log.info('Profile cog loaded.')
Beispiel #3
0
def setup(bot: AniSearchBot):
    """
    Sets up the `Schedule` cog.
    """
    bot.add_cog(Schedule(bot))
    log.info('Schedule cog loaded.')
def setup(bot: AniSearchBot):
    """
    Sets up the `Image` cog.
    """
    bot.add_cog(Image(bot))
    log.info('Image cog loaded.')
def setup(bot: AniSearchBot):
    """
    Sets up the `Help` cog.
    """
    bot.add_cog(Help(bot))
    log.info('Help cog loaded.')
Beispiel #6
0
def setup(bot: AniSearchBot):
    """
    Sets up the `Search` cog.
    """
    bot.add_cog(Search(bot))
    log.info('Search cog loaded.')
def setup(bot: AniSearchBot):
    """
    Sets up the `Admin` cog.
    """
    bot.add_cog(Admin(bot))
    log.info('Admin cog loaded.')