# discord-image-generation
A powerfull module that allow you to generate awesome images.
# Bugs and glitches
Feel free to report all bugs and glitches by creating an issue in the issue section.
A correct and understandable issue contains :
- Steps to reproduce
- Code that summonned the error
- The complete error
You can also join me on my discord server.
# 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 npmjs.
```cli
npm i discord-image-generation
```
# Configuration
The first step is to import the module in your code.
```js
const DIG = require("discord-image-generation");
```
Then you have to request your image and send it as an attachement.
```js
// Import the discord.js library.
const Discord = require("discord.js")
// Create a new discord.js client.
const bot = new Discord.Client()
const DIG = require("discord-image-generation");
// Listen to the ready event
bot.on("ready", () => {
console.log("ok");
})
// Listen to the message event
bot.on("message", async (message) => {
if (message.content === "*delete") {
// Get the avatarUrl of the user
let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
// Make the image
let img = await DIG.delete(avatar)
// Add the image as an attachement
let attach = new Discord.MessageAttachment(img, "delete.png");;
message.channel.send(attach)
}
})
// Log in to the bot
bot.login("super_secret_token")
````
# Available images
- .blur(``, ``);

- .facepalm(``);

- .gay(``);

- .rip(``);

- .trash(``);

- .circle(``);

- .greyscale(``);

- .kiss(``, ``);

- .sepia(``);

- .mms(``);

- .spank(``, ``);

- .color(``);
> An hex color is needed, like "#FF0000"

- .triggered(``);

- .hitler(``);

- .batslap(``, ``);

- .bed(``, ``);

- .invert(``);

- .wanted(``, ``);
> Currency ($, €, ...)

- .beautiful(``);

- .jail(``);

- .affect(``);

- .delete(``);

- .thomas(``);

- .tatoo(``)
