image-cord

2.0.3 • Public • Published

image-cord


Discord server NPM version NPM downloads Patreon

About

image-cord is a just a package that create images and gifs. This package is only for making discord bot commands of fun category and image category. This package is new we are adding many things.

Installation

npm i image-cord

Example usage

const Discord = require("discord.js")
const { MessageEmbed } = require('discord.js')
const client = new Discord.Client()
const gif = require("image-cord")


client.on("ready", () => {
  console.log("YAY! Bot is online and ready")
})

client.on("message", async message => {

  if(message.content === "!hug") {
    let image = await gif.Hug()

    let embed = new MessageEmbed()
.setColor("#87CEEB")
.setImage(image)
.setTimestamp()
  message.channel.send(embed)
  }
})

client.login(process.env.TOKEN);

Package Sidebar

Install

npm i image-cord

Weekly Downloads

31

Version

2.0.3

License

Apache-2.0

Unpacked Size

27 kB

Total Files

36

Last publish

Collaborators

  • diwas_atreya