aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/cheatsheet.py
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-02-05 09:31:09 +0530
committerGravatar Shivansh-007 <[email protected]>2021-02-05 09:31:09 +0530
commit23c0b2f9464b993c8f2fd33dc2941bef8b0a9851 (patch)
tree8e6f14a3e66131ee58fe9b8d1fa8056ea28c2780 /bot/exts/evergreen/cheatsheet.py
parentUse brackets instead of / for multi line strings (diff)
Fix indentation
Diffstat (limited to 'bot/exts/evergreen/cheatsheet.py')
-rw-r--r--bot/exts/evergreen/cheatsheet.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bot/exts/evergreen/cheatsheet.py b/bot/exts/evergreen/cheatsheet.py
index dd44c68e..97485365 100644
--- a/bot/exts/evergreen/cheatsheet.py
+++ b/bot/exts/evergreen/cheatsheet.py
@@ -59,13 +59,13 @@ class CheatSheet(commands.Cog):
if len(body_text) > body_space:
description = (f"**Result Of cht.sh**\n"
- f"```python\n{body_text[:body_space]}\n"
- f"... (truncated - too many lines)```\n"
- f"Full results: {url} ")
+ f"```python\n{body_text[:body_space]}\n"
+ f"... (truncated - too many lines)```\n"
+ f"Full results: {url} ")
else:
description = (f"**Result Of cht.sh**\n"
- f"```python\n{body_text}```\n"
- f"{url}")
+ f"```python\n{body_text}```\n"
+ f"{url}")
return False, description
@commands.command(
@@ -83,8 +83,8 @@ class CheatSheet(commands.Cog):
--> .cht read json
"""
if not (
- ctx.channel.category.id == Categories.help_in_use
- or ctx.channel.id in WHITELISTED_CHANNELS
+ ctx.channel.category.id == Categories.help_in_use
+ or ctx.channel.id in WHITELISTED_CHANNELS
):
return