diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-08-16 19:34:45 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-08-16 19:34:45 +0000 |
commit | 6b3251d28d7c4275b2a71776fb84880022d6f078 (patch) | |
tree | 792b2c6f23e6290bec128ae516e0448c9bd75dbb /cogs | |
parent | db17ec726a7f73e0e08fdbd141e94924d080142a (diff) | |
download | steve-bot-6b3251d28d7c4275b2a71776fb84880022d6f078.tar steve-bot-6b3251d28d7c4275b2a71776fb84880022d6f078.tar.gz steve-bot-6b3251d28d7c4275b2a71776fb84880022d6f078.tar.bz2 steve-bot-6b3251d28d7c4275b2a71776fb84880022d6f078.tar.lz steve-bot-6b3251d28d7c4275b2a71776fb84880022d6f078.tar.xz steve-bot-6b3251d28d7c4275b2a71776fb84880022d6f078.tar.zst steve-bot-6b3251d28d7c4275b2a71776fb84880022d6f078.zip |
Pin requirement increased to 3 stars
Diffstat (limited to 'cogs')
-rwxr-xr-x | cogs/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cogs/utils.py b/cogs/utils.py index 1c66cf7..7e79ce3 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -160,7 +160,7 @@ class Utils(commands.Cog): @commands.Cog.listener() async def on_reaction_add(self, reaction, user): - if reaction.emoji == "⭐" and not reaction.message.id in self.pins: + if reaction.emoji == "⭐" and not reaction.message.id in self.pins and reaction.count >= 3: self.pins.append(reaction.message.id) embed = discord.Embed(title=f"**{reaction.message.clean_content}**", colour=discord.Colour(0xb92c36), url=reaction.message.jump_url, timestamp=reaction.message.created_at) |