1.0.1 • Published 3 years ago

animage v1.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

DISCORD DROPS

A package that allows you to obtain images of animals

⚡ Installation

🎉 Utilisation

const Animage = require('animage');
const Discord = require('discord.js');

const bot = new Discord.Client();
const animage = new Animage.Client(bot);

bot.on('message', async message => {
    if (message.author.bot || !message.guild) return;
    
    // DOG
    if(message.content === "!dog") {
        await animage.dog(message, true) // True => Image will be sended in an embed / False => Normal message
    };
    // CAT
    if(message.content === "!cat") {
        await animage.cat(message, true) // Same
    };
    // Many others avaivable metholds that works same as those above : panda, koala, fox
    // There is a "random" method:
    if(message.content === "!random") {
        await animage.random(message);
    };
});

bot.login('TOKEN');

📸 Examples

👤 Auteur

Lucas D. | Discord: Oϲτανια#5573 (ID: 638474353842978816)

📝 License

© Lucas D - 2021

Ce projet est sous license MIT.

1.0.1

3 years ago

0.0.1

3 years ago