Advertisement
Guest User

Remind.js

a guest
Jul 16th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if (/^[0-9]{1,3}[smhdwy]$/i.test(reminderTime)) {
  2.         return simple.embed(`In ${reminderTime}, i will remind you:` + '```' + `${reminder}` + '```', message),
  3.  
  4.  
  5.         setTimeout(function() {
  6.             return message.author.send(new Discord.RichEmbed()
  7.             .setAuthor('Im reminding you:')
  8.             .setDescription('```' + reminder + '```' + `
  9.             ` + `**-Please don't reply to this message. It will open a modmail thread with staff.-**`)
  10.            .setColor('RANDOM')
  11.            .setTimestamp()
  12.            .setFooter(`Requested By: ${message.author.tag}`, message.author.avatarURL)
  13.        )}, ms(reminderTime));
  14.    }
  15.    else return("Please use the correct syntax: `_remind <time> <Reminder>`")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement