0.0.6 • Published 7 years ago

discord-node v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Installing

You need Node.js 4 or above to install Discord Node.

npm install discord-node

Example

const DNode = require("discord-node");
const bot = new DNode("Bot Token")

bot.on("ready", () => {
    console.log("RDY 4 ADVENSHUR");
})

bot.on("messageSent", (msg) => {
    if (msg.content === "!ping") {
        bot.sendMessage(msg.channel.id, "Pong!")
    }
})

bot.connect()

Useful things

Documentation NPM Package Github Repository