nodbot/commands/request.js

10 lines
447 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.',
2021-07-06 21:37:29 +00:00
usage: '<request or feedback>',
2021-07-01 22:12:21 +00:00
execute(message, file) {
const request = file.name;
2021-06-27 23:41:25 +00:00
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);} );
}
}