fix function signatures and spelling errors
This commit is contained in:
parent
8c431e95c7
commit
a8409b4828
|
@ -4,12 +4,12 @@ module.exports = {
|
||||||
description: 'Add Anitrox to your beautiful server!',
|
description: 'Add Anitrox to your beautiful server!',
|
||||||
options: [],
|
options: [],
|
||||||
|
|
||||||
async parseMessage (client, config, message, args) {
|
async parseMessage (client, config, message) {
|
||||||
await message.channel.send(this.handle(client, config, message.author, args.slice(0).join(' ')));
|
await message.channel.send(this.handle(client, config, message.author));
|
||||||
},
|
},
|
||||||
|
|
||||||
async parseInteraction (client, config, interaction) {
|
async parseInteraction (client, config, interaction) {
|
||||||
await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('question')));
|
await interaction.reply(this.handle(client, config, interaction.user));
|
||||||
},
|
},
|
||||||
|
|
||||||
handle (_, config, user) {
|
handle (_, config, user) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
handle (client, config, user, target) {
|
handle (client, config, user, target) {
|
||||||
if (!target) return client.generateErrorMessage('You need to @mention a user!', user.displayAvaterURL());
|
if (!target) return client.generateErrorMessage('You need to @mention a user!', user.displayAvatarURL());
|
||||||
|
|
||||||
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
const gif = gifchoices[Math.floor(Math.random() * gifchoices.length)];
|
||||||
return {
|
return {
|
||||||
|
@ -37,7 +37,7 @@ module.exports = {
|
||||||
description: `${target} You have been kissed by ${user}!`,
|
description: `${target} You have been kissed by ${user}!`,
|
||||||
color: 9442302,
|
color: 9442302,
|
||||||
footer: {
|
footer: {
|
||||||
icon_url: user.displayAvaterURL(),
|
icon_url: user.displayAvatarURL(),
|
||||||
text: config.footerTxt
|
text: config.footerTxt
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
|
|
|
@ -5,11 +5,11 @@ module.exports = {
|
||||||
options: [],
|
options: [],
|
||||||
|
|
||||||
async parseMessage (client, config, message, args) {
|
async parseMessage (client, config, message, args) {
|
||||||
await message.channel.send(await this.handle(client, config, message.author, args.slice(0).join(' ')));
|
await message.channel.send(await this.handle(client, config, message.author));
|
||||||
},
|
},
|
||||||
|
|
||||||
async parseInteraction (client, config, interaction) {
|
async parseInteraction (client, config, interaction) {
|
||||||
await interaction.reply(await this.handle(client, config, interaction.user, interaction.options.getString('question')));
|
await interaction.reply(await this.handle(client, config, interaction.user));
|
||||||
},
|
},
|
||||||
|
|
||||||
async handle (client, config, user) {
|
async handle (client, config, user) {
|
||||||
|
|
|
@ -4,12 +4,12 @@ module.exports = {
|
||||||
description: 'Restarts the bot',
|
description: 'Restarts the bot',
|
||||||
options: [],
|
options: [],
|
||||||
|
|
||||||
async parseMessage (client, config, message, args) {
|
async parseMessage (client, config, message) {
|
||||||
await message.channel.send(await this.handle(client, config, message.author, args.slice(0).join(' ')));
|
await message.channel.send(await this.handle(client, config, message.author));
|
||||||
},
|
},
|
||||||
|
|
||||||
async parseInteraction (client, config, interaction) {
|
async parseInteraction (client, config, interaction) {
|
||||||
await interaction.reply(await this.handle(client, config, interaction.user, interaction.options.getString('question')));
|
await interaction.reply(await this.handle(client, config, interaction.user));
|
||||||
},
|
},
|
||||||
|
|
||||||
async handle (client, config, user) {
|
async handle (client, config, user) {
|
||||||
|
|
|
@ -11,12 +11,12 @@ module.exports = {
|
||||||
type: Constants.ApplicationCommandOptionTypes.STRING
|
type: Constants.ApplicationCommandOptionTypes.STRING
|
||||||
}],
|
}],
|
||||||
|
|
||||||
async parseMessage (client, config, message, args) {
|
async parseMessage (client, config, message) {
|
||||||
await message.channel.send(this.handle(client, config, message.author, args.slice(0).join(' ')));
|
await message.channel.send(this.handle(client, config, message.author));
|
||||||
},
|
},
|
||||||
|
|
||||||
async parseInteraction (client, config, interaction) {
|
async parseInteraction (client, config, interaction) {
|
||||||
await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('question')));
|
await interaction.reply(this.handle(client, config, interaction.user));
|
||||||
},
|
},
|
||||||
|
|
||||||
handle (client, config, user, newNick) {
|
handle (client, config, user, newNick) {
|
||||||
|
|
|
@ -4,13 +4,13 @@ module.exports = {
|
||||||
description: "IT'S TIME TO STOP!... the bot",
|
description: "IT'S TIME TO STOP!... the bot",
|
||||||
options: [],
|
options: [],
|
||||||
|
|
||||||
async parseMessage (client, config, message, args) {
|
async parseMessage (client, config, message) {
|
||||||
await message.channel.send(await this.handle(client, config, message.author, args.slice(0).join(' ')));
|
await message.channel.send(await this.handle(client, config, message.author));
|
||||||
process.exit();
|
process.exit();
|
||||||
},
|
},
|
||||||
|
|
||||||
async parseInteraction (client, config, interaction) {
|
async parseInteraction (client, config, interaction) {
|
||||||
await interaction.reply(await this.handle(client, config, interaction.user, interaction.options.getString('question')));
|
await interaction.reply(await this.handle(client, config, interaction.user));
|
||||||
process.exit();
|
process.exit();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Reference in New Issue