SHARE
TWEET

Untitled

a guest Jul 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top