diff --git a/README.md b/README.md index 59dcda00..9cc21bb8 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ things, I'm not taking any chances. 19. Start Xiao up! ## Commands -Total: 517 +Total: 514 ### Utility: @@ -195,7 +195,6 @@ Total: 517 ### Random Image: -* **bird:** Responds with a random image of a bird. * **bunny:** Responds with a random bunny image and fact. * **cat:** Responds with a random cat image and fact. * **dog:** Responds with a random dog image and fact. @@ -207,7 +206,6 @@ Total: 517 * **light-novel-cover:** Responds with a randomly generated Light Novel cover. (NSFW) * **lizard:** Responds with a random lizard image. * **lorem-picsum:** Responds with a random image of a certain size. -* **shiba:** Responds with a random image of a Shiba Inu. * **xiao:** Responds with a random image of Xiao Pai. ### Seeded Randomizers: @@ -256,7 +254,6 @@ Total: 517 * **days-since:** Responds with how many days there have been since a certain date. * **days-until:** Responds with how many days there are until a certain date. * **florida-man:** Responds with the Flordia man of the day. -* **google-doodle:** Responds with a Google Doodle, either the latest one or a random one from the past. * **horoscope:** Responds with today's horoscope for a specific Zodiac sign. * **is-leap:** Responds with if a year is a leap year. * **is-tuesday:** Determines if today is Tuesday. @@ -804,8 +801,6 @@ Total: 517 - [Grady Ward](https://en.wikipedia.org/wiki/Grady_Ward) ([Moby Word Lists](http://www.gutenberg.org/ebooks/3201)) * **yo-mama:** - [rdegges](https://github.com/rdegges) ([Joke Data](https://github.com/rdegges/yomomma-api/blob/master/jokes.txt)) -* **bird:** - - [shibe.online](https://shibe.online/) (API) * **bunny:** - [bunnies.io](https://www.bunnies.io/) (API) * **cat:** @@ -830,8 +825,6 @@ Total: 517 - [nekos.life](https://nekos.life/) (API) * **lorem-picsum:** - [Lorem Picsum](https://picsum.photos/) (API) -* **shiba:** - - [shibe.online](https://shibe.online/) (API) * **xiao:** - [Marvelous](http://www.marv.jp/) ([Images, Original "Rune Factory 4" Game](http://www.runefactory4.com/index1.html)) - [SauceNAO](https://saucenao.com/) (API) diff --git a/commands/events/google-doodle.js b/commands/events/google-doodle.js deleted file mode 100644 index 95e5292b..00000000 --- a/commands/events/google-doodle.js +++ /dev/null @@ -1,47 +0,0 @@ -const Command = require('../../framework/Command'); -const { PermissionFlagsBits } = require('discord.js'); -const request = require('node-superfetch'); -const moment = require('moment'); - -module.exports = class GoogleDoodleCommand extends Command { - constructor(client) { - super(client, { - name: 'google-doodle', - group: 'events', - description: 'Responds with a Google Doodle, either the latest one or a random one from the past.', - clientPermissions: [PermissionFlagsBits.AttachFiles], - credit: [ - { - name: 'Google', - url: 'https://www.google.com/', - reason: 'Google Doodles API', - reasonURL: 'https://www.google.com/doodles' - } - ], - args: [ - { - key: 'month', - type: 'month', - default: 'latest' - }, - { - key: 'year', - type: 'integer', - default: '' - } - ] - }); - } - - async run(msg, { month, year }) { - const latest = month === 'latest'; - const now = new Date(); - if (latest) month = now.getMonth() + 1; - if (!year) year = now.getFullYear(); - const { body } = await request.get(`https://www.google.com/doodles/json/${year}/${month}`); - if (!body.length) return msg.say('Could not find any results.'); - const data = body[latest ? 0 : Math.floor(Math.random() * body.length)]; - const runDate = moment.utc(data.run_date_array.join('-')).format('MMMM Do, YYYY'); - return msg.say(`${runDate}: ${data.share_text}`, { files: [`https:${data.url}`] }); - } -}; diff --git a/commands/random-img/bird.js b/commands/random-img/bird.js deleted file mode 100644 index 4ef4f6ce..00000000 --- a/commands/random-img/bird.js +++ /dev/null @@ -1,33 +0,0 @@ -const Command = require('../../framework/Command'); -const { PermissionFlagsBits } = require('discord.js'); -const request = require('node-superfetch'); - -module.exports = class BirdCommand extends Command { - constructor(client) { - super(client, { - name: 'bird', - aliases: ['birb'], - group: 'random-img', - description: 'Responds with a random image of a bird.', - clientPermissions: [PermissionFlagsBits.AttachFiles], - credit: [ - { - name: 'shibe.online', - url: 'https://shibe.online/', - reason: 'API' - } - ] - }); - } - - async run(msg) { - const { body } = await request - .get('https://shibe.online/api/birds') - .query({ - count: 1, - urls: true, - httpsUrls: true - }); - return msg.say({ files: [body[0]] }); - } -}; diff --git a/commands/random-img/shiba.js b/commands/random-img/shiba.js deleted file mode 100644 index 15890abd..00000000 --- a/commands/random-img/shiba.js +++ /dev/null @@ -1,33 +0,0 @@ -const Command = require('../../framework/Command'); -const { PermissionFlagsBits } = require('discord.js'); -const request = require('node-superfetch'); - -module.exports = class ShibaCommand extends Command { - constructor(client) { - super(client, { - name: 'shiba', - aliases: ['shiba-inu', 'shibe', 'shibe-inu', 'doge'], - group: 'random-img', - description: 'Responds with a random image of a Shiba Inu.', - clientPermissions: [PermissionFlagsBits.AttachFiles], - credit: [ - { - name: 'shibe.online', - url: 'https://shibe.online/', - reason: 'API' - } - ] - }); - } - - async run(msg) { - const { body } = await request - .get('https://shibe.online/api/shibes') - .query({ - count: 1, - urls: true, - httpsUrls: true - }); - return msg.say({ files: [body[0]] }); - } -}; diff --git a/package.json b/package.json index b0fb4c55..1c997cbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "153.2.1", + "version": "154.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {