Skip to content

bernkastel02/discordnode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A library for the DiscordApp API made for Node.js.



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

About

An Library for the DiscordApp API made for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published