From 4cd7a4b06cd4fb3833ca4861ea9ee07c242a1378 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 9 Sep 2018 16:41:59 +0000 Subject: [PATCH] Bug Fixes, remove slow clap --- README.md | 5 ++--- commands/events/neko-atsume-password.js | 6 +++--- commands/search/{map.js => google-map.js} | 8 ++++---- commands/search/youtube.js | 2 +- commands/single/slow-clap.js | 16 ---------------- commands/single/tableflip.js | 2 +- package.json | 2 +- 7 files changed, 12 insertions(+), 29 deletions(-) rename commands/search/{map.js => google-map.js} (90%) delete mode 100644 commands/single/slow-clap.js diff --git a/README.md b/README.md index 14060a1e..6c7be09d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Xiao is a Discord bot coded in JavaScript with The bot is no longer available for invite. You can self-host the bot, or use her on the [home server](https://discord.gg/sbMe32W). -## Commands (305) +## Commands (304) ### Utility: * **eval:** Executes JavaScript code. @@ -98,7 +98,6 @@ on the [home server](https://discord.gg/sbMe32W). * **its-joke:** It's joke! * **just-do-it:** Sends a link to the "Just Do It!" motivational speech. * **lenny:** Responds with the lenny face. -* **slow-clap:** _slow clap_ * **spam:** Responds with a picture of Spam. * **tableflip:** Flips a table... With animation! * **wynaut:** Why not? Wynaut? @@ -131,6 +130,7 @@ on the [home server](https://discord.gg/sbMe32W). * **github:** Responds with information on a GitHub repository. * **google-autofill:** Responds with a list of the Google Autofill results for a particular query. * **google-book:** Searches Google Books for a book. +* **google-map:** Responds with a map of a specific location. * **google:** Searches Google for your query. * **gravatar:** Responds with the Gravatar for an email. * **http-cat:** Responds with a cat for an HTTP status code. @@ -141,7 +141,6 @@ on the [home server](https://discord.gg/sbMe32W). * **kh-wiki:** Searches the Kingdom Hearts Wiki for your query. * **kickstarter:** Searches Kickstarter for your query. * **league-of-legends-champion:** Responds with information on a League of Legends champion. -* **map:** Responds with a map of a specific location. * **mdn:** Searches MDN for your query. * **my-anime-list-anime:** Searches My Anime List for your query, getting anime results. * **my-anime-list-manga:** Searches My Anime List for your query, getting manga results. diff --git a/commands/events/neko-atsume-password.js b/commands/events/neko-atsume-password.js index ee2887f0..85cbd83c 100644 --- a/commands/events/neko-atsume-password.js +++ b/commands/events/neko-atsume-password.js @@ -45,7 +45,7 @@ module.exports = class NekoAtsumePasswordCommand extends Command { .get(`http://hpmobile.jp/app/nekoatsume/neko_daily${locale === 'jp' ? '' : `_${locale}`}.php`); const data = text.split(','); const date = new Date(); - date.setUTCHours(date.getUTCHours() + 9); + date.setUTCHours(9); return { password: data[1], silver: data[2], @@ -56,10 +56,10 @@ module.exports = class NekoAtsumePasswordCommand extends Command { } get goldFish() { - return GOLD_FISH_EMOJI_ID ? `<:gold_fish:${GOLD_FISH_EMOJI_ID}>` : 'Gold Fish'; + return GOLD_FISH_EMOJI_ID ? `<:goldFish:${GOLD_FISH_EMOJI_ID}>` : 'Gold Fish'; } get silverFish() { - return SILVER_FISH_EMOJI_ID ? `<:silver_fish:${SILVER_FISH_EMOJI_ID}>` : 'Silver Fish'; + return SILVER_FISH_EMOJI_ID ? `<:silverFish:${SILVER_FISH_EMOJI_ID}>` : 'Silver Fish'; } }; diff --git a/commands/search/map.js b/commands/search/google-map.js similarity index 90% rename from commands/search/map.js rename to commands/search/google-map.js index 50f585e9..6f5c7669 100644 --- a/commands/search/map.js +++ b/commands/search/google-map.js @@ -2,13 +2,13 @@ const Command = require('../../structures/Command'); const request = require('node-superfetch'); const { GOOGLE_KEY } = process.env; -module.exports = class MapCommand extends Command { +module.exports = class GoogleMapCommand extends Command { constructor(client) { super(client, { - name: 'map', - aliases: ['google-maps', 'google-map'], + name: 'google-map', + aliases: ['google-maps', 'map'], group: 'search', - memberName: 'map', + memberName: 'google-map', description: 'Responds with a map of a specific location.', clientPermissions: ['ATTACH_FILES'], args: [ diff --git a/commands/search/youtube.js b/commands/search/youtube.js index 20706c9e..b94b7443 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -7,7 +7,7 @@ module.exports = class YoutubeCommand extends Command { constructor(client) { super(client, { name: 'youtube', - aliases: ['youtube-video', 'y-tube', 'u-tube'], + aliases: ['youtube-video', 'y-tube', 'u-tube', 'yt'], group: 'search', memberName: 'youtube', description: 'Searches YouTube for your query.', diff --git a/commands/single/slow-clap.js b/commands/single/slow-clap.js deleted file mode 100644 index e0bb5945..00000000 --- a/commands/single/slow-clap.js +++ /dev/null @@ -1,16 +0,0 @@ -const Command = require('../../structures/Command'); - -module.exports = class SlowClapCommand extends Command { - constructor(client) { - super(client, { - name: 'slow-clap', - group: 'single', - memberName: 'slow-clap', - description: '_slow clap_' - }); - } - - run(msg) { - return msg.say('_slow clap_'); - } -}; diff --git a/commands/single/tableflip.js b/commands/single/tableflip.js index c0b9ddb2..86b9ada1 100644 --- a/commands/single/tableflip.js +++ b/commands/single/tableflip.js @@ -22,7 +22,7 @@ module.exports = class TableflipCommand extends Command { async run(msg) { const message = await msg.say('(\\\\°□°)\\\\ ┬─┬'); for (const frame of frames) { - await delay(200); + await delay(100); await message.edit(frame); } return message; diff --git a/package.json b/package.json index 8d1f33a3..b3cc12b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "90.7.2", + "version": "91.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {