Fix fix-portal-channels

This commit is contained in:
Daniel Odendahl Jr
2018-02-27 00:44:52 +00:00
parent 59a5c873c2
commit 3dcb7f9812
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -4,6 +4,7 @@ module.exports = class FixPortalChannelsCommand extends Command {
constructor(client) {
super(client, {
name: 'fix-portal-channels',
aliases: ['fix-portals'],
group: 'portal',
memberName: 'fix-portal-channels',
description: 'Removes no longer existent channels from the portal list.',
@@ -19,6 +20,8 @@ module.exports = class FixPortalChannelsCommand extends Command {
channels.splice(channels.indexOf(channel), 1);
count++;
}
if (!channels.length) this.client.provider.remove('global', 'portals');
else this.client.provider.set('global', 'portals', channels);
return msg.say(`Cleared **${count}** channels from the portal list.`);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "66.5.0",
"version": "66.5.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {