Removed the counter for the deletion of rules
This commit is contained in:
parent
67476c3e2f
commit
c914fcc6b9
16
cogs/mod.py
16
cogs/mod.py
|
@ -186,14 +186,14 @@ class Mod:
|
||||||
|
|
||||||
if rule is None:
|
if rule is None:
|
||||||
await self.bot.say("Your rules are:\n```{}```Please provide the rule number you would like to remove (just the number)".format(list_rules))
|
await self.bot.say("Your rules are:\n```{}```Please provide the rule number you would like to remove (just the number)".format(list_rules))
|
||||||
for i in range(3):
|
|
||||||
msg = await self.bot.wait_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:
|
if msg is None:
|
||||||
await self.bot.say("You took too long...it's just a number, seriously? Try typing a bit quicker")
|
await self.bot.say("You took too long...it's just a number, seriously? Try typing a bit quicker")
|
||||||
return
|
return
|
||||||
del server_rules[int(msg.content)-1]
|
del server_rules[int(msg.content)-1]
|
||||||
rules[ctx.message.server.id] = server_rules
|
rules[ctx.message.server.id] = server_rules
|
||||||
config.saveContent('rules',rules)
|
config.saveContent('rules',rules)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
del server_rules[rule-1]
|
del server_rules[rule-1]
|
||||||
|
|
Loading…
Reference in a new issue