Points.py Guusfix #1
This commit is contained in:
@@ -44,8 +44,13 @@ class Points(object):
|
||||
print("No permission to delete message or send DM")
|
||||
return
|
||||
|
||||
userObj = self.bot.get_user( int(user.replace("<@", "").replace(">", "")) )
|
||||
userObj = self.bot.get_user( int(user.replace("<@!", "").replace("<@", "").replace(">", "")) )
|
||||
|
||||
if userObj.id == ctx.author.id:
|
||||
yield from ctx.channel.send("Nee. Je mag niet jezelf punten geven.")
|
||||
time.sleep(0.6)
|
||||
yield from ctx.channel.send("Gekkie.")
|
||||
return
|
||||
if not self.isUserOnList(userObj):
|
||||
yield from ctx.channel.send("Nee. Die krijgt geen punten.")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user