Added a rules command, to add custom rules per server
This commit is contained in:
parent
94ce235753
commit
b8f46426f8
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ class Mod:
|
|||
if rule is None:
|
||||
await self.bot.say("Your rules are:\n```{}```".format(list_rules))
|
||||
for i in range(3):
|
||||
msg = await self.bot.await_for_message(timeout=60.0, author=ctx.message.author, channel = ctx.message.channel, check = lambda m: m.content.isdigit())
|
||||
msg = await self.bot.wait_for_message(timeout=60.0, author=ctx.message.author, channel = ctx.message.channel, check = lambda m: m.content.isdigit())
|
||||
if msg is None:
|
||||
await self.bot.say("You took too long...it's just a number, seriously? Try typing a bit quicker")
|
||||
return
|
||||
|
@ -200,7 +200,7 @@ class Mod:
|
|||
rules[ctx.message.server.id] = server_rules
|
||||
config.saveContent('rules',rules)
|
||||
except IndexError:
|
||||
await self.bot.say("That is not a valid rule number! Your current rules are:\n```{}```".format(list_rules))
|
||||
await self.bot.say("That is not a valid rule number, try running the command again. Your current rules are:\n```{}```".format(list_rules))
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
|
Loading…
Reference in a new issue