Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- exports.run = (Bot, message, args, yes, no) => {
- message.channel.send('What is your IGN?').then(() => {
- message.channel.awaitMessages(response => response.content , {
- max: 1,
- time: 5000,
- }).then((collected) => {
- message.channel.send('Who is your favorite egirl?').then(() => {
- message.channel.awaitMessages(response => response.content , {
- max: 1,
- time: 5000,
- errors: ['time'],
- }).then((collected1) => {
- message.channel.send(`**IGN**: ${collected.first().content}\n**Favorite Egirl**: ${collected1.first().content}`);
- }).catch(() => {
- message.channel.send('There was no collected message that passed the filter within the time limit!');
- });
- });
- }).catch(() => {
- message.channel.send('There were no answers, cancelling.');
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement