diff --git a/commands/8ball.js b/commands/8ball.js index 81b6ed8..b4a5679 100644 --- a/commands/8ball.js +++ b/commands/8ball.js @@ -11,10 +11,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.STRING }], - async parseMessage (client, config, message, args) { - await message.channel.send(this.handle(client, config, message.author, args.slice(0).join(' '))); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('question'))); }, diff --git a/commands/avatar.js b/commands/avatar.js index 53d203e..4a01f82 100644 --- a/commands/avatar.js +++ b/commands/avatar.js @@ -17,11 +17,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.STRING }], - async parseMessage (client, config, message, args) { - const target = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author; - await message.channel.send(this.handle(client, config, message.author, target)); - }, - async parseInteraction (client, config, interaction) { const target = interaction.options.getUser('user') || client.users.cache.get(interaction.options.getString('userid')) || interaction.user; await interaction.reply(this.handle(client, config, interaction.user, target)); diff --git a/commands/bonk.js b/commands/bonk.js index 0dff2b4..f7f17a9 100644 --- a/commands/bonk.js +++ b/commands/bonk.js @@ -11,10 +11,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/cheese.js b/commands/cheese.js index 38b4f5e..fdfee7b 100644 --- a/commands/cheese.js +++ b/commands/cheese.js @@ -11,10 +11,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/choose.js b/commands/choose.js index cf841b2..f7a0dcb 100644 --- a/commands/choose.js +++ b/commands/choose.js @@ -11,13 +11,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.STRING })), - async parseMessage (client, config, message, args) { - let [head, ...options] = message.content.split(/\s*\n\s*/); - head = head.slice(this.name.length + config.prefix.length); - if (head) options.push(head); - await message.channel.send(this.handle(client, config, message.author, options)); - }, - async parseInteraction (client, config, interaction) { console.log([...Array(10).keys()].map(i => interaction.options.getString(`option${i + 1}`)).filter(str => str)); await interaction.reply(this.handle(client, config, interaction.user, [...Array(10).keys()].map(i => interaction.options.getString(`option${i + 1}`)).filter(str => str))); diff --git a/commands/contributors.js b/commands/contributors.js index 9b11355..3658af5 100644 --- a/commands/contributors.js +++ b/commands/contributors.js @@ -4,10 +4,6 @@ module.exports = { description: 'Attributions to open source components used by Anitrox', options: [], - async parseMessage (_, config, message) { - await message.channel.send(this.handle(config, message.author)); - }, - async parseInteraction (_, config, interaction) { await interaction.reply(this.handle(config, interaction.user)); }, diff --git a/commands/cuddle.js b/commands/cuddle.js index bbf5e61..af515a0 100644 --- a/commands/cuddle.js +++ b/commands/cuddle.js @@ -18,10 +18,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/eval.js b/commands/eval.js index 20b82d5..48b6426 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -12,10 +12,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.STRING }], - async parseMessage (client, config, message, args) { - await message.channel.send(this.handle(client, config, message.author, args.join(' '))); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('code'))); }, diff --git a/commands/help.js b/commands/help.js index 1b9eb6d..4941fac 100644 --- a/commands/help.js +++ b/commands/help.js @@ -10,9 +10,6 @@ module.exports = { required: false, type: Constants.ApplicationCommandOptionTypes.STRING }], - async parseMessage (client, config, message, args) { - await message.channel.send(this.handle(client, config, message.author, args[0])); - }, async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getString('help'))); diff --git a/commands/hug.js b/commands/hug.js index b3d2f8e..e079159 100644 --- a/commands/hug.js +++ b/commands/hug.js @@ -19,10 +19,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/info.js b/commands/info.js index c87efd7..8cfc07f 100644 --- a/commands/info.js +++ b/commands/info.js @@ -6,11 +6,6 @@ module.exports = { description: 'Bot and System information', options: [], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author)); - }, - // We'll be moving solely to Slash Commands in 1.4 - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user)); }, diff --git a/commands/invite.js b/commands/invite.js index a809d75..e219080 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -4,10 +4,6 @@ module.exports = { description: 'Add Anitrox to your beautiful server!', options: [], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author)); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user)); }, diff --git a/commands/kiss.js b/commands/kiss.js index d3c132a..3e11842 100644 --- a/commands/kiss.js +++ b/commands/kiss.js @@ -19,10 +19,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/leskiss.js b/commands/leskiss.js index 89b34db..f595539 100644 --- a/commands/leskiss.js +++ b/commands/leskiss.js @@ -29,10 +29,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/lick.js b/commands/lick.js index abf6257..80c038f 100644 --- a/commands/lick.js +++ b/commands/lick.js @@ -18,10 +18,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/nom.js b/commands/nom.js index c2ea792..c3dcfc3 100644 --- a/commands/nom.js +++ b/commands/nom.js @@ -18,10 +18,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/pat.js b/commands/pat.js index 03baec6..2737e1b 100644 --- a/commands/pat.js +++ b/commands/pat.js @@ -17,10 +17,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/ping.js b/commands/ping.js index ff623e2..f45e9af 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -4,10 +4,6 @@ module.exports = { description: 'Gets bot ping', options: [], - async parseMessage (client, config, message, args) { - await message.channel.send(await this.handle(client, config, message.author)); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(await this.handle(client, config, interaction.user)); }, diff --git a/commands/poke.js b/commands/poke.js index 52a9c3f..bb7c343 100644 --- a/commands/poke.js +++ b/commands/poke.js @@ -17,10 +17,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/reload.js b/commands/reload.js index 9f89ac1..a6f847f 100644 --- a/commands/reload.js +++ b/commands/reload.js @@ -11,10 +11,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.STRING })), - async parseMessage (client, config, message, args) { - await message.channel.send(this.handle(client, config, message.author, args)); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, [...Array(10).keys()].map(i => interaction.options.getString(`option${i + 1}`)).filter(str => str))); }, diff --git a/commands/restart.js b/commands/restart.js index 51c91a2..8c33365 100644 --- a/commands/restart.js +++ b/commands/restart.js @@ -4,10 +4,6 @@ module.exports = { description: 'Restarts the bot', options: [], - async parseMessage (client, config, message) { - await this.handle(client, config, message.author, message.channel); - }, - async parseInteraction (client, config, interaction) { await this.handle(client, config, interaction.user, interaction.channel); }, diff --git a/commands/slap.js b/commands/slap.js index c57ac8c..7a84464 100644 --- a/commands/slap.js +++ b/commands/slap.js @@ -11,10 +11,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/snuggle.js b/commands/snuggle.js index 308202b..6ecb14f 100644 --- a/commands/snuggle.js +++ b/commands/snuggle.js @@ -17,10 +17,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first())); - }, - async parseInteraction (client, config, interaction) { await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user'))); }, diff --git a/commands/stop.js b/commands/stop.js index 9035530..d1b5ca6 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -4,10 +4,6 @@ module.exports = { description: "IT'S TIME TO STOP!... the bot", options: [], - async parseMessage (client, config, message) { - await this.handle(client, config, message.author, message.channel); - }, - async parseInteraction (client, config, interaction) { await this.handle(client, config, interaction.user, interaction.channel); }, diff --git a/commands/uinfo.js b/commands/uinfo.js index 106dbee..af3555b 100644 --- a/commands/uinfo.js +++ b/commands/uinfo.js @@ -11,11 +11,6 @@ module.exports = { type: Constants.ApplicationCommandOptionTypes.USER }], - async parseMessage (client, config, message) { - const target = message.mentions.members.first() || message.member; - await message.channel.send(this.handle(client, config, message.author, target)); - }, - async parseInteraction (client, config, interaction) { const target = interaction.options.getUser('user') ? (await interaction.guild.members.fetch(interaction.options.getUser('user'))) : interaction.member; await interaction.reply(this.handle(client, config, interaction.user, target)); diff --git a/config-example.json b/config-example.json index 951ddab..f9e8085 100644 --- a/config-example.json +++ b/config-example.json @@ -1,7 +1,6 @@ { - "prefix": "n!", "release": "Developer Release", - "build": "1.4_dev", + "build": "1.4dev", "footerTxt": "Anitrox, made with <3 by IDeletedSystem64 | 2018-2022", "sandbox": { "enabled": false,