Exemplo n.º 1
0
def setup(bot: Bot, kwargs: Dict[str, Session]) -> None:
    bot.add_cog(EventCmd(bot, **kwargs))
Exemplo n.º 2
0
def setup(bot: Bot):
    bot.add_cog(QuoteCog(bot))
Exemplo n.º 3
0
def setup(bot: Bot, kwargs: Dict[str, Session]) -> None:
    bot.add_cog(Stats(bot, **kwargs))
Exemplo n.º 4
0
def setup(bot: Bot):
    bot.add_cog(EchoCog(bot))
Exemplo n.º 5
0
def init(bot: Bot):
    bot.add_cog(MemberJoin(bot))
    bot.add_cog(OnReady(bot))
    bot.add_cog(CommandError(bot))
    bot.add_cog(OnGuildRemove(bot))
    bot.add_cog(OnRawReactionAdd(bot))
    bot.add_cog(OnRawReactionRemove(bot))
Exemplo n.º 6
0
    intents = Intents.default()
    intents.members = True  # Among others, the help command needs the members intent to monitor reactions

    discord_bot = Bot(Base.ConfiguredCog.config['command_prefix'],
                      intents=intents)

    Base.ConfiguredCog.logger.debug('Removing built-in help command.')
    discord_bot.remove_command('help')  # We are providing our own help command

    # Add the necessary cogs
    Base.ConfiguredCog.logger.info('Attaching functionality...')

    # Do not disable
    Base.ConfiguredCog.logger.debug('Adding GlobalErrorHandling Cog.')
    discord_bot.add_cog(GlobalErrorHandlingCog(discord_bot))

    # Do not disable
    Base.ConfiguredCog.logger.debug('Adding Help Cog.')
    discord_bot.add_cog(HelpCog(discord_bot))

    enable_cog = Base.is_cog_enabled('tag', Base.ConfiguredCog.config)
    Base.ConfiguredCog.logger.debug(
        f'Tag Cog check resulted in: {enable_cog}.')
    if enable_cog or enable_cog is None:
        Base.ConfiguredCog.logger.debug('Adding Tag Cog.')
        discord_bot.add_cog(TagCog(discord_bot))
    else:
        Base.ConfiguredCog.logger.debug('Skipping Tag Cog.')

    enable_cog = Base.is_cog_enabled('warn', Base.ConfiguredCog.config)
Exemplo n.º 7
0
def setup(bot: Bot):
    # importlib.reload(Event)
    importlib.reload(cfg)
    bot.add_cog(CommandListener(bot))
Exemplo n.º 8
0
def init(bot: Bot):
    bot.add_cog(Help(bot))
    bot.add_cog(Version(bot))
    bot.add_cog(Activity(bot))
    bot.add_cog(WelcomeChannel(bot))
    bot.add_cog(AdminList(bot))
    bot.add_cog(ActivityList(bot))
    bot.add_cog(AddAdmin(bot))
    bot.add_cog(Colour(bot))
    bot.add_cog(Kill(bot))
    bot.add_cog(SystemChannel(bot))
    bot.add_cog(New(bot))
    bot.add_cog(Notify(bot))
    bot.add_cog(Edit(bot))
    bot.add_cog(Reaction(bot))
    bot.add_cog(RemoveAdmin(bot))
    bot.add_cog(Restart(bot))
    bot.add_cog(RemoveActivity(bot))
    bot.add_cog(SetStarterRole(bot))
Exemplo n.º 9
0
def setup(bot: Bot):
    bot.add_cog(PlopkoekCog(bot))
Exemplo n.º 10
0
def setup(client: Bot) -> None:
    """
    Loads the Miscellaneous cog.
    """
    client.add_cog(Miscellaneous(client))
Exemplo n.º 11
0
def setup(bot: Bot, kwargs: Dict[Any, Any]) -> None:
    bot.add_cog(Ping(bot, **kwargs))
Exemplo n.º 12
0
def setup(client: Bot) -> None:
    """
    Loads the Search cog.
    """
    client.add_cog(Search(client))
Exemplo n.º 13
0
def setup(client: Bot) -> None:
    """
    Loads the Social cog.
    """
    client.add_cog(Social(client))
Exemplo n.º 14
0
def setup(bot: Bot):
    """Required to load extension."""
    bot.add_cog(AdminCommands(bot))