aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jakeHebert <[email protected]>2019-08-18 06:10:51 -0400
committerGravatar jakeHebert <[email protected]>2019-08-18 06:10:51 -0400
commit843e82533cbc5a79d4c3d31c0a204110270e68ee (patch)
tree0c60001005c6b7931fab2419bd2bf35f7132da11
parentadded validation for Embed author formatting (diff)
added function annotations
-rw-r--r--bot/seasons/evergreen/recommend_game.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/recommend_game.py b/bot/seasons/evergreen/recommend_game.py
index 398da376..835a4e53 100644
--- a/bot/seasons/evergreen/recommend_game.py
+++ b/bot/seasons/evergreen/recommend_game.py
@@ -20,12 +20,12 @@ shuffle(game_recs)
class RecommendGame(commands.Cog):
"""Commands related to recommending games."""
- def __init__(self, bot):
+ def __init__(self, bot: commands.Bot) -> None:
self.bot = bot
self.index = 0
@commands.command(name="recommendgame", aliases=['gamerec'])
- async def recommend_game(self, ctx):
+ async def recommend_game(self, ctx: commands.Context) -> None:
"""Sends an Embed of a random game recommendation."""
if self.index >= len(game_recs):
self.index = 0
@@ -45,7 +45,7 @@ class RecommendGame(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot):
+def setup(bot: commands.Bot) -> None:
"""Loads the RecommendGame cog."""
bot.add_cog(RecommendGame(bot))
log.info("RecommendGame cog loaded")