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")
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")
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")
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")
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")
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")