diff --git a/README.md b/README.md index 3b71b267..fd7ed749 100644 --- a/README.md +++ b/README.md @@ -261,7 +261,7 @@ in the appropriate channel's topic to use it. ## Commands -Total: 588 +Total: 582 ### Utility: @@ -386,15 +386,12 @@ Total: 588 * **fox:** Responds with a random fox image. * **hentai:** Responds with a random hentai image. (NSFW) * **interesting:** Responds with a random interesting image. -* **karen:** Responds with a random image of Karen. -* **lando:** Responds with a random image of Lando Calrissian. * **light-novel-cover:** Responds with a randomly generated Light Novel cover. (NSFW) * **lorem-picsum:** Responds with a random image of a certain size. * **meme:** Responds with a random meme. * **porn:** Responds with a random porn image. (NSFW) * **potato:** Responds with a random potato image. * **shiba:** Responds with a random image of a Shiba Inu. -* **shrek:** Responds with a random image of Shrek, the sexiest man alive. * **xiao:** Responds with a random image of Xiao Pai. ### Seeded Randomizers: @@ -424,8 +421,6 @@ Total: 588 * **give-flower:** Gives Xiao Pai a flower. * **hi:** Hello. * **idiot:** Responds with the Wikipedia page of an idiot. -* **isnt-joke:** Isn't joke... -* **its-joke:** It's joke! * **just-do-it:** Sends a link to the "Just Do It!" motivational speech. * **lenny:** Responds with the lenny face. * **rickroll:** Sends a link to the "Never Gonna Give You Up" music video. @@ -764,7 +759,6 @@ Total: 588 * **gru-plan:** Sends a Gru's Plan meme with steps of your choice. * **i-fear-no-man:** Sends a "I fear no man" meme with the text of your choice. * **if-those-kids-could-read:** Sends a "If those kids could read, they'd be very upset" meme with the text of your choice. -* **illegal:** Makes Donald Trump make your text illegal. * **kyon-gun:** Draws an image or a user's avatar behind Kyon shooting a gun. * **like:** Sends an "Everyone Liked That" meme with the image of your choice. * **lisa-presentation:** Sends a "Lisa Presentation" meme with the presentation of your choice. @@ -1122,12 +1116,9 @@ here. * worthless ([Original "Gravity Falls" Show](https://disneynow.com/shows/gravity-falls)) - [Dog CEO](https://dog.ceo/) * dog ([Dog API](https://dog.ceo/dog-api/)) -- [Donald J. Trump](https://www.donaldjtrump.com/) - * illegal (Himself) - [Drake](https://drakeofficial.com/) * drakeposting ([Original "Hotline Bling" Music Video](https://youtu.be/uxpDa-c-4Mc)) - [DreamWorks](https://www.dreamworks.com/) - * shrek ([Images, Original "Shrek" Movie](https://www.dreamworks.com/movies/shrek)) * where-is-everybody ([Images, Original "Shrek" Movie](https://www.dreamworks.com/movies/shrek)) - [Dust: An Elysian Tail](https://www.noogy.com/main.html) * fidget (Original Game) @@ -1310,15 +1301,12 @@ here. * hug ([API](https://apidocs.imgur.com/)) * imgur ([API](https://apidocs.imgur.com/)) * inhale ([API](https://apidocs.imgur.com/)) - * karen ([API](https://apidocs.imgur.com/)) * kill ([API](https://apidocs.imgur.com/)) * kiss ([API](https://apidocs.imgur.com/)) - * lando ([API](https://apidocs.imgur.com/)) * pat ([API](https://apidocs.imgur.com/)) * poke ([API](https://apidocs.imgur.com/)) * potato ([API](https://apidocs.imgur.com/)) * punch ([API](https://apidocs.imgur.com/)) - * shrek ([API](https://apidocs.imgur.com/)) * slap ([API](https://apidocs.imgur.com/)) * sleep ([API](https://apidocs.imgur.com/)) * smile ([API](https://apidocs.imgur.com/)) @@ -1330,8 +1318,6 @@ here. * chi-idea ([Wild Words Font](https://www.insidescanlation.com/etc/the-idiots-guide-to-editing-manga/guide/type/fonts.html)) - [ipify API](https://www.ipify.org/) * ip (API) -- [IsNowIllegal.com](http://isnowillegal.com/) - * illegal ([Images](https://github.com/ivanseidel/Is-Now-Illegal/tree/master/GIF/Trump)) - [Jack The Awesomeness Gamer](https://www.youtube.com/channel/UCIeA23B91hAeR1UuC2VDSdQ) * challenger ([Image](https://www.youtube.com/watch?v=3FebRrXg0bk)) - [Jackbox Games](https://www.jackboxgames.com/) @@ -1367,7 +1353,6 @@ here. * kickstarter (API) - [KINMOZA!](http://www.kinmosa.com/) * eggs-get-laid (Original Anime) - * karen (Original Anime) * look-what-karen-have (Original Anime) - [KissClipart.com](https://www.kissclipart.com/) * hat ([Witch Hat Image](https://www.kissclipart.com/halloween-witch-hat-clipart-witch-hat-clip-art-qfycyt/)) @@ -1694,7 +1679,6 @@ here. * whos-that-pokemon (Images) * whos-that-pokemon-cry (Images) - [ShareFonts.net](https://www.wfonts.com/) - * illegal ([Impact Font](https://www.wfonts.com/font/impact)) * meme-gen-classic ([Impact Font](https://www.wfonts.com/font/impact)) - [shibe.online](https://shibe.online/) * bird (API) @@ -1733,7 +1717,6 @@ here. - [Stadium Talk](https://www.stadiumtalk.com/) * horse-race ([Horse Name Data](https://www.stadiumtalk.com/s/best-racehorse-names-be7b8ad6b49a42df)) - [Star Wars](https://www.starwars.com/) - * lando (Original Movie) * soundboard (Hello There Sound) - [Steam](https://store.steampowered.com/) * steam (API) diff --git a/assets/images/illegal/Trump_00.png b/assets/images/illegal/Trump_00.png deleted file mode 100644 index 8000e72d..00000000 Binary files a/assets/images/illegal/Trump_00.png and /dev/null differ diff --git a/assets/images/illegal/Trump_02.png b/assets/images/illegal/Trump_02.png deleted file mode 100644 index f31ec370..00000000 Binary files a/assets/images/illegal/Trump_02.png and /dev/null differ diff --git a/assets/images/illegal/Trump_03.png b/assets/images/illegal/Trump_03.png deleted file mode 100644 index ac9eabb4..00000000 Binary files a/assets/images/illegal/Trump_03.png and /dev/null differ diff --git a/assets/images/illegal/Trump_05.png b/assets/images/illegal/Trump_05.png deleted file mode 100644 index 877d3085..00000000 Binary files a/assets/images/illegal/Trump_05.png and /dev/null differ diff --git a/assets/images/illegal/Trump_06.png b/assets/images/illegal/Trump_06.png deleted file mode 100644 index 9812654b..00000000 Binary files a/assets/images/illegal/Trump_06.png and /dev/null differ diff --git a/assets/images/illegal/Trump_07.png b/assets/images/illegal/Trump_07.png deleted file mode 100644 index 030748fa..00000000 Binary files a/assets/images/illegal/Trump_07.png and /dev/null differ diff --git a/assets/images/illegal/Trump_08.png b/assets/images/illegal/Trump_08.png deleted file mode 100644 index 4b164782..00000000 Binary files a/assets/images/illegal/Trump_08.png and /dev/null differ diff --git a/assets/images/illegal/Trump_09.png b/assets/images/illegal/Trump_09.png deleted file mode 100644 index 432a7f85..00000000 Binary files a/assets/images/illegal/Trump_09.png and /dev/null differ diff --git a/assets/images/illegal/Trump_11.png b/assets/images/illegal/Trump_11.png deleted file mode 100644 index 10ef7d5f..00000000 Binary files a/assets/images/illegal/Trump_11.png and /dev/null differ diff --git a/assets/images/illegal/Trump_12.png b/assets/images/illegal/Trump_12.png deleted file mode 100644 index b4cd2d3f..00000000 Binary files a/assets/images/illegal/Trump_12.png and /dev/null differ diff --git a/assets/images/illegal/Trump_14.png b/assets/images/illegal/Trump_14.png deleted file mode 100644 index 54e925dc..00000000 Binary files a/assets/images/illegal/Trump_14.png and /dev/null differ diff --git a/assets/images/illegal/Trump_15.png b/assets/images/illegal/Trump_15.png deleted file mode 100644 index 2bc9bee8..00000000 Binary files a/assets/images/illegal/Trump_15.png and /dev/null differ diff --git a/assets/images/illegal/Trump_16.png b/assets/images/illegal/Trump_16.png deleted file mode 100644 index e0a96b11..00000000 Binary files a/assets/images/illegal/Trump_16.png and /dev/null differ diff --git a/assets/images/illegal/Trump_17.png b/assets/images/illegal/Trump_17.png deleted file mode 100644 index 75efe556..00000000 Binary files a/assets/images/illegal/Trump_17.png and /dev/null differ diff --git a/assets/images/illegal/Trump_18.png b/assets/images/illegal/Trump_18.png deleted file mode 100644 index 8856962d..00000000 Binary files a/assets/images/illegal/Trump_18.png and /dev/null differ diff --git a/assets/images/illegal/Trump_21.png b/assets/images/illegal/Trump_21.png deleted file mode 100644 index 574b13d7..00000000 Binary files a/assets/images/illegal/Trump_21.png and /dev/null differ diff --git a/assets/images/illegal/Trump_22.png b/assets/images/illegal/Trump_22.png deleted file mode 100644 index e8728010..00000000 Binary files a/assets/images/illegal/Trump_22.png and /dev/null differ diff --git a/assets/images/illegal/Trump_24.png b/assets/images/illegal/Trump_24.png deleted file mode 100644 index 8cdcf83e..00000000 Binary files a/assets/images/illegal/Trump_24.png and /dev/null differ diff --git a/assets/images/illegal/Trump_25.png b/assets/images/illegal/Trump_25.png deleted file mode 100644 index 9017e3ee..00000000 Binary files a/assets/images/illegal/Trump_25.png and /dev/null differ diff --git a/assets/images/illegal/Trump_26.png b/assets/images/illegal/Trump_26.png deleted file mode 100644 index a9adde25..00000000 Binary files a/assets/images/illegal/Trump_26.png and /dev/null differ diff --git a/assets/images/illegal/Trump_28.png b/assets/images/illegal/Trump_28.png deleted file mode 100644 index 5f344aea..00000000 Binary files a/assets/images/illegal/Trump_28.png and /dev/null differ diff --git a/assets/images/illegal/Trump_29.png b/assets/images/illegal/Trump_29.png deleted file mode 100644 index d742baa0..00000000 Binary files a/assets/images/illegal/Trump_29.png and /dev/null differ diff --git a/assets/images/illegal/Trump_30.png b/assets/images/illegal/Trump_30.png deleted file mode 100644 index 816a8c0a..00000000 Binary files a/assets/images/illegal/Trump_30.png and /dev/null differ diff --git a/assets/images/illegal/Trump_32.png b/assets/images/illegal/Trump_32.png deleted file mode 100644 index 53974703..00000000 Binary files a/assets/images/illegal/Trump_32.png and /dev/null differ diff --git a/assets/images/illegal/Trump_33.png b/assets/images/illegal/Trump_33.png deleted file mode 100644 index 5b516fcd..00000000 Binary files a/assets/images/illegal/Trump_33.png and /dev/null differ diff --git a/assets/images/illegal/Trump_35.png b/assets/images/illegal/Trump_35.png deleted file mode 100644 index 3676bd8d..00000000 Binary files a/assets/images/illegal/Trump_35.png and /dev/null differ diff --git a/assets/images/illegal/Trump_37.png b/assets/images/illegal/Trump_37.png deleted file mode 100644 index fe02b7ef..00000000 Binary files a/assets/images/illegal/Trump_37.png and /dev/null differ diff --git a/assets/images/illegal/Trump_38.png b/assets/images/illegal/Trump_38.png deleted file mode 100644 index c9485e6e..00000000 Binary files a/assets/images/illegal/Trump_38.png and /dev/null differ diff --git a/assets/images/illegal/Trump_39.png b/assets/images/illegal/Trump_39.png deleted file mode 100644 index fd372a30..00000000 Binary files a/assets/images/illegal/Trump_39.png and /dev/null differ diff --git a/assets/images/illegal/Trump_41.png b/assets/images/illegal/Trump_41.png deleted file mode 100644 index 09324a82..00000000 Binary files a/assets/images/illegal/Trump_41.png and /dev/null differ diff --git a/assets/images/illegal/Trump_42.png b/assets/images/illegal/Trump_42.png deleted file mode 100644 index 75bf0fa5..00000000 Binary files a/assets/images/illegal/Trump_42.png and /dev/null differ diff --git a/assets/images/illegal/Trump_43.png b/assets/images/illegal/Trump_43.png deleted file mode 100644 index 8a88e27d..00000000 Binary files a/assets/images/illegal/Trump_43.png and /dev/null differ diff --git a/assets/images/illegal/Trump_44.png b/assets/images/illegal/Trump_44.png deleted file mode 100644 index b9d49b6b..00000000 Binary files a/assets/images/illegal/Trump_44.png and /dev/null differ diff --git a/assets/images/illegal/Trump_45.png b/assets/images/illegal/Trump_45.png deleted file mode 100644 index 2cb2dbcf..00000000 Binary files a/assets/images/illegal/Trump_45.png and /dev/null differ diff --git a/assets/images/illegal/Trump_46.png b/assets/images/illegal/Trump_46.png deleted file mode 100644 index c0ade555..00000000 Binary files a/assets/images/illegal/Trump_46.png and /dev/null differ diff --git a/assets/images/illegal/Trump_47.png b/assets/images/illegal/Trump_47.png deleted file mode 100644 index 3a41066a..00000000 Binary files a/assets/images/illegal/Trump_47.png and /dev/null differ diff --git a/assets/images/illegal/Trump_48.png b/assets/images/illegal/Trump_48.png deleted file mode 100644 index 25adbcc2..00000000 Binary files a/assets/images/illegal/Trump_48.png and /dev/null differ diff --git a/assets/images/illegal/Trump_49.png b/assets/images/illegal/Trump_49.png deleted file mode 100644 index 6a7703b8..00000000 Binary files a/assets/images/illegal/Trump_49.png and /dev/null differ diff --git a/assets/images/illegal/Trump_50.png b/assets/images/illegal/Trump_50.png deleted file mode 100644 index 838eba95..00000000 Binary files a/assets/images/illegal/Trump_50.png and /dev/null differ diff --git a/assets/images/illegal/Trump_51.png b/assets/images/illegal/Trump_51.png deleted file mode 100644 index c1b2d33f..00000000 Binary files a/assets/images/illegal/Trump_51.png and /dev/null differ diff --git a/assets/images/illegal/Trump_52.png b/assets/images/illegal/Trump_52.png deleted file mode 100644 index 2804e128..00000000 Binary files a/assets/images/illegal/Trump_52.png and /dev/null differ diff --git a/assets/images/illegal/Trump_54.png b/assets/images/illegal/Trump_54.png deleted file mode 100644 index 49f93705..00000000 Binary files a/assets/images/illegal/Trump_54.png and /dev/null differ diff --git a/assets/images/illegal/Trump_55.png b/assets/images/illegal/Trump_55.png deleted file mode 100644 index 4a5630bc..00000000 Binary files a/assets/images/illegal/Trump_55.png and /dev/null differ diff --git a/assets/images/illegal/Trump_57.png b/assets/images/illegal/Trump_57.png deleted file mode 100644 index 0f66fa74..00000000 Binary files a/assets/images/illegal/Trump_57.png and /dev/null differ diff --git a/assets/images/illegal/Trump_59.png b/assets/images/illegal/Trump_59.png deleted file mode 100644 index 2fb1f404..00000000 Binary files a/assets/images/illegal/Trump_59.png and /dev/null differ diff --git a/assets/images/illegal/Trump_60.png b/assets/images/illegal/Trump_60.png deleted file mode 100644 index 4704224d..00000000 Binary files a/assets/images/illegal/Trump_60.png and /dev/null differ diff --git a/assets/images/illegal/Trump_62.png b/assets/images/illegal/Trump_62.png deleted file mode 100644 index 97991146..00000000 Binary files a/assets/images/illegal/Trump_62.png and /dev/null differ diff --git a/assets/images/isnt-joke.png b/assets/images/isnt-joke.png deleted file mode 100644 index 0833806a..00000000 Binary files a/assets/images/isnt-joke.png and /dev/null differ diff --git a/assets/images/its-joke.png b/assets/images/its-joke.png deleted file mode 100644 index b0badee5..00000000 Binary files a/assets/images/its-joke.png and /dev/null differ diff --git a/assets/json/illegal.json b/assets/json/illegal.json deleted file mode 100644 index 45f21451..00000000 --- a/assets/json/illegal.json +++ /dev/null @@ -1,237 +0,0 @@ -[ - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_00.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_02.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_03.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_05.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_06.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_07.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_08.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_09.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_11.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_12.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_14.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_15.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_16.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_17.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_18.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_21.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_22.png", - "show": false - }, - { - "corners": [[0, 0], [0, 0], [0, 0]], - "file": "Trump_24.png", - "show": false - }, - { - "corners": [[245, 168], [206, 190], [173, 190]], - "file": "Trump_25.png", - "show": true - }, - { - "corners": [[241.0, 144], [216, 177], [166, 177.5]], - "file": "Trump_26.png", - "show": true - }, - { - "corners": [[224.5, 112.0], [253, 152], [160, 168]], - "file": "Trump_28.png", - "show": true - }, - { - "corners": [[213, 102], [268, 141], [161, 169]], - "file": "Trump_29.png", - "show": true - }, - { - "corners": [[200, 95], [272, 129], [164, 169]], - "file": "Trump_30.png", - "show": true - }, - { - "corners": [[170.5, 95.5], [238, 110], [160, 175]], - "file": "Trump_32.png", - "show": true - }, - { - "corners": [[157.0, 97.5], [219, 106], [157.0, 178.0]], - "file": "Trump_33.png", - "show": true - }, - { - "corners": [[144, 101], [199, 103], [151, 180]], - "file": "Trump_35.png", - "show": true - }, - { - "corners": [[147, 101], [202, 104], [153, 180]], - "file": "Trump_37.png", - "show": true - }, - { - "corners": [[145, 100], [202, 103], [151, 179]], - "file": "Trump_38.png", - "show": true - }, - { - "corners": [[140, 101], [202, 105], [143, 180]], - "file": "Trump_39.png", - "show": true - }, - { - "corners": [[107, 104], [182, 108], [104, 185]], - "file": "Trump_41.png", - "show": true - }, - { - "corners": [[84, 102], [163, 107], [80, 185]], - "file": "Trump_42.png", - "show": true - }, - { - "corners": [[69.5, 101], [148, 107], [62.5, 185]], - "file": "Trump_43.png", - "show": true - }, - { - "corners": [[60, 102], [137, 108], [53, 185]], - "file": "Trump_44.png", - "show": true - }, - { - "corners": [[58.0, 104], [134, 110], [49.0, 186.0]], - "file": "Trump_45.png", - "show": true - }, - { - "corners": [[62.0, 102], [137, 109], [53.0, 184]], - "file": "Trump_46.png", - "show": true - }, - { - "corners": [[83.5, 98], [138, 111], [66, 178]], - "file": "Trump_47.png", - "show": true - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_48.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_49.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_50.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_51.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_52.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_54.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_55.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_57.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_59.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_60.png", - "show": false - }, - { - "corners": [[11, 23], [39, 18], [22, 53]], - "file": "Trump_62.png", - "show": false - } -] diff --git a/commands/edit-meme/illegal.js b/commands/edit-meme/illegal.js deleted file mode 100644 index abcbd6b1..00000000 --- a/commands/edit-meme/illegal.js +++ /dev/null @@ -1,87 +0,0 @@ -const Command = require('../../structures/Command'); -const { createCanvas, loadImage, registerFont } = require('canvas'); -const GIFEncoder = require('gifencoder'); -const path = require('path'); -const { streamToArray } = require('../../util/Util'); -const frames = require('../../assets/json/illegal'); -registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Impact.ttf'), { family: 'Impact' }); - -module.exports = class IllegalCommand extends Command { - constructor(client) { - super(client, { - name: 'illegal', - aliases: ['is-now-illegal', 'trump'], - group: 'edit-meme', - memberName: 'illegal', - description: 'Makes Donald Trump make your text illegal.', - throttling: { - usages: 1, - duration: 30 - }, - clientPermissions: ['ATTACH_FILES'], - credit: [ - { - name: 'Donald J. Trump', - url: 'https://www.donaldjtrump.com/', - reason: 'Himself' - }, - { - name: 'IsNowIllegal.com', - url: 'http://isnowillegal.com/', - reason: 'Images', - reasonURL: 'https://github.com/ivanseidel/Is-Now-Illegal/tree/master/GIF/Trump' - }, - { - name: 'ShareFonts.net', - url: 'https://www.wfonts.com/', - reason: 'Impact Font', - reasonURL: 'https://www.wfonts.com/font/impact' - } - ], - args: [ - { - key: 'text', - prompt: 'What should the text of the bill be?', - type: 'string', - max: 20, - parse: text => text.toUpperCase() - }, - { - key: 'verb', - prompt: 'Should the text use is, are, or am?', - type: 'string', - default: 'IS', - oneOf: ['is', 'are', 'am'], - parse: verb => verb.toUpperCase() - } - ] - }); - } - - async run(msg, { text, verb }) { - const encoder = new GIFEncoder(262, 264); - const stream = encoder.createReadStream(); - encoder.start(); - encoder.setRepeat(0); - encoder.setDelay(100); - encoder.setQuality(200); - for (const frame of frames) { - const img = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'illegal', frame.file)); - const canvas = createCanvas(img.width, img.height); - const ctx = canvas.getContext('2d'); - ctx.drawImage(img, 0, 0); - if (!frame.show) { - encoder.addFrame(ctx); - continue; - } - ctx.textBaseline = 'top'; - ctx.font = '20px Impact'; - const maxLen = frame.corners[1][0] - frame.corners[0][0]; - ctx.fillText(`${text}\n${verb} NOW\nILLEGAL`, frame.corners[0][0], frame.corners[0][1], maxLen); - encoder.addFrame(ctx); - } - encoder.finish(); - const buffer = await streamToArray(stream); - return msg.say({ files: [{ attachment: Buffer.concat(buffer), name: 'illegal.gif' }] }); - } -}; diff --git a/commands/random-img/karen.js b/commands/random-img/karen.js deleted file mode 100644 index 7a1b334b..00000000 --- a/commands/random-img/karen.js +++ /dev/null @@ -1,27 +0,0 @@ -const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); -const { KAREN_ALBUM_ID } = process.env; - -module.exports = class KarenCommand extends ImgurAlbumCommand { - constructor(client) { - super(client, { - name: 'karen', - aliases: ['ayaya'], - group: 'random-img', - memberName: 'karen', - description: 'Responds with a random image of Karen.', - clientPermissions: ['ATTACH_FILES'], - albumID: KAREN_ALBUM_ID, - credit: [ - { - name: 'KINMOZA!', - url: 'http://www.kinmosa.com/', - reason: 'Original Anime' - } - ] - }); - } - - generateText() { - return 'Ayaya!'; - } -}; diff --git a/commands/random-img/lando.js b/commands/random-img/lando.js deleted file mode 100644 index 172d8eef..00000000 --- a/commands/random-img/lando.js +++ /dev/null @@ -1,27 +0,0 @@ -const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); -const { LANDO_ALBUM_ID } = process.env; - -module.exports = class LandoCommand extends ImgurAlbumCommand { - constructor(client) { - super(client, { - name: 'lando', - aliases: ['lando-calrissian', 'calrissian'], - group: 'random-img', - memberName: 'lando', - description: 'Responds with a random image of Lando Calrissian.', - clientPermissions: ['ATTACH_FILES'], - albumID: LANDO_ALBUM_ID, - credit: [ - { - name: 'Star Wars', - url: 'https://www.starwars.com/', - reason: 'Original Movie' - } - ] - }); - } - - generateText() { - return 'How you doin\', ya old pirate? So good to see ya!'; - } -}; diff --git a/commands/random-img/shrek.js b/commands/random-img/shrek.js deleted file mode 100644 index 2b17c120..00000000 --- a/commands/random-img/shrek.js +++ /dev/null @@ -1,28 +0,0 @@ -const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); -const { SHREK_ALBUM_ID } = process.env; - -module.exports = class ShrekCommand extends ImgurAlbumCommand { - constructor(client) { - super(client, { - name: 'shrek', - aliases: ['sexiest-man-alive', 'sexy'], - group: 'random-img', - memberName: 'shrek', - description: 'Responds with a random image of Shrek, the sexiest man alive.', - clientPermissions: ['ATTACH_FILES'], - albumID: SHREK_ALBUM_ID, - credit: [ - { - name: 'DreamWorks', - url: 'https://www.dreamworks.com/', - reasonURL: 'https://www.dreamworks.com/movies/shrek', - reason: 'Images, Original "Shrek" Movie' - } - ] - }); - } - - generateText() { - return 'Trust me, there is no one sexier than this man.'; - } -}; diff --git a/commands/random-res/yes-no.js b/commands/random-res/yes-no.js index a94d5a08..e01ad149 100644 --- a/commands/random-res/yes-no.js +++ b/commands/random-res/yes-no.js @@ -1,6 +1,6 @@ const Command = require('../../structures/Command'); const { stripIndents } = require('common-tags'); -const answers = ['Yes', 'No']; +const answers = ['😄 Yes', '🙁 No']; module.exports = class YesNoCommand extends Command { constructor(client) { diff --git a/commands/single/isnt-joke.js b/commands/single/isnt-joke.js deleted file mode 100644 index 95dbe6a1..00000000 --- a/commands/single/isnt-joke.js +++ /dev/null @@ -1,26 +0,0 @@ -const Command = require('../../structures/Command'); -const path = require('path'); - -module.exports = class IsntJokeCommand extends Command { - constructor(client) { - super(client, { - name: 'isnt-joke', - aliases: ['its-not-joke'], - group: 'single', - memberName: 'isnt-joke', - description: 'Isn\'t joke...', - clientPermissions: ['ATTACH_FILES'], - url: [ - { - name: 'Love Live! School Idol Project', - url: 'http://www.lovelive-anime.jp/', - reason: 'Original Anime' - } - ] - }); - } - - run(msg) { - return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'isnt-joke.png')] }); - } -}; diff --git a/commands/single/its-joke.js b/commands/single/its-joke.js deleted file mode 100644 index d8ca02f2..00000000 --- a/commands/single/its-joke.js +++ /dev/null @@ -1,26 +0,0 @@ -const Command = require('../../structures/Command'); -const path = require('path'); - -module.exports = class ItsJokeCommand extends Command { - constructor(client) { - super(client, { - name: 'its-joke', - aliases: ['is-joke'], - group: 'single', - memberName: 'its-joke', - description: 'It\'s joke!', - clientPermissions: ['ATTACH_FILES'], - url: [ - { - name: 'Love Live! School Idol Project', - url: 'http://www.lovelive-anime.jp/', - reason: 'Original Anime' - } - ] - }); - } - - run(msg) { - return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'its-joke.png')] }); - } -}; diff --git a/package.json b/package.json index 17c267b3..4fa96157 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "126.15.0", + "version": "127.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {