|
|
@ -40,16 +40,11 @@ class fakebotCommand extends Command {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
console.log(err);
|
|
|
|
console.log(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sendWebhook(this.client);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
|
|
|
|
sendWebhook(this.client);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function sendWebhook(client) {
|
|
|
|
|
|
|
|
let webhook = require(`../../webhook/${message.guild.id}.json`);
|
|
|
|
let webhook = require(`../../webhook/${message.guild.id}.json`);
|
|
|
|
client.fetchWebhook(webhook.id, webhook.token)
|
|
|
|
this.client.fetchWebhook(webhook.id, webhook.token)
|
|
|
|
.then(webhook => {
|
|
|
|
.then(webhook => {
|
|
|
|
webhook.edit({
|
|
|
|
webhook.edit({
|
|
|
|
name: args.member.username,
|
|
|
|
name: args.member.username,
|
|
|
@ -59,5 +54,4 @@ class fakebotCommand extends Command {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = fakebotCommand;
|
|
|
|
module.exports = fakebotCommand;
|