Esempio n. 1
0
def setup(bot: MangoPi):
    """
    Function necessary for loading Cogs.

    Parameters
    ----------
    bot : MangoPi
        pass in bot reference to add Cog
    """
    bot.add_cog(ModTools(bot))
    print("Load Cog:\tModTools")
Esempio n. 2
0
def setup(bot: MangoPi):
    """
    Function necessary for loading Cogs. This will update AntiRaid's data from mongoDB.

    Parameters
    ----------
    bot : MangoPi
        pass in bot reference to add Cog
    """
    bot.add_cog(AntiRaid(bot))
    print("Load Cog:\tAntiRaid")
Esempio n. 3
0
def setup(bot: MangoPi):
    """
    Function necessary for loading Cogs. This will update Logging's data from mongoDB.

    Parameters
    ----------
    bot : commands.Bot
        pass in bot reference to add Cog
    """
    bot.add_cog(Logging(bot))
    print("Load Cog:\tLogging")
Esempio n. 4
0
def setup(bot: MangoPi):
    """
    Essential function for Cog loading that calls the update method of Reminder Cog (to fetch data from Mongo)
    before adding it to the bot.

    Parameters
    ----------
    bot : MangoPi
        pass in bot reference to append the Cog
    """
    bot.add_cog(Reminder(bot))
    print("Load Cog:\tReminder")
Esempio n. 5
0
def setup(bot: MangoPi):
    """
    Function necessary for loading Cogs. This will update Ignore data from mongoDB.

    Parameters
    ----------
    bot : MangoPi
        pass in bot reference to add Cog
    """
    temp = Ignore(bot)
    temp.update()
    bot.add_cog(temp)
    bot.ignore_check = temp.ignore_check
    print("Load Cog:\tIgnore")
Esempio n. 6
0
def setup(bot: MangoPi):
    """
    Function necessary for loading Cogs. This will update Prefix's data from mongoDB and append get_prefix to
    bot command_prefix.

    Parameters
    ----------
    bot : MangoPi
        pass in bot reference to add Cog and modify command_prefix
    """
    temp = Prefix(bot)
    temp.update()
    bot.add_cog(temp)
    bot.command_prefix = temp.get_prefix
    print("Load Cog:\tPrefix")