mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
More critical fixes, leave-vc requires MOVE_MEMBERS, memberNames
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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'],
|
||||
@@ -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
|
||||
});
|
||||
@@ -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'],
|
||||
@@ -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: [
|
||||
{
|
||||
@@ -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.'
|
||||
});
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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']
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "73.2.1",
|
||||
"version": "73.2.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user