aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar (PC) Refisio <[email protected]>2019-02-09 22:48:22 -0500
committerGravatar (PC) Refisio <[email protected]>2019-02-09 22:48:22 -0500
commit6fc5e87ab8ded59439c8f9ab22554f5ea5a86c11 (patch)
treef844670e93ab6974cc43cfa00857d92f3bac671f
parentUpdated rules cog. (diff)
Re-made changes.
-rw-r--r--bot/cogs/rules.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/bot/cogs/rules.py b/bot/cogs/rules.py
index ff754be93..eee506810 100644
--- a/bot/cogs/rules.py
+++ b/bot/cogs/rules.py
@@ -50,11 +50,10 @@ class Rules:
"We do not allow advertisements for communities (including other Discord servers) or "
"commercial projects - Contact us directly if you want to discuss a partnership!"
)
- self.default_desc = "The rules and guidelines that apply to this " \
- "community can be found on our [rules page]" \
- "(https://pythondiscord.com/about/rules). We " \
- "expect all members of the community to have " \
- "read and understood these."
+ self.default_desc = ("The rules and guidelines that apply to this community can be found on"
+ " our [rules page](https://pythondiscord.com/about/rules). We expect"
+ " all members of the community to have read and understood these."
+ )
@command(aliases=['r', 'rule'], name='rules')
@redirect_output(destination_channel=Channels.bot, bypass_roles=STAFF)
@@ -84,8 +83,7 @@ class Rules:
continue
rule_match = re.search(r'\d?\d[:|-]1?\d', item)
if rule_match:
- a, b = sorted(
- [int(x)-1 for x in re.split(r'[:-]', rule_match.group())])
+ a, b = sorted([int(x)-1 for x in re.split(r'[:-]', rule_match.group())])
rules_to_get.extend(range(a, b+1))
else:
rules_to_get.append(int(item)-1)