From 9910924deb1cb0219af0595dc85f4fad68812404 Mon Sep 17 00:00:00 2001 From: Killian Date: Mon, 15 Jun 2020 22:54:41 +0200 Subject: [PATCH] Fixed examples --- README.md | 60 ++++++++++++++++++++++++++-------------------------- package.json | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 2b5b340..5fb9fd8 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,10 @@ bot.on("ready", () => { // Listen to the message event bot.on("message", async (message) => { if (message.content === "*delete") { - // Get the avatarUrl of the user + // Get the avatarUrl of the user let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' }); // Make the image - let img = await DIG.delete().getImage(avatar) + let img = await new DIG.delete().getImage(avatar) // Add the image as an attachement let attach = new Discord.MessageAttachment(img, "delete.png");; message.channel.send(attach) @@ -70,101 +70,101 @@ bot.login("super_secret_token") ## Filters -- ``.Blur().getImage(``, ``);`` +- ``new Blur().getImage(``, ``);`` ![Blur](https://imgur.com/JqpNFTY.png) -- ``.Gay().getImage(``);`` +- ``new Gay().getImage(``);`` ![Gay](https://imgur.com/BDTrXzZ.png) -- ``.Greyscale().getImage(``);`` +- ``new Greyscale().getImage(``);`` ![Greyscale](https://imgur.com/h3ahY7Z.png) -- ``.Invert().getImage(``);`` +- ``new Invert().getImage(``);`` ![Invert](https://imgur.com/Rl0wGQM.png) -- ``.Sepia().getImage(``);`` +- ``new Sepia().getImage(``);`` ![Sepia](https://imgur.com/OTbKVtj.png) ## Gifs -- ``.Blink().getImage(``, ``, )`` +- ``new Blink().getImage(``, ``, )`` ![Blink](https://imgur.com/JjUXmRU.gif) -- ``.Triggered().getImage(``);`` +- ``new Triggered().getImage(``);`` ![Triggered](https://imgur.com/0QvyYQa.gif) ## Montage -- ``.Affect().getImage(``);`` +- ``new Affect().getImage(``);`` ![Affect](https://imgur.com/g4Gaehb.png) -- ``.Batslap().getImage(``, ``);`` +- ``new Batslap().getImage(``, ``);`` ![Batslap](https://imgur.com/oYMpa5A.png) -- ``.Beautiful().getImage(``);`` +- ``new Beautiful().getImage(``);`` ![Beautiful](https://imgur.com/HGZkmXo.png) -- ``.Bed().getImage(``, ``);`` +- ``new Bed().getImage(``, ``);`` ![Bed](https://imgur.com/b1idSnr.png) -- ``.Delete().getImage(``);`` +- ``new Delete().getImage(``);`` ![Delete](https://imgur.com/6V1IYJp.png) -- ``.Facepalm().getImage(``);`` +- ``new Facepalm().getImage(``);`` ![Facepalm](https://imgur.com/cdPC3P1.png) -- ``.Hitler().getImage(``);`` +- ``new Hitler().getImage(``);`` ![Hitler](https://imgur.com/wK9puxH.png) -- ``.Jail().getImage(``);`` +- ``new Jail().getImage(``);`` ![Jail](https://imgur.com/QslACNo.png) -- ``.Kiss().getImage(``, ``);`` +- ``new Kiss().getImage(``, ``);`` ![Kiss](https://imgur.com/sSoCAeH.png) -- ``.Mms().getImage(``);`` +- ``new Mms().getImage(``);`` ![MMS](https://imgur.com/nH3URHb.png) -- ``.Rip().getImage(``);`` +- ``new Rip().getImage(``);`` ![RIP](https://imgur.com/MgsRH8o.png) -- ``.Spank().getImage(``, ``);`` +- ``new Spank().getImage(``, ``);`` ![Spank](https://imgur.com/VRvogo7.png) -- ``.Tatoo().getImage(``)`` +- ``new Tatoo().getImage(``)`` ![Tatoo](https://imgur.com/wJju4UJ.png) -- ``.Thomas().getImage(``);`` +- ``new Thomas().getImage(``);`` ![Thomas](https://imgur.com/7R37J2j.png) -- ``.Trash().getImage(``);`` +- ``new Trash().getImage(``);`` ![Trash](https://imgur.com/nwAHGgF.png) -- ``.Wanted().getImage(``, ``);`` +- ``new Wanted().getImage(``, ``);`` > Currency ($, €, ...) @@ -173,11 +173,11 @@ bot.login("super_secret_token") ## Utils -- ``.Circle().getImage(``);`` +- ``new Circle().getImage(``);`` ![Circle](https://imgur.com/0Zo8NYS.png) -- ``.Color().getImage(``);`` +- ``new Color().getImage(``);`` > An hex color is needed, like "#FF0000" @@ -189,9 +189,9 @@ bot.login("super_secret_token") - Changed the full structure - Sorted all files in folders - Sorted all files in the README -- Fixed .wanted() text bug -- Added .blink() -- Added a timeout options for .triggered() +- Fixed new Wanted() text bug +- Added new Blink() +- Added a timeout options for new Triggered() - Fixed the triggered example not animated - Added some keywords - Bumped jimp from ^0.12.1 to ^0.13.0 diff --git a/package.json b/package.json index ea6eadb..bcd8e94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-image-generation", - "version": "1.0.5", + "version": "1.0.6", "description": "discord-image-generation is a powerfull module that allow you to generate awesome images.", "main": "src/index.js", "scripts": {