From 71ebdd95d303aba31890aa4cc47e2497f008b949 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 24 Apr 2018 22:17:34 +0000 Subject: [PATCH] More critical fixes, leave-vc requires MOVE_MEMBERS, memberNames --- commands/avatar-edit/3000-years.js | 2 +- commands/avatar-edit/rip.js | 2 +- commands/portal/{add-portal-channel.js => add-channel.js} | 2 +- commands/portal/{fix-portal-channels.js => fix-channels.js} | 2 +- .../portal/{remove-portal-channel.js => remove-channel.js} | 2 +- commands/portal/{portal-send.js => send.js} | 2 +- commands/portal/{portal-status.js => status.js} | 2 +- commands/search/github.js | 2 +- commands/search/http-cat.js | 2 +- commands/search/itunes.js | 2 +- commands/search/neopets-item.js | 2 +- commands/search/youtube.js | 2 +- commands/single/isnt-joke.js | 2 +- commands/voice/leave.js | 3 ++- package.json | 2 +- 15 files changed, 16 insertions(+), 15 deletions(-) rename commands/portal/{add-portal-channel.js => add-channel.js} (96%) rename commands/portal/{fix-portal-channels.js => fix-channels.js} (95%) rename commands/portal/{remove-portal-channel.js => remove-channel.js} (96%) rename commands/portal/{portal-send.js => send.js} (97%) rename commands/portal/{portal-status.js => status.js} (95%) diff --git a/commands/avatar-edit/3000-years.js b/commands/avatar-edit/3000-years.js index f4850944..731077eb 100644 --- a/commands/avatar-edit/3000-years.js +++ b/commands/avatar-edit/3000-years.js @@ -3,7 +3,7 @@ const { createCanvas, loadImage } = require('canvas'); const snekfetch = require('snekfetch'); const path = require('path'); -module.exports = class YearsCommand extends Command { +module.exports = class ThreeThousandYearsCommand extends Command { constructor(client) { super(client, { name: '3000-years', diff --git a/commands/avatar-edit/rip.js b/commands/avatar-edit/rip.js index 7d6e4b6c..fa1aa972 100644 --- a/commands/avatar-edit/rip.js +++ b/commands/avatar-edit/rip.js @@ -4,7 +4,7 @@ const snekfetch = require('snekfetch'); const path = require('path'); const { greyscale } = require('../../util/Canvas'); -module.exports = class RIPCommand extends Command { +module.exports = class RipCommand extends Command { constructor(client) { super(client, { name: 'rip', diff --git a/commands/portal/add-portal-channel.js b/commands/portal/add-channel.js similarity index 96% rename from commands/portal/add-portal-channel.js rename to commands/portal/add-channel.js index 9790f093..da65b25b 100644 --- a/commands/portal/add-portal-channel.js +++ b/commands/portal/add-channel.js @@ -6,7 +6,7 @@ module.exports = class AddPortalChannelCommand extends Command { name: 'add-portal-channel', aliases: ['set-portal-channel', 'portal-channel', 'open-portal'], group: 'portal', - memberName: 'add-portal-channel', + memberName: 'add-channel', description: 'Sets a channel to be a portal channel.', guildOnly: true, userPermissions: ['MANAGE_CHANNELS'], diff --git a/commands/portal/fix-portal-channels.js b/commands/portal/fix-channels.js similarity index 95% rename from commands/portal/fix-portal-channels.js rename to commands/portal/fix-channels.js index a6bfca3e..b6852a94 100644 --- a/commands/portal/fix-portal-channels.js +++ b/commands/portal/fix-channels.js @@ -6,7 +6,7 @@ module.exports = class FixPortalChannelsCommand extends Command { name: 'fix-portal-channels', aliases: ['fix-portals'], group: 'portal', - memberName: 'fix-portal-channels', + memberName: 'fix-channels', description: 'Removes no longer existent channels from the portal list.', ownerOnly: true }); diff --git a/commands/portal/remove-portal-channel.js b/commands/portal/remove-channel.js similarity index 96% rename from commands/portal/remove-portal-channel.js rename to commands/portal/remove-channel.js index 32b77b25..f8f2eec6 100644 --- a/commands/portal/remove-portal-channel.js +++ b/commands/portal/remove-channel.js @@ -6,7 +6,7 @@ module.exports = class RemovePortalChannelCommand extends Command { name: 'remove-portal-channel', aliases: ['delete-portal-channel', 'close-portal'], group: 'portal', - memberName: 'remove-portal-channel', + memberName: 'remove-channel', description: 'Remove a channel from the portal channels.', guildOnly: true, userPermissions: ['MANAGE_CHANNELS'], diff --git a/commands/portal/portal-send.js b/commands/portal/send.js similarity index 97% rename from commands/portal/portal-send.js rename to commands/portal/send.js index af315ba8..22303acb 100644 --- a/commands/portal/portal-send.js +++ b/commands/portal/send.js @@ -6,7 +6,7 @@ module.exports = class PortalSendCommand extends Command { name: 'portal-send', aliases: ['send-portal-message', 'portal-message', 'send-portal-msg', 'portal-msg'], group: 'portal', - memberName: 'portal-send', + memberName: 'send', description: 'Send a message to a portal channel.', args: [ { diff --git a/commands/portal/portal-status.js b/commands/portal/status.js similarity index 95% rename from commands/portal/portal-status.js rename to commands/portal/status.js index be56acad..b6630d1a 100644 --- a/commands/portal/portal-status.js +++ b/commands/portal/status.js @@ -5,7 +5,7 @@ module.exports = class PortalStatusCommand extends Command { super(client, { name: 'portal-status', group: 'portal', - memberName: 'portal-status', + memberName: 'status', description: 'Shows the number of currently opened portals.' }); } diff --git a/commands/search/github.js b/commands/search/github.js index 4d8858ba..9fa29cc3 100644 --- a/commands/search/github.js +++ b/commands/search/github.js @@ -4,7 +4,7 @@ const snekfetch = require('snekfetch'); const { shorten, base64 } = require('../../util/Util'); const { GITHUB_USERNAME, GITHUB_PASSWORD } = process.env; -module.exports = class GitHubCommand extends Command { +module.exports = class GithubCommand extends Command { constructor(client) { super(client, { name: 'github', diff --git a/commands/search/http-cat.js b/commands/search/http-cat.js index 44dfdf4d..14479c19 100644 --- a/commands/search/http-cat.js +++ b/commands/search/http-cat.js @@ -1,7 +1,7 @@ const { Command } = require('discord.js-commando'); const snekfetch = require('snekfetch'); -module.exports = class HTTPCatCommand extends Command { +module.exports = class HttpCatCommand extends Command { constructor(client) { super(client, { name: 'http-cat', diff --git a/commands/search/itunes.js b/commands/search/itunes.js index b5b31113..a9e5ab77 100644 --- a/commands/search/itunes.js +++ b/commands/search/itunes.js @@ -2,7 +2,7 @@ const { Command } = require('discord.js-commando'); const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); -module.exports = class ITunesCommand extends Command { +module.exports = class ItunesCommand extends Command { constructor(client) { super(client, { name: 'itunes', diff --git a/commands/search/neopets-item.js b/commands/search/neopets-item.js index 6c530eab..260291cc 100644 --- a/commands/search/neopets-item.js +++ b/commands/search/neopets-item.js @@ -2,7 +2,7 @@ const { Command } = require('discord.js-commando'); const snekfetch = require('snekfetch'); const { MessageEmbed } = require('discord.js'); -module.exports = class NeopetItemCommand extends Command { +module.exports = class NeopetsItemCommand extends Command { constructor(client) { super(client, { name: 'neopets-item', diff --git a/commands/search/youtube.js b/commands/search/youtube.js index f977f791..a8eb3006 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -3,7 +3,7 @@ const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const { GOOGLE_KEY } = process.env; -module.exports = class YouTubeCommand extends Command { +module.exports = class YoutubeCommand extends Command { constructor(client) { super(client, { name: 'youtube', diff --git a/commands/single/isnt-joke.js b/commands/single/isnt-joke.js index 6eec252d..bd26f98c 100644 --- a/commands/single/isnt-joke.js +++ b/commands/single/isnt-joke.js @@ -1,6 +1,6 @@ const { Command } = require('discord.js-commando'); -module.exports = class ItsJokeCommand extends Command { +module.exports = class IsntJokeCommand extends Command { constructor(client) { super(client, { name: 'isnt-joke', diff --git a/commands/voice/leave.js b/commands/voice/leave.js index 7c05cd8b..c591aba2 100644 --- a/commands/voice/leave.js +++ b/commands/voice/leave.js @@ -8,7 +8,8 @@ module.exports = class LeaveVoiceChannelCommand extends Command { group: 'voice', memberName: 'leave', description: 'Leaves a voice channel, in case the bot gets stuck.', - guildOnly: true + guildOnly: true, + userPermissions: ['MOVE_MEMBERS'] }); } diff --git a/package.json b/package.json index 177ef389..dd3d21fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "73.2.1", + "version": "73.2.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {