1.0.3 • Published 4 years ago

discord.lu v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

npm.io

Discord.lu es una libreria para hacer bots de discord, todavia esta en beta y le queda mucho :)

Instalacion

Necesitas tener nodejs instalado

npm i discord.lu --save

Ejemplo basico

const Discord = require ('discord.lu');


const Discord = require('discord.lu');
const client = new Discord.Client();



client.login(''); // token

Ejemplo de comando

const Discord = require('discord.lu');
const client = new Discord.Client();

client.on('ready', async (client) => {
    const self = await client.getSelf();
    console.log(`${self.username}#${self.discriminator} esta online!`);
    await client.setPresence({ game: { name: 'Hola!' } });
});

client.on('message', (message) => {
    if (message.content.startsWith('!ping')) {
        client.sendMessage(message.channel_id, {
            content: 'Pong!'
        }).catch(console.error);
    }
});

client.login(''); // tu token
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago