Example #1
0
 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.")
Example #2
0
 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.")
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)