Skip to content

Commit

Permalink
Holy shit you could pay bots?! Not anymore!
Browse files Browse the repository at this point in the history
  • Loading branch information
Godson777 committed Jan 15, 2018
1 parent 43d5554 commit 6bdd9e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/godson/kekbot/command/commands/fun/Pay.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public void onExecuted(CommandEvent event) {
}
if (payer.canSpend(toPay)) {
User payee = event.getEvent().getMessage().getMentionedUsers().get(0);
if (payee.isBot()) {
event.getChannel().sendMessage("You can't pay a bot! They have no use for topkeks, anyway.").queue();
return;
}
payer.payUser(toPay, payee);
event.getChannel().sendMessage("You have successfully paid " + payee.getName() + "#" + payee.getDiscriminator() + " " + CustomEmote.printPrice(toPay) + ".").queue();
} else {
Expand Down

0 comments on commit 6bdd9e0

Please sign in to comment.