Package Exports
- discord-imgen
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (discord-imgen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
discord-imgen
discord-imgen npm is an easy to use on the go npm for generating awesome images for discord bots EXAMPLE CODE BELOW
const Discord = require('discord.js)
const imgen = require('discord-imgen')
const client = new Discord.Client()
client.on('message', async message => {
if(message.content === 'blurpify'){
imgen.blurpify(message.author.avatarURL(), res=> {
message.channel.send(res)
}
)
} else if(message.content === 'tweet'){
imgen.tweet(message.author.username, 'some text', res=> {
message.channel.send(res)//tweet image
}
)
}
})