Starbit

Add sharding and a dashboard to your Discord bot

Starbit is not affiliated with nor endorsed by Discord in any way.

Add a Dashboard to Your Discord Bot


Easily check the status of your Discord Bot with Starbit's proprietary frontend. Have quick access to essential information, like guild count, Node.js version, and client ID. Respawn all of your shards with just one button press. And, if you connect your bot's database, get detailed information on bot analytics, like registered users and server growth over time. All of this with just a few lines of code.

Customize to your Needs


Change the port and hostname, add your own certificates for HTTPS, or even write your own database driver. Starbit was made to be simple, but flexible, so it does as much, or as little, as you need.

const starbit = require('starbit');
const Discord = require('discord.js');
const MongoDBDriver = require('starbit/models/MongoDBDriver');
const config = require('./config.json');
const fs = require('fs');

var driver = new MongoDBDriver(config.db.uri, config.db.dbName, true, config.db.userCollection);

starbit.start(config.botToken, './bot/bot.js', {
    hostname: config.hostname,
    port: config.port,
    httpsOpts: {key: fs.readFileSync(config.keyPath), cert: fs.readFileSync(config.certificatePath)},
    discordJSVersion: Discord.version,
    dbDriver: driver
});
                    

Analytics Powered by Your Existing Database


Don't worry about dealing with new technologies just to visualize your analytics. Starbit can optionally create a new collection in your existing database to store and fetch analytics. Use an existing database driver or easily write your own! And your data will be displayed with beautiful charts from Chart.js.