Points.py Guusfix #1

This commit is contained in:
JP
2019-05-07 22:10:21 +02:00
parent 90a3a869af
commit c90658a351
+6 -1
View File
@@ -44,8 +44,13 @@ class Points(object):
print("No permission to delete message or send DM") print("No permission to delete message or send DM")
return 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): if not self.isUserOnList(userObj):
yield from ctx.channel.send("Nee. Die krijgt geen punten.") yield from ctx.channel.send("Nee. Die krijgt geen punten.")
return return