1.2.0 • Published 5 years ago
@fhg_developer/discode v1.2.0
About
discode is a simple and lightweight Node.js module for interfacing with the Discord API.
- Simple and easy to use
- Object-oriented
- Lightweight, therefore fast
Installation
Node.js 10.0.0 or newer is required Any warning messages about unmet peer dependencies are false alarms as these 'required modules' are optional.
Example Bot
const discord = require('discode')
const bot = new discord.Client()
bot.on('ready', () => {
console.log("Logged in as ", bot.user.username)
})
bot.on('message', message => {
if (message.content == "ping") {
message.channel.send("pong")
}
})
bot.run('your-token-here')
Links
Help
If you're having trouble, don't know where to start, or need a push in the right direction, join our Discord server. We'll help you. :smile: