Advertisement
Vaerys_Dawn

Message output incorrect

Mar 10th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. command: container for all of the stuff the bot needs.
  2. owner: an IUser contained in an object grabbed from the IMessage author.
  3. reacted: an IUser contained in an object grabbed from the Reaction add event.
  4.  
  5. if (!command.guild.config.autoArtPinning) {
  6.     if (owner.longID == reacted.longID) {
  7.         response = "> **" + reacted.displayName + "** Has pinned their art by reacting with the \uD83D\uDCCC emoji.";
  8.     } else {
  9.         response = "> **" + reacted.displayName + "** Has pinned **" + owner.displayName + "'s** art by reacting with the \uD83D\uDCCC emoji.";
  10.     }
  11. } else {
  12.     response = "> I have pinned **" + owner + "'s** art.";
  13. }
  14. if (command.guild.config.likeArt && command.guild.config.modulePixels) {
  15.     response += "\n You can now react with a \u2764 emoji to give the user some pixels.";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement