diff --git a/XiaoBot.js b/XiaoBot.js index a08639f6..d4af9e9d 100644 --- a/XiaoBot.js +++ b/XiaoBot.js @@ -15,10 +15,11 @@ client.registry .registerTypesIn(path.join(__dirname, 'types')) .registerGroups([ ['util', 'Utility'], - ['guild-info', 'Server Information'], + ['info', 'Discord Information'], ['moderation', 'Moderation'], ['random-res', 'Random Response'], ['single-res', 'Single Response'], + ['events', 'Daily Events'], ['image-edit', 'Image Manipulation'], ['avatar-edit', 'Avatar Manipulation'], ['text-edit', 'Text Manipulation'], diff --git a/commands/other/astronomy-picture-of-the-day.js b/commands/events/astronomy-picture-of-the-day.js similarity index 97% rename from commands/other/astronomy-picture-of-the-day.js rename to commands/events/astronomy-picture-of-the-day.js index 112ff934..bfc315cc 100644 --- a/commands/other/astronomy-picture-of-the-day.js +++ b/commands/events/astronomy-picture-of-the-day.js @@ -8,7 +8,7 @@ module.exports = class AstronomyPictureOfTheDayCommand extends Command { super(client, { name: 'astronomy-picture-of-the-day', aliases: ['nasa-apod', 'apod', 'nasa-astronomy-picture-of-the-day'], - group: 'other', + group: 'events', memberName: 'astronomy-picture-of-the-day', description: 'Responds with today\'s Astronomy Picture of the Day.', clientPermissions: ['ATTACH_FILES'] diff --git a/commands/other/days-until.js b/commands/events/days-until.js similarity index 98% rename from commands/other/days-until.js rename to commands/events/days-until.js index c4ca2c8e..01f5bdf9 100644 --- a/commands/other/days-until.js +++ b/commands/events/days-until.js @@ -5,7 +5,7 @@ module.exports = class DaysUntilCommand extends Command { super(client, { name: 'days-until', aliases: ['days-until-christmas'], - group: 'other', + group: 'events', memberName: 'days-until', description: 'Responds with how many days until a certain date this year.', args: [ diff --git a/commands/other/google-doodle.js b/commands/events/google-doodle.js similarity index 98% rename from commands/other/google-doodle.js rename to commands/events/google-doodle.js index acd6f1c1..6d1e7d26 100644 --- a/commands/other/google-doodle.js +++ b/commands/events/google-doodle.js @@ -5,7 +5,7 @@ module.exports = class GoogleDoodleCommand extends Command { constructor(client) { super(client, { name: 'google-doodle', - group: 'other', + group: 'events', memberName: 'google-doodle', description: 'Responds with a Google doodle, either the latest or a random one from a specific month/year.', clientPermissions: ['ATTACH_FILES'], diff --git a/commands/other/horoscope.js b/commands/events/horoscope.js similarity index 98% rename from commands/other/horoscope.js rename to commands/events/horoscope.js index 9d618559..f975cedd 100644 --- a/commands/other/horoscope.js +++ b/commands/events/horoscope.js @@ -8,7 +8,7 @@ module.exports = class HoroscopeCommand extends Command { constructor(client) { super(client, { name: 'horoscope', - group: 'other', + group: 'events', memberName: 'horoscope', description: 'Responds with today\'s horoscope for a particular sign.', details: `**Signs**: ${signs.join(', ')}`, diff --git a/commands/other/word-of-the-day.js b/commands/events/word-of-the-day.js similarity index 97% rename from commands/other/word-of-the-day.js rename to commands/events/word-of-the-day.js index 53c46ff3..0964ea8b 100644 --- a/commands/other/word-of-the-day.js +++ b/commands/events/word-of-the-day.js @@ -8,7 +8,7 @@ module.exports = class WordOfTheDayCommand extends Command { super(client, { name: 'word-of-the-day', aliases: ['wordnik-word-of-the-day'], - group: 'other', + group: 'events', memberName: 'word-of-the-day', description: 'Gets the word of the day.' }); diff --git a/commands/other/xkcd.js b/commands/events/xkcd.js similarity index 97% rename from commands/other/xkcd.js rename to commands/events/xkcd.js index ac976051..789084d4 100644 --- a/commands/other/xkcd.js +++ b/commands/events/xkcd.js @@ -7,7 +7,7 @@ module.exports = class XKCDCommand extends Command { super(client, { name: 'xkcd', aliases: ['kcd'], - group: 'other', + group: 'events', memberName: 'xkcd', description: 'Gets an XKCD Comic, optionally opting for today\'s or a specific number.', clientPermissions: ['EMBED_LINKS'], @@ -16,7 +16,7 @@ module.exports = class XKCDCommand extends Command { key: 'type', prompt: 'Please enter either a specific comic number, today, or random.', type: 'string', - default: 'random', + default: 'today', parse: type => type.toLowerCase() } ] diff --git a/commands/other/avatar.js b/commands/info/avatar.js similarity index 98% rename from commands/other/avatar.js rename to commands/info/avatar.js index 9b25b2af..162e878e 100644 --- a/commands/other/avatar.js +++ b/commands/info/avatar.js @@ -6,7 +6,7 @@ module.exports = class AvatarCommand extends Command { super(client, { name: 'avatar', aliases: ['profile-picture', 'profile-pic'], - group: 'other', + group: 'info', memberName: 'avatar', description: 'Responds with a user\'s avatar.', clientPermissions: ['ATTACH_FILES'], diff --git a/commands/guild-info/channel-info.js b/commands/info/channel-info.js similarity index 98% rename from commands/guild-info/channel-info.js rename to commands/info/channel-info.js index 7472509c..994c5b92 100644 --- a/commands/guild-info/channel-info.js +++ b/commands/info/channel-info.js @@ -14,7 +14,7 @@ module.exports = class ChannelInfoCommand extends Command { super(client, { name: 'channel-info', aliases: ['channel'], - group: 'guild-info', + group: 'info', memberName: 'channel-info', description: 'Responds with detailed information on a channel.', guildOnly: true, diff --git a/commands/other/discriminator.js b/commands/info/discriminator.js similarity index 98% rename from commands/other/discriminator.js rename to commands/info/discriminator.js index 04750a14..ad552845 100644 --- a/commands/other/discriminator.js +++ b/commands/info/discriminator.js @@ -6,7 +6,7 @@ module.exports = class DiscriminatorCommand extends Command { super(client, { name: 'discriminator', aliases: ['discrim', 'search-discrim', 'search-discriminator'], - group: 'other', + group: 'info', memberName: 'discriminator', description: 'Searches for other users with a certain discriminator.', args: [ diff --git a/commands/other/emoji-image.js b/commands/info/emoji-image.js similarity index 96% rename from commands/other/emoji-image.js rename to commands/info/emoji-image.js index fb22d3d3..de212307 100644 --- a/commands/other/emoji-image.js +++ b/commands/info/emoji-image.js @@ -5,7 +5,7 @@ module.exports = class EmojiImageCommand extends Command { super(client, { name: 'emoji-image', aliases: ['bigify-emoji', 'emoji-url', 'big-emoji'], - group: 'other', + group: 'info', memberName: 'emoji-image', description: 'Responds with an emoji\'s full-scale image.', guildOnly: true, diff --git a/commands/guild-info/emoji-info.js b/commands/info/emoji-info.js similarity index 97% rename from commands/guild-info/emoji-info.js rename to commands/info/emoji-info.js index f7f2a722..9db24cc1 100644 --- a/commands/guild-info/emoji-info.js +++ b/commands/info/emoji-info.js @@ -6,7 +6,7 @@ module.exports = class EmojiInfoCommand extends Command { super(client, { name: 'emoji-info', aliases: ['emoji'], - group: 'guild-info', + group: 'info', memberName: 'emoji-info', description: 'Responds with detailed information on an emoji.', guildOnly: true, diff --git a/commands/guild-info/emoji-list.js b/commands/info/emoji-list.js similarity index 95% rename from commands/guild-info/emoji-list.js rename to commands/info/emoji-list.js index 43f96c10..24a3d015 100644 --- a/commands/guild-info/emoji-list.js +++ b/commands/info/emoji-list.js @@ -5,7 +5,7 @@ module.exports = class EmojiListCommand extends Command { super(client, { name: 'emoji-list', aliases: ['emojis'], - group: 'guild-info', + group: 'info', memberName: 'emoji-list', description: 'Responds with a list of the server\'s custom emoji.', guildOnly: true diff --git a/commands/guild-info/role-info.js b/commands/info/role-info.js similarity index 98% rename from commands/guild-info/role-info.js rename to commands/info/role-info.js index f8bd8aa3..5f1a54b7 100644 --- a/commands/guild-info/role-info.js +++ b/commands/info/role-info.js @@ -7,7 +7,7 @@ module.exports = class RoleInfoCommand extends Command { super(client, { name: 'role-info', aliases: ['role'], - group: 'guild-info', + group: 'info', memberName: 'role-info', description: 'Responds with detailed information on a role.', guildOnly: true, diff --git a/commands/guild-info/server-info.js b/commands/info/server-info.js similarity index 98% rename from commands/guild-info/server-info.js rename to commands/info/server-info.js index 7dbab951..7745ee0e 100644 --- a/commands/guild-info/server-info.js +++ b/commands/info/server-info.js @@ -8,7 +8,7 @@ module.exports = class ServerInfoCommand extends Command { super(client, { name: 'server-info', aliases: ['guild', 'server', 'guild-info'], - group: 'guild-info', + group: 'info', memberName: 'server-info', description: 'Responds with detailed information on the server.', guildOnly: true, diff --git a/commands/guild-info/user-info.js b/commands/info/user-info.js similarity index 98% rename from commands/guild-info/user-info.js rename to commands/info/user-info.js index 5bb15b36..30722f63 100644 --- a/commands/guild-info/user-info.js +++ b/commands/info/user-info.js @@ -6,7 +6,7 @@ module.exports = class UserInfoCommand extends Command { super(client, { name: 'user-info', aliases: ['user', 'member', 'member-info'], - group: 'guild-info', + group: 'info', memberName: 'user-info', description: 'Responds with detailed information on a user.', guildOnly: true, diff --git a/commands/other/google-autofill.js b/commands/search/google-autofill.js similarity index 98% rename from commands/other/google-autofill.js rename to commands/search/google-autofill.js index e64b4c25..aaff1207 100644 --- a/commands/other/google-autofill.js +++ b/commands/search/google-autofill.js @@ -6,7 +6,7 @@ module.exports = class GoogleAutofillCommand extends Command { super(client, { name: 'google-autofill', aliases: ['google-autocomplete', 'autofill', 'autocomplete'], - group: 'other', + group: 'search', memberName: 'google-autofill', description: 'Gets a list of Google Autofill results for a particular query.', args: [ diff --git a/commands/other/tableflip.js b/commands/single-res/tableflip.js similarity index 96% rename from commands/other/tableflip.js rename to commands/single-res/tableflip.js index 70a7869c..c78dd8d0 100644 --- a/commands/other/tableflip.js +++ b/commands/single-res/tableflip.js @@ -13,7 +13,7 @@ module.exports = class TableflipCommand extends Command { super(client, { name: 'tableflip', aliases: ['a-tableflip', 'animated-tableflip', 'tableflip-animated', 'tableflip-a'], - group: 'other', + group: 'single-res', memberName: 'tableflip', description: 'Flips a table... With animation!' }); diff --git a/package.json b/package.json index a21c4400..85624d41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "51.3.2", + "version": "51.3.3", "description": "Your personal server companion.", "main": "XiaoBot.js", "scripts": {