2021-07-31 22:34:00 +00:00
|
|
|
const fn = require('../functions.js');
|
|
|
|
|
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-07-31 22:34:00 +00:00
|
|
|
message.channel.send(fn.textEmbed('Your request has been submitted!', message.author, file.extension));
|
2021-07-31 22:37:11 +00:00
|
|
|
message.client.users.fetch(process.env.ownerID).then(user => {user.send(fn.textEmbed(request, message.author, file.extension));}).catch(error => { console.error(error);} );
|
2021-07-31 22:34:00 +00:00
|
|
|
fn.uploadRequest(message.author, file.name);
|
2021-06-27 23:41:25 +00:00
|
|
|
}
|
|
|
|
}
|