📌 1.0.0

This commit is contained in:
2020-06-14 23:29:40 +02:00
parent f1efbc6dac
commit 13c709744f
32 changed files with 812 additions and 559 deletions

220
README.md
View File

@@ -17,30 +17,6 @@ A correct and understandable issue contains :
You can also join me on my <a href="https://discord.gg/qvzwqaM">discord server.</a>
# Changelog
## v0.1.9
- Added options for the wanted.
- The base image has been updated
- There is now a random price diplayed
- You can now configure a currency
- Added .thomas()
## v0.1.11
- Added .tatoo()
- Updated JSDoc
## v1.1.12
- Saved all examples to imgur
## v1.1.13
- Added example for .tatoo()
- Fixed the litle hole at the top of the users pic on .thomas()
## v1.1.14
- Updated .thomas() example
# Download
You can download it from <a href="https://www.npmjs.com/package/discord-image-generation">npmjs</a>.
@@ -78,7 +54,7 @@ bot.on("message", async (message) => {
// Get the avatarUrl of the user
let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
// Make the image
let img = await DIG.delete(avatar)
let img = await DIG.delete().getImage(avatar)
// Add the image as an attachement
let attach = new Discord.MessageAttachment(img, "delete.png");;
message.channel.send(attach)
@@ -91,102 +67,154 @@ bot.login("super_secret_token")
# Available images
- .blur(`<Avatar>`, `<Level(Number)>`);
## Filters
- .Blur().getImage(`<Avatar>`, `<Level(Number)>`);
![Blur](https://imgur.com/JqpNFTY.png)
- .facepalm(`<Avatar>`);
![Facepalm](https://imgur.com/cdPC3P1.png)
- .gay(`<Avatar>`);
- .Gay().getImage(`<Avatar>`);
![Gay](https://imgur.com/BDTrXzZ.png)
- .rip(`<Avatar>`);
![RIP](https://imgur.com/MgsRH8o.png)
- .trash(`<Avatar>`);
![Trash](https://imgur.com/nwAHGgF.png)
- .circle(`<Avatar>`);
![Circle](https://imgur.com/0Zo8NYS.png)
- .greyscale(`<Avatar>`);
- .Greyscale().getImage(`<Avatar>`);
![Greyscale](https://imgur.com/h3ahY7Z.png)
- .kiss(`<Avatar>`, `<Avatar2>`);
![Kiss](https://imgur.com/sSoCAeH.png)
- .sepia(`<Avatar>`);
![Sepia](https://imgur.com/OTbKVtj.png)
- .mms(`<Avatar>`);
![MMS](https://imgur.com/nH3URHb.png)
- .spank(`<Avatar>`, `<Avatar2>`);
![Spank](https://imgur.com/VRvogo7.png)
- .color(`<Color>`);
> An hex color is needed, like "#FF0000"
![Color](https://imgur.com/40tMwfe.png)
- .triggered(`<Avatar>`);
![Triggered](https://imgur.com/0QvyYQa.png)
- .hitler(`<Avatar>`);
![Hitler](https://imgur.com/wK9puxH.png)
- .batslap(`<Avatar>`, `<Avatar2>`);
![Batslap](https://imgur.com/oYMpa5A.png)
- .bed(`<Avatar>`, `<Avatar2>`);
![Bed](https://imgur.com/b1idSnr.png)
- .invert(`<Avatar>`);
- .Invert().getImage(`<Avatar>`);
![Invert](https://imgur.com/Rl0wGQM.png)
- .wanted(`<Avatar>`, `<Currency>`);
- .Sepia().getImage(`<Avatar>`);
![Sepia](https://imgur.com/OTbKVtj.png)
## Gifs
- .Blink().getImage()
![Blink](https://imgur.com/JjUXmRU.gif)
- .Triggered().getImage(`<Avatar>`);
![Triggered](https://imgur.com/0QvyYQa.gif)
## Montage
- .Affect().getImage(`<Avatar>`);
![Affect](https://imgur.com/g4Gaehb.png)
- .Batslap().getImage(`<Avatar>`, `<Avatar2>`);
![Batslap](https://imgur.com/oYMpa5A.png)
- .Beautiful().getImage(`<Avatar>`);
![Beautiful](https://imgur.com/HGZkmXo.png)
- .Bed().getImage(`<Avatar>`, `<Avatar2>`);
![Bed](https://imgur.com/b1idSnr.png)
- .Delete().getImage(`<Avatar>`);
![Delete](https://imgur.com/6V1IYJp.png)
- .Facepalm().getImage(`<Avatar>`);
![Facepalm](https://imgur.com/cdPC3P1.png)
- .Hitler().getImage(`<Avatar>`);
![Hitler](https://imgur.com/wK9puxH.png)
- .Jail().getImage(`<Avatar>`);
![Jail](https://imgur.com/QslACNo.png)
- .Kiss().getImage(`<Avatar>`, `<Avatar2>`);
![Kiss](https://imgur.com/sSoCAeH.png)
- .Mms().getImage(`<Avatar>`);
![MMS](https://imgur.com/nH3URHb.png)
- .Rip().getImage(`<Avatar>`);
![RIP](https://imgur.com/MgsRH8o.png)
- .Spank().getImage(`<Avatar>`, `<Avatar2>`);
![Spank](https://imgur.com/VRvogo7.png)
- .Tatoo().getImage(`<Avatar>`)
![Tatoo](https://imgur.com/wJju4UJ.png)
- .Thomas().getImage(`<Avatar>`);
![Thomas](https://imgur.com/7R37J2j.png)
- .Trash().getImage(`<Avatar>`);
![Trash](https://imgur.com/nwAHGgF.png)
- .Wanted().getImage(`<Avatar>`, `<Currency>`);
> Currency ($, €, ...)
![Wanted](https://imgur.com/SFGRvSK.png)
- .beautiful(`<Avatar>`);
![Beautiful](https://imgur.com/HGZkmXo.png)
## Utils
- .jail(`<Avatar>`);
- .Circle().getImage(`<Avatar>`);
![Jail](https://imgur.com/QslACNo.png)
![Circle](https://imgur.com/0Zo8NYS.png)
- .affect(`<Avatar>`);
- .Color().getImage(`<Color>`);
![Affect](https://imgur.com/g4Gaehb.png)
> An hex color is needed, like "#FF0000"
- .delete(`<Avatar>`);
![Color](https://imgur.com/40tMwfe.png)
![Delete](https://imgur.com/6V1IYJp.png)
# Changelog
- .thomas(`<Avatar>`);
## v1.0.0
- 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 the triggered example not animated
- Added some keywords
- Bumped jimp from ^0.12.1 to ^0.13.0
- Added workflow to auto publish to npm and github packages on push
![Thomas](https://imgur.com/7R37J2j.png)
- .tatoo(`<Avatar>`)
## v0.1.14
- Updated .thomas() example
![Tatoo](https://imgur.com/wJju4UJ.png)
## v0.1.13
- Added example for .tatoo()
- Fixed the litle hole at the top of the users pic on .thomas()
## v0.1.12
- Saved all examples to imgur
## v0.1.11
- Added .tatoo()
- Updated JSDoc
## v0.1.9
- Added options for the wanted.
- The base image has been updated
- There is now a random price diplayed
- You can now configure a currency
- Added .thomas()