Skip to content

A library for creating a Discord client from Node.js. Come join us:

License

Notifications You must be signed in to change notification settings

thomasdbock/discord.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord.io

A low-level library for creating a Discord client from Node.js. Come join the discussion!

Installation

npm install discord.io

Example

var DiscordClient = require('discord.io');
var bot = new DiscordClient({
    autorun: true,
    email: "",
    password: "",
    //OR
    token: ""
});

bot.on('ready', function() {
    console.log(bot.username + " - (" + bot.id + ")");
});

bot.on('message', function(user, userID, channelID, message, rawEvent) {
    if (message === "ping") {
        bot.sendMessage({
            to: channelID,
            message: "pong"
        });
    }
});

About

A library for creating a Discord client from Node.js. Come join us:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%