Changed version + Updated docs for Blink()
This commit is contained in:
@@ -94,7 +94,9 @@ bot.login("super_secret_token")
|
|||||||
|
|
||||||
## Gifs
|
## Gifs
|
||||||
|
|
||||||
- ``new DIG.Blink().getImage(`<Avatar>`, `<Avatar2>`, `<Timeout (Number in ms)>`);``
|
- ``new DIG.Blink().getImage(`<Avatar>`, `<Avatar2>`.....);``
|
||||||
|
|
||||||
|
> You can add as many images as you want
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -237,6 +239,9 @@ bot.login("super_secret_token")
|
|||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v1.4.7
|
||||||
|
- Improved Blink() generation, now supports adding an insane amount of images ^^
|
||||||
|
|
||||||
## v1.4.5
|
## v1.4.5
|
||||||
- Added Karaba()
|
- Added Karaba()
|
||||||
- Fixed some errors returns that were not the same
|
- Fixed some errors returns that were not the same
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord-image-generation",
|
"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.",
|
"description": "discord-image-generation is a powerfull module that allow you to generate awesome images.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@@ -4,10 +4,9 @@ const GIFEncoder = require(`gifencoder`);
|
|||||||
module.exports = class Blink {
|
module.exports = class Blink {
|
||||||
|
|
||||||
async getImage( ...images) {
|
async getImage( ...images) {
|
||||||
console.log(images)
|
if (!images || images.length < 2) throw new Error(`You must provide at least two images.`);
|
||||||
if (!images || images.length < 2) throw new Error(`You must provide an image as a first argument.`);
|
|
||||||
|
|
||||||
const GIF = new GIFEncoder(480, 480)
|
const GIF = new GIFEncoder(480, 480);
|
||||||
GIF.start();
|
GIF.start();
|
||||||
GIF.setRepeat(0);
|
GIF.setRepeat(0);
|
||||||
GIF.setDelay(1000);
|
GIF.setDelay(1000);
|
||||||
|
Reference in New Issue
Block a user