diff --git a/Points.py b/Points.py index d044d8f..df9c779 100644 --- a/Points.py +++ b/Points.py @@ -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