Iets van een fix voor de punten hopelijk
This commit is contained in:
@@ -41,7 +41,7 @@ class Points(commands.Cog):
|
|||||||
#TODO ook userId oid toestaan?
|
#TODO ook userId oid toestaan?
|
||||||
return
|
return
|
||||||
|
|
||||||
userObj = self.bot.get_user( int(user.replace("<@!", "").replace("<@", "").replace(">", "")) )
|
userObj = ctx.message.mentions[0]
|
||||||
|
|
||||||
if userObj.id == ctx.author.id:
|
if userObj.id == ctx.author.id:
|
||||||
yield from ctx.channel.send("Nee. Je mag niet jezelf punten geven.")
|
yield from ctx.channel.send("Nee. Je mag niet jezelf punten geven.")
|
||||||
@@ -98,7 +98,7 @@ class Points(commands.Cog):
|
|||||||
yield from self.sendErrorDm(ctx, "Je moet iemand taggen. :)")
|
yield from self.sendErrorDm(ctx, "Je moet iemand taggen. :)")
|
||||||
return
|
return
|
||||||
|
|
||||||
userObj = self.bot.get_user( int(user.replace("<@!", "").replace("<@", "").replace(">", "")) )
|
userObj = ctx.message.mentions[0]
|
||||||
|
|
||||||
if not self.isUserOnList(userObj):
|
if not self.isUserOnList(userObj):
|
||||||
yield from ctx.channel.send("Nee.")
|
yield from ctx.channel.send("Nee.")
|
||||||
|
|||||||
Reference in New Issue
Block a user