trollbox.js
v1.0.1
Published
A library for connecting to Trollbox with similar syntax as discord.js
Downloads
5
Readme
Trollbox.js
A trollbox client for bots.
Usage
Example code
//Require trollbox.js
const Trollbox = require("trollbox.js");
const client = new Trollbox.Client();
//When it's ready
client.on("ready", () => {
console.log("logged in to trollbox");
});
//When a message is recieved
client.on("message", (message) => {
if (message.content.startsWith("/ping")) {
message.reply("pong! " + Math.floor(client.ping) + 'ms');
}
});
//Login to trollbox (nick, color*, style*, pass*, server*)
//*optional
client.login('trollbox.js bot', '#00ddfd');
It's not great, but it does the job.