Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

bobross.js (447B)


exports.run = (client, message, args) => {
  // If someone mentions a person at the end of the bobross command,
  // make sure those people are mentioned with the response
  const mentions = message.mentions.users.array()
    .map(user => `<@${user.id}> `)
    .reduce((x, y) => `${x}${y}`, '');

  message.channel
    .send(`${mentions}Enjoy a random episode of The Joy of Painting: <https://mityurl.com/y/cDIn/r>`)
    .catch(console.error);
};