Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit 506bc3f

Browse files
author
Matthew Ray
committed
Prevent rep points to bots
1 parent 16d76d2 commit 506bc3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commands/rep.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ exports.run = async (client, message, args) => {
1212
const botuser = resolvedUser ? message.guild.members.get(resolvedUser.id) : message.member;
1313
const thisUser = botuser.id;
1414
if (thisUser === message.author.id) return msg.edit('You cannot give a reputation point to yourself!');
15+
if (botuser.user.bot) return msg.edit('Bots cannot live to appreciate reputation points, give it to someone *alive*!');
1516
if (client.repPoints.get(thisUser) === undefined) {
1617
await client.repPoints.set(thisUser, 1);
1718
msg.edit(`***You have given a reputation point to ${botuser.user.tag}!***`);

0 commit comments

Comments
 (0)