aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/seasons/evergreen/recommend_game.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/recommend_game.py b/bot/seasons/evergreen/recommend_game.py
index 30a538a5..398da376 100644
--- a/bot/seasons/evergreen/recommend_game.py
+++ b/bot/seasons/evergreen/recommend_game.py
@@ -37,7 +37,8 @@ class RecommendGame(commands.Cog):
# Creating and formatting Embed
embed = discord.Embed(color=discord.Colour.blue())
- embed.set_author(name=author.name, icon_url=author.avatar_url)
+ if author is not None:
+ embed.set_author(name=author.name, icon_url=author.avatar_url)
embed.set_image(url=game['image'])
embed.add_field(name='Recommendation: ' + game['title'] + '\n' + game['link'], value=game['description'])