Merge pull request #64 from stijndcl/mention_decorator

Use client user id for poke easter egg
pull/70/head
Stijn De Clercq 2021-06-15 00:24:36 +02:00 committed by GitHub
commit 0439b634d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class Poke(commands.Cog):
if ctx.message.mentions[0].id == ctx.author.id:
await ctx.send("Je kan jezelf niet tikken, {}.".format(ctx.author.display_name))
return False
if str(ctx.message.mentions[0].id) == constants.didierId:
if ctx.message.mentions[0].id == self.client.user.id:
await ctx.send("Je kan me niet tikken, {}.".format(ctx.author.display_name))
return False
if str(ctx.message.mentions[0].id) in constants.botIDs: