diff --git a/assets/images/pogchamp.png b/assets/images/pogchamp.png deleted file mode 100644 index b3fba51d..00000000 Binary files a/assets/images/pogchamp.png and /dev/null differ diff --git a/commands/edit-meme/pogchamp.js b/commands/edit-meme/pogchamp.js deleted file mode 100644 index d1e34ec0..00000000 --- a/commands/edit-meme/pogchamp.js +++ /dev/null @@ -1,51 +0,0 @@ -const Command = require('../../structures/Command'); -const { createCanvas, loadImage } = require('canvas'); -const path = require('path'); - -module.exports = class PogchampCommand extends Command { - constructor(client) { - super(client, { - name: 'pogchamp', - aliases: ['pog'], - group: 'edit-meme', - memberName: 'pogchamp', - description: 'Sends a pogchamp duplicated however many times you want.', - throttling: { - usages: 2, - duration: 30 - }, - clientPermissions: ['ATTACH_FILES'], - credit: [ - { - name: 'Ryan Gutierrez', - url: 'https://twitter.com/gootecks', - reason: 'Image' - } - ], - args: [ - { - key: 'amount', - prompt: 'How many times do you want to duplicate the pogchamp?', - type: 'integer', - max: 100, - min: 1 - } - ] - }); - } - - async run(msg, { amount }) { - const pog = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'pogchamp.png')); - const rows = Math.ceil(amount / 10); - const canvas = createCanvas(pog.width * (rows > 1 ? 10 : amount), pog.height * rows); - const ctx = canvas.getContext('2d'); - let width = 0; - for (let i = 0; i < amount; i++) { - const row = Math.ceil((i + 1) / 10); - ctx.drawImage(pog, width, pog.height * (row - 1)); - if ((width + pog.width) === (pog.width * (rows > 1 ? 10 : amount))) width = 0; - else width += pog.width; - } - return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'pogchamp.png' }] }); - } -}; diff --git a/package.json b/package.json index c575a671..84040808 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "136.6.1", + "version": "137.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "private": true,