Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. const Discord = require('discord.js');
  2.  
  3. exports.run = (Bot, message, args, yes, no) => {
  4.  
  5. message.channel.send('What is your IGN?').then(() => {
  6. message.channel.awaitMessages(response => response.content , {
  7. max: 1,
  8. time: 5000,
  9. }).then((collected) => {
  10. message.channel.send('Who is your favorite egirl?').then(() => {
  11. message.channel.awaitMessages(response => response.content , {
  12. max: 1,
  13. time: 5000,
  14. errors: ['time'],
  15. }).then((collected1) => {
  16. message.channel.send(`**IGN**: ${collected.first().content}\n**Favorite Egirl**: ${collected1.first().content}`);
  17. }).catch(() => {
  18. message.channel.send('There was no collected message that passed the filter within the time limit!');
  19. });
  20. });
  21. }).catch(() => {
  22. message.channel.send('There were no answers, cancelling.');
  23. });
  24. });
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement