Fixed examples
This commit is contained in:
60
README.md
60
README.md
@@ -51,10 +51,10 @@ bot.on("ready", () => {
|
|||||||
// Listen to the message event
|
// Listen to the message event
|
||||||
bot.on("message", async (message) => {
|
bot.on("message", async (message) => {
|
||||||
if (message.content === "*delete") {
|
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' });
|
let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
|
||||||
// Make the image
|
// Make the image
|
||||||
let img = await DIG.delete().getImage(avatar)
|
let img = await new DIG.delete().getImage(avatar)
|
||||||
// Add the image as an attachement
|
// Add the image as an attachement
|
||||||
let attach = new Discord.MessageAttachment(img, "delete.png");;
|
let attach = new Discord.MessageAttachment(img, "delete.png");;
|
||||||
message.channel.send(attach)
|
message.channel.send(attach)
|
||||||
@@ -70,101 +70,101 @@ bot.login("super_secret_token")
|
|||||||
|
|
||||||
## Filters
|
## Filters
|
||||||
|
|
||||||
- ``.Blur().getImage(`<Avatar>`, `<Level(Number)>`);``
|
- ``new Blur().getImage(`<Avatar>`, `<Level(Number)>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Gay().getImage(`<Avatar>`);``
|
- ``new Gay().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Greyscale().getImage(`<Avatar>`);``
|
- ``new Greyscale().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Invert().getImage(`<Avatar>`);``
|
- ``new Invert().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Sepia().getImage(`<Avatar>`);``
|
- ``new Sepia().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## Gifs
|
## Gifs
|
||||||
|
|
||||||
- ``.Blink().getImage(`<Avatar>`, `<Avatar2>`, <Timeout (Number in ms)>)``
|
- ``new Blink().getImage(`<Avatar>`, `<Avatar2>`, <Timeout (Number in ms)>)``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Triggered().getImage(`<Avatar>`);``
|
- ``new Triggered().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## Montage
|
## Montage
|
||||||
|
|
||||||
- ``.Affect().getImage(`<Avatar>`);``
|
- ``new Affect().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Batslap().getImage(`<Avatar>`, `<Avatar2>`);``
|
- ``new Batslap().getImage(`<Avatar>`, `<Avatar2>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Beautiful().getImage(`<Avatar>`);``
|
- ``new Beautiful().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Bed().getImage(`<Avatar>`, `<Avatar2>`);``
|
- ``new Bed().getImage(`<Avatar>`, `<Avatar2>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Delete().getImage(`<Avatar>`);``
|
- ``new Delete().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Facepalm().getImage(`<Avatar>`);``
|
- ``new Facepalm().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Hitler().getImage(`<Avatar>`);``
|
- ``new Hitler().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Jail().getImage(`<Avatar>`);``
|
- ``new Jail().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Kiss().getImage(`<Avatar>`, `<Avatar2>`);``
|
- ``new Kiss().getImage(`<Avatar>`, `<Avatar2>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Mms().getImage(`<Avatar>`);``
|
- ``new Mms().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Rip().getImage(`<Avatar>`);``
|
- ``new Rip().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Spank().getImage(`<Avatar>`, `<Avatar2>`);``
|
- ``new Spank().getImage(`<Avatar>`, `<Avatar2>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Tatoo().getImage(`<Avatar>`)``
|
- ``new Tatoo().getImage(`<Avatar>`)``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Thomas().getImage(`<Avatar>`);``
|
- ``new Thomas().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Trash().getImage(`<Avatar>`);``
|
- ``new Trash().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Wanted().getImage(`<Avatar>`, `<Currency>`);``
|
- ``new Wanted().getImage(`<Avatar>`, `<Currency>`);``
|
||||||
|
|
||||||
> Currency ($, €, ...)
|
> Currency ($, €, ...)
|
||||||
|
|
||||||
@@ -173,11 +173,11 @@ bot.login("super_secret_token")
|
|||||||
|
|
||||||
## Utils
|
## Utils
|
||||||
|
|
||||||
- ``.Circle().getImage(`<Avatar>`);``
|
- ``new Circle().getImage(`<Avatar>`);``
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- ``.Color().getImage(`<Color>`);``
|
- ``new Color().getImage(`<Color>`);``
|
||||||
|
|
||||||
> An hex color is needed, like "#FF0000"
|
> An hex color is needed, like "#FF0000"
|
||||||
|
|
||||||
@@ -189,9 +189,9 @@ bot.login("super_secret_token")
|
|||||||
- Changed the full structure
|
- Changed the full structure
|
||||||
- Sorted all files in folders
|
- Sorted all files in folders
|
||||||
- Sorted all files in the README
|
- Sorted all files in the README
|
||||||
- Fixed .wanted() text bug
|
- Fixed new Wanted() text bug
|
||||||
- Added .blink()
|
- Added new Blink()
|
||||||
- Added a timeout options for .triggered()
|
- Added a timeout options for new Triggered()
|
||||||
- Fixed the triggered example not animated
|
- Fixed the triggered example not animated
|
||||||
- Added some keywords
|
- Added some keywords
|
||||||
- Bumped jimp from ^0.12.1 to ^0.13.0
|
- Bumped jimp from ^0.12.1 to ^0.13.0
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord-image-generation",
|
"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.",
|
"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": {
|
||||||
|
Reference in New Issue
Block a user