9 lines
419 B
JavaScript
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);} );
|
|
}
|
|
} |