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

This branch is 590 commits behind izy521/discord.io:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aa7220e · Mar 10, 2016
Nov 17, 2015
Feb 15, 2016
Mar 10, 2016
Aug 22, 2015
Jul 30, 2015
Dec 30, 2015
Feb 29, 2016
Aug 22, 2015
Feb 26, 2016

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%