From e96f6ac26bff070f9517a6a080f28576df5b528b Mon Sep 17 00:00:00 2001
From: loicbersier <loic.bersier1@gmail.com>
Date: Sun, 14 Oct 2018 22:27:38 +0200
Subject: [PATCH] renamed command

---
 commands/fun/{painting.js => idubbbzpaint.js} | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
 rename commands/fun/{painting.js => idubbbzpaint.js} (88%)

diff --git a/commands/fun/painting.js b/commands/fun/idubbbzpaint.js
similarity index 88%
rename from commands/fun/painting.js
rename to commands/fun/idubbbzpaint.js
index be1ee110..382b9fc4 100644
--- a/commands/fun/painting.js
+++ b/commands/fun/idubbbzpaint.js
@@ -4,17 +4,17 @@ const { createCanvas, loadImage, getContext } = require('canvas')
 const superagent = require('superagent')
 
 
-module.exports = class idubbbzCommand extends Command {
+module.exports = class idubbbzpaintCommand extends Command {
     constructor(client) {
         super(client, {
-            name: 'painting',
+            name: 'idubbbzpaint',
             aliases: ['idubbzpaint', 'edupspaint'],
             group: 'fun',
             memberName: 'painting',
             description: `Put the text you send in idubbbz piece of paper`,
             args: [
                 {
-                    key: 'test',
+                    key: 'text',
                     prompt: 'What do you the paper to say?',
                     type: 'string',
                     default: 'Perfection'
@@ -23,7 +23,7 @@ module.exports = class idubbbzCommand extends Command {
         });
     }
 
-    async run(message, { test }) {
+    async run(message, { text }) {
         let Attachment = (message.attachments).array();
         let image = null
         if (!Attachment[0])
@@ -53,9 +53,9 @@ module.exports = class idubbbzCommand extends Command {
         const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539533685-untitled.png');
         const bg = await loadImage(buffer);
         ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
-        ctx.font = applyText(canvas, test)
+        ctx.font = applyText(canvas, text)
         ctx.fillStyle = '#ffffff';
-        ctx.fillText(test, canvas.width / 3, canvas.height / 1.1);
+        ctx.fillText(text, canvas.width / 3, canvas.height / 1.1);
 
         const attachment = new Discord.Attachment(canvas.toBuffer(), 'edupspaint.png');