nodbot/commands/request.js

9 lines
419 B
JavaScript
Raw Normal View History

2021-06-27 23:41:25 +00:00
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);} );
}
}