Skip to content

Styrocord.js

A Discord API wrapper at only around 50KB, ZERO dependency!

Get started

Installation

Installation is as easy as

Terminal window
npm install styrocord.js

and can go as fast as 2 seconds

Start coding

Creating a new bot is as simple as

const styro = require("./index");
const bot = new styro({
login: {
token: 'TOKEN',
},
});
bot.on("messageCreate", async msg =>
if(msg.content.startsWith('!ping'))
return bot.channels[msg.channel.id].messages.create('Pong!')
);
bot.on("ready",async () => {
bot.users["@me"]().then(me=>
console.log("Logged in as "+me.username+"!")
)
});
bot.on("close", data => console.log("Connection closed: ", data));
bot.on('error',console.error);

Similar syntax to Discord API itself

Because styrocord.js is built to be the middleman between javascript and Discord API, It’s syntax is directly same to Discord API

Downloads

0

Stars

0

Forks

0

styrocord.js banner image