From 506bc3ffdb63cbb995cf22a669372af5ace2d3c8 Mon Sep 17 00:00:00 2001 From: Matthew Ray Date: Thu, 25 Oct 2018 01:45:02 -0400 Subject: [PATCH] Prevent rep points to bots --- commands/rep.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/rep.js b/commands/rep.js index 25380d2..139a909 100644 --- a/commands/rep.js +++ b/commands/rep.js @@ -12,6 +12,7 @@ exports.run = async (client, message, args) => { const botuser = resolvedUser ? message.guild.members.get(resolvedUser.id) : message.member; const thisUser = botuser.id; if (thisUser === message.author.id) return msg.edit('You cannot give a reputation point to yourself!'); + if (botuser.user.bot) return msg.edit('Bots cannot live to appreciate reputation points, give it to someone *alive*!'); if (client.repPoints.get(thisUser) === undefined) { await client.repPoints.set(thisUser, 1); msg.edit(`***You have given a reputation point to ${botuser.user.tag}!***`);