From 9d6d92aa74b8e724e37ad80b0f3e71ce9bf6b442 Mon Sep 17 00:00:00 2001 From: Mr-KayJayDee Date: Mon, 18 Jan 2021 20:20:46 +0100 Subject: [PATCH] Changed version + Updated docs for Blink() --- README.md | 7 ++++++- package.json | 2 +- src/module/gif/blink.js | 5 ++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1810e6b..de0f570 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,9 @@ bot.login("super_secret_token") ## Gifs -- ``new DIG.Blink().getImage(``, ``, ``);`` +- ``new DIG.Blink().getImage(``, ``.....);`` + +> You can add as many images as you want ![Blink](https://imgur.com/JjUXmRU.gif) @@ -237,6 +239,9 @@ bot.login("super_secret_token") # Changelog +## v1.4.7 +- Improved Blink() generation, now supports adding an insane amount of images ^^ + ## v1.4.5 - Added Karaba() - Fixed some errors returns that were not the same diff --git a/package.json b/package.json index c08b914..62eb7be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-image-generation", - "version": "1.4.5", + "version": "1.4.7", "description": "discord-image-generation is a powerfull module that allow you to generate awesome images.", "main": "src/index.js", "scripts": { diff --git a/src/module/gif/blink.js b/src/module/gif/blink.js index 64a73e7..c54abcc 100644 --- a/src/module/gif/blink.js +++ b/src/module/gif/blink.js @@ -4,10 +4,9 @@ const GIFEncoder = require(`gifencoder`); module.exports = class Blink { async getImage( ...images) { - console.log(images) - if (!images || images.length < 2) throw new Error(`You must provide an image as a first argument.`); + if (!images || images.length < 2) throw new Error(`You must provide at least two images.`); - const GIF = new GIFEncoder(480, 480) + const GIF = new GIFEncoder(480, 480); GIF.start(); GIF.setRepeat(0); GIF.setDelay(1000);