0.0.5 • Published 5 years ago
niscord v0.0.5
About
Niscord is a powerful JavaScript library for Discord API.
- Powerful
- Object-oriented
- Easy-to-use
- Performant
Installation
Node.js 4.0.0 or newer is required.
Voice isn't supported yet.
Stable: npm i niscord
Master: npm i niscord/niscord
Dev: Not published
Example usage
const Niscord = require('niscord');
const client = new Niscord.Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}.`);
});
client.on('message', (message) => {
if (message.content === 'hello') {
return message.reply('Hello');
}
});
client.login('Client token');