aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/showprojects.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-09 13:22:09 -0400
committerGravatar S. Co1 <[email protected]>2019-09-09 15:00:38 -0400
commitbd03db75805d02da2088ec5067993aa5f23184ae (patch)
tree4038157164a5d4eaf918870ed3063eda22421816 /bot/seasons/evergreen/showprojects.py
parentAdd flake8-annotations to dev dependencies (diff)
Initial linting pass
Bot root, seasons cog, easter cogs, evergreen cogs, halloween cogs
Diffstat (limited to 'bot/seasons/evergreen/showprojects.py')
-rw-r--r--bot/seasons/evergreen/showprojects.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/showprojects.py b/bot/seasons/evergreen/showprojects.py
index 37809b33..2804bdbe 100644
--- a/bot/seasons/evergreen/showprojects.py
+++ b/bot/seasons/evergreen/showprojects.py
@@ -1,5 +1,6 @@
import logging
+from discord import Message
from discord.ext import commands
from bot.constants import Channels
@@ -10,12 +11,12 @@ log = logging.getLogger(__name__)
class ShowProjects(commands.Cog):
"""Cog that reacts to posts in the #show-your-projects"""
- def __init__(self, bot):
+ def __init__(self, bot: commands.Bot):
self.bot = bot
self.lastPoster = 0 # Given 0 as the default last poster ID as no user can actually have 0 assigned to them
@commands.Cog.listener()
- async def on_message(self, message):
+ async def on_message(self, message: Message) -> None:
"""Adds reactions to posts in #show-your-projects"""
reactions = ["\U0001f44d", "\U00002764", "\U0001f440", "\U0001f389", "\U0001f680", "\U00002b50", "\U0001f6a9"]
if (message.channel.id == Channels.show_your_projects
@@ -27,7 +28,7 @@ class ShowProjects(commands.Cog):
self.lastPoster = message.author.id
-def setup(bot):
+def setup(bot: commands.Bot) -> None:
"""Show Projects Reaction Cog"""
bot.add_cog(ShowProjects(bot))
log.info("ShowProjects cog loaded")