aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar RohanRadia <[email protected]>2019-05-14 19:01:10 +0100
committerGravatar RohanRadia <[email protected]>2019-05-14 19:01:10 +0100
commit1d5d30790801a7e9f8b345b63b3119bb4b30df10 (patch)
tree85c6b88fdc0ec0a2bed5a6c15ccf7d8013e93d5f /bot
parentUpdate bot/constants.py (diff)
Changed comparison from Bot ID to d.py inbuilt bot filter.
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/evergreen/showprojects.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/showprojects.py b/bot/seasons/evergreen/showprojects.py
index 018bf461..bb92cb50 100644
--- a/bot/seasons/evergreen/showprojects.py
+++ b/bot/seasons/evergreen/showprojects.py
@@ -19,13 +19,18 @@ class ShowProjects(commands.Cog):
"""Adds reactions to posts in #show-your-projects"""
reactions = ["\U0001f44d", "\U00002764", "\U0001f440", "\U0001f389", "\U0001f680", "\U00002b50", "\U0001f6a9"]
- if message.channel.id == Channels.show_your_projects and message.author.id != 528937022996611082 \
- and message.author.id != self.lastPoster:
+ if (message.channel.id == Channels.show_your_projects
+ and message.author.bot is False
+ and message.author.id != self.lastPoster):
for reaction in reactions:
await message.add_reaction(reaction)
self.lastPoster = message.author.id
+ @commands.command()
+ async def testcomm(self, ctx):
+ await ctx.send("test")
+
def setup(bot):
"""Show Projects Reaction Cog"""