aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/reddit.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-03 19:23:52 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-03 19:23:52 -0400
commita7279c624b093ffe826edadbc999103083710953 (patch)
treeaddd04d27f2cdf112eccd5cdf3c3818fd4d28c44 /bot/exts/evergreen/reddit.py
parentchore: End the sentence with a period (diff)
chore: Don't return a Message object when the return annotation is None
Diffstat (limited to 'bot/exts/evergreen/reddit.py')
-rw-r--r--bot/exts/evergreen/reddit.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bot/exts/evergreen/reddit.py b/bot/exts/evergreen/reddit.py
index 518ffeb7..51a360b3 100644
--- a/bot/exts/evergreen/reddit.py
+++ b/bot/exts/evergreen/reddit.py
@@ -51,15 +51,18 @@ class Reddit(commands.Cog):
try:
posts = data["data"]["children"]
except KeyError:
- return await ctx.send('Subreddit not found!')
+ await ctx.send('Subreddit not found!')
+ return
if not posts:
- return await ctx.send('No posts available!')
+ await ctx.send('No posts available!')
+ return
if posts[0]["data"]["over_18"] is True:
- return await ctx.send(
+ await ctx.send(
"You cannot access this Subreddit as it is meant for those who "
"are 18 years or older."
)
+ return
embed_titles = ""