animage

    1.0.1 • Public • Published

    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

    CAT


    DOG


    RANDOM

    👤 Auteur

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

    📝 License

    © Lucas D - 2021

    Ce projet est sous license MIT.

    Install

    npm i animage

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.25 kB

    Total Files

    4

    Last publish

    Collaborators

    • octavia_