aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/reddit.py
diff options
context:
space:
mode:
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 = ""