diff --git a/README.md b/README.md index 819a5c2f..a66ffdab 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ don't grant that permission. ## Commands -Total: 375 +Total: 376 ### Utility: @@ -384,6 +384,7 @@ Total: 375 * **achievement:** Sends a Minecraft achievement with the text of your choice. * **apple-engraving:** Engraves the text of your choice onto an Apple product. * **approved:** Draws an "approved" stamp over an image or a user's avatar. +* **axis-cult-sign-up:** Sends an Axis Cult Sign-Up sheet for you. Join today! * **brazzers:** Draws an image with the Brazzers logo in the corner. (NSFW) * **circle:** Draws an image or a user's avatar as a circle. * **color:** Sends an image of the color you choose. @@ -612,6 +613,8 @@ here. * bulbapedia ([API](https://bulbapedia.bulbagarden.net/w/api.php)) - [Bulletin of the Atomic Scientists](https://thebulletin.org/) * doomsday-clock ([Doomsday Clock Data](https://thebulletin.org/doomsday-clock/current-time/)) +- [cheesecakejedi](https://imgur.com/user/cheesecakejedi) + * axis-cult-sign-up ([Image](https://imgur.com/gallery/quQTD)) - [Christoph Mueller](https://www.fontsquirrel.com/fonts/list/foundry/christoph-mueller) * captcha ([Moms Typewriter Font](https://www.fontsquirrel.com/fonts/MomsTypewriter)) - [Chuck Norris](https://chucknorris.com/) @@ -731,6 +734,8 @@ here. * brony-speak ([Original "My Little Pony: Friendship is Magic" Show](https://mylittlepony.hasbro.com/en-us)) * connect-four (Original "Connect Four" Game) * scrabble-score ([Original Scrabble Game](https://scrabble.hasbro.com/en-us)) +- [hbl917070](https://github.com/hbl917070) + * axis-cult-sign-up ([Font](https://github.com/hbl917070/Konosuba-text)) - [Horst Faas](https://en.wikipedia.org/wiki/Horst_Faas) * vietnam-flashbacks (Image) - [HTTP Cats](https://http.cat/) @@ -804,6 +809,7 @@ here. * yu-gi-oh-token ([Image, Original "Yu-Gi-Oh!" Game](https://www.yugioh-card.com/en/)) - [KONOSUBA -God's blessing on this wonderful world!](http://konosuba.com/) * axis-cult (Original Anime) + * axis-cult-sign-up (Original Anime) * hat (Megumin Hat Original Anime) * kazuma-kazuma (Original Anime) - [Latlmes](https://www.latlmes.com/) diff --git a/assets/fonts/Konosuba.ttf b/assets/fonts/Konosuba.ttf new file mode 100644 index 00000000..29c3dcff Binary files /dev/null and b/assets/fonts/Konosuba.ttf differ diff --git a/assets/images/axis-cult-sign-up.jpg b/assets/images/axis-cult-sign-up.jpg new file mode 100644 index 00000000..2d121b49 Binary files /dev/null and b/assets/images/axis-cult-sign-up.jpg differ diff --git a/commands/image-edit/axis-cult-sign-up.js b/commands/image-edit/axis-cult-sign-up.js new file mode 100644 index 00000000..b9851c9d --- /dev/null +++ b/commands/image-edit/axis-cult-sign-up.js @@ -0,0 +1,78 @@ +const Command = require('../../structures/Command'); +const { createCanvas, loadImage, registerFont } = require('canvas'); +const path = require('path'); +registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Konosuba.ttf'), { family: 'Konosuba' }); + +module.exports = class AxisCultSignUpCommand extends Command { + constructor(client) { + super(client, { + name: 'axis-cult-sign-up', + aliases: ['axis-sign-up'], + group: 'image-edit', + memberName: 'axis-cult-sign-up', + description: 'Sends an Axis Cult Sign-Up sheet for you. Join today!', + throttling: { + usages: 1, + duration: 10 + }, + clientPermissions: ['ATTACH_FILES'], + credit: [ + { + name: 'cheesecakejedi', + url: 'https://imgur.com/user/cheesecakejedi', + reason: 'Image', + reasonURL: 'https://imgur.com/gallery/quQTD' + }, + { + name: 'hbl917070', + url: 'https://github.com/hbl917070', + reason: 'Font', + reasonURL: 'https://github.com/hbl917070/Konosuba-text' + }, + { + name: 'KONOSUBA -God\'s blessing on this wonderful world!', + url: 'http://konosuba.com/', + reason: 'Original Anime' + } + ], + args: [ + { + key: 'gender', + prompt: 'What is your gender?', + type: 'string', + oneOf: ['male', 'female'] + }, + { + key: 'age', + prompt: 'How old are you?', + type: 'integer', + min: 1, + max: Number.MAX_SAFE_INTEGER + }, + { + key: 'profession', + prompt: 'What is your profession?', + type: 'string' + } + ] + }); + } + + async run(msg, { gender, age, profession }) { + const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'axis-cult-sign-up.jpg')); + const canvas = createCanvas(base.width, base.height); + const ctx = canvas.getContext('2d'); + ctx.drawImage(base, 0, 0); + ctx.font = '96px Konosuba'; + ctx.fillText(msg.author.username, 960, 1558); + ctx.fillText(gender, 960, 1752); + ctx.fillText(age, 1700, 1752); + ctx.fillText('XXX-XXX-XXXX', 960, 1960); + ctx.fillText(profession, 960, 2169); + ctx.fillText('Xiao', 960, 2370); + ctx.font = '123px Konosuba'; + ctx.fillText('Eris pads\nher chest!', 1037, 3048); + return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'axis-cult-sign-up.png' }] }); + } +}; + diff --git a/package.json b/package.json index c1a48f93..02c09102 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "112.14.4", + "version": "112.15.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {