nodbot/commands/request.js
2021-06-27 19:41:25 -04:00

9 lines
419 B
JavaScript

module.exports = {
name: 'request',
description: 'Submit a request to the bot developer.',
execute(message, args) {
const request = args.join(' ');
message.channel.send('Your request has been submitted:\n```\n' + request + '\n```');
message.client.users.fetch(process.env.ownerID).then(user => {user.send('New request or feedback:\n```\n' + request + '\n```');}).catch(error => { console.error(error);} );
}
}