Skip to content

A small, single-file library for creating DiscordApp clients from Node.js or the browser

License

Notifications You must be signed in to change notification settings

diamondburned/discord.io

 
 

Repository files navigation

discord.io

A small, single-file, fully featured Discordapp library for browsers.

File modified to only support web browser!

npm install https://github.com/diamondburned/discord.io/tarball/master

Example

var Discord = require('discord.io');

var bot = new Discord.Client({
    token: "",
    autorun: true
});

bot.on('ready', function() {
    console.log('Logged in as %s - %s\n', bot.username, bot.id);
});

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

About

A small, single-file library for creating DiscordApp clients from Node.js or the browser

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%