mirror of https://github.com/stijndcl/didier
Merge pull request #64 from stijndcl/mention_decorator
Use client user id for poke easter eggpull/70/head
commit
0439b634d9
|
@ -87,7 +87,7 @@ class Poke(commands.Cog):
|
||||||
if ctx.message.mentions[0].id == ctx.author.id:
|
if ctx.message.mentions[0].id == ctx.author.id:
|
||||||
await ctx.send("Je kan jezelf niet tikken, {}.".format(ctx.author.display_name))
|
await ctx.send("Je kan jezelf niet tikken, {}.".format(ctx.author.display_name))
|
||||||
return False
|
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))
|
await ctx.send("Je kan me niet tikken, {}.".format(ctx.author.display_name))
|
||||||
return False
|
return False
|
||||||
if str(ctx.message.mentions[0].id) in constants.botIDs:
|
if str(ctx.message.mentions[0].id) in constants.botIDs:
|
||||||
|
|
Loading…
Reference in New Issue