async def _mentionset_limit(self, ctx, num: int): """Number of minutes to wait in between saving mentions.""" if num < 0: send_cmd_help(ctx) return self.settings["MENTION_TIME_LIMIT"] = num fileIO("data/mentiontracker/settings.json", "save", self.settings) self.bot.say("Settings saved.")
async def _mentionset_limit(self,ctx,num : int): """Number of minutes to wait in between saving mentions.""" if num < 0: send_cmd_help(ctx) return self.settings["MENTION_TIME_LIMIT"] = num fileIO("data/mentiontracker/settings.json","save",self.settings) self.bot.say("Settings saved.")
def _get_random_quote(self): if len(self.quotes) == 0: send_cmd_help(self.quote) return "There are no saved quotes!" return randchoice(self.quotes)
def saveybot(self, ctx): """Lets you save and load states, a la SaveyBot.""" if ctx.invoked_subcommand is None: yield from send_cmd_help(ctx)