discord.gg

0.0.6 • Public • Published

Installing

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

npm install discord.gg

Example

const client = require("discord.gg");
const bot = new client("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()

Package Sidebar

Install

npm i discord.gg

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

41.6 kB

Total Files

28

Last publish

Collaborators

  • daoinx