Revert "Add functionality for printing rules to a rules channel."
This reverts commit 16c3bb8779
.
This commit is contained in:
parent
f83c47fab8
commit
93e278daea
1 changed files with 6 additions and 8 deletions
|
@ -112,10 +112,9 @@ class Verification:
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def reset(self, ctx, limit: int = 100, force: bool = False):
|
async def reset(self, ctx, limit: int = 100, force: bool = False):
|
||||||
"""Wipes messages and pastes the welcome message again. Staff only."""
|
"""Wipes messages and pastes the welcome message again. Staff only."""
|
||||||
if ctx.message.channel.id not in [config.welcome_channel, config.rules_channel] and not force:
|
if ctx.message.channel.id != config.welcome_channel and not force:
|
||||||
await ctx.send(f"This command is limited to"
|
await ctx.send(f"This command is limited to"
|
||||||
f" <#{config.welcome_channel}> or "
|
f" <#{config.welcome_channel}>, unless forced.")
|
||||||
f" <#{config.rules_channel}>, unless forced.")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
await ctx.channel.purge(limit=limit)
|
await ctx.channel.purge(limit=limit)
|
||||||
|
@ -123,9 +122,8 @@ class Verification:
|
||||||
await ctx.send(welcome_header)
|
await ctx.send(welcome_header)
|
||||||
rules = ['**{}**. {}'.format(i, cleandoc(r)) for i, r in
|
rules = ['**{}**. {}'.format(i, cleandoc(r)) for i, r in
|
||||||
enumerate(welcome_rules, 1)]
|
enumerate(welcome_rules, 1)]
|
||||||
if (ctx.message.channel.id is config.welcome_channel):
|
rule_choice = random.randint(2, len(rules))
|
||||||
rule_choice = random.randint(2, len(rules))
|
rules[rule_choice - 1] += '\n' + hidden_term_line
|
||||||
rules[rule_choice - 1] += '\n' + hidden_term_line
|
|
||||||
msg = f"🗑 **Reset**: {ctx.author.mention} cleared {limit} messages "\
|
msg = f"🗑 **Reset**: {ctx.author.mention} cleared {limit} messages "\
|
||||||
f" in {ctx.channel.mention}"
|
f" in {ctx.channel.mention}"
|
||||||
msg += f"\n💬 __Current challenge location__: under rule {rule_choice}"
|
msg += f"\n💬 __Current challenge location__: under rule {rule_choice}"
|
||||||
|
|
Loading…
Reference in a new issue