close
The Wayback Machine - https://web.archive.org/web/20200911203507/https://github.com/dbots-pkg/dbots.js
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

dbots.js logo

A stats poster and API wrapper for all botlists.

NPM version GitHub repos used by NPM downloads Dependencies
Linting state Typings state LGTM Code Quality

NPM info

Table of Contents

About

dbots helps Discord bot developers group all your statistic posting needs into one poster, complete with seperate posting, API wrappers for supported lists, and an interval to post to all services every n seconds.

Installing

You can install dbots by running this command:

# Stable
npm i dbots
yarn add dbots

# Master
npm i dbots-pkg/dbots.js#master
yarn add ssh://github.com/dbots-pkg/dbots.js#master

Examples

Example with client

const Discord = require('discord.js');
const client = new Discord.Client();
const dbots = require('dbots');
const poster = new dbots.Poster({
    client,
    apiKeys: {
        discordbotsgg: '…',
        topgg: '…',
        lsterminalink: '…',
        carbon: '…'
    },
    clientLibrary: 'discord.js'
});

poster.startInterval(); // starts an interval thats posts to all services every 30 minutes

Example without client

const dbots = require('dbots');
const poster = new dbots.Poster({
    apiKeys: {
        discordbotsgg: '…',
        topgg: '…',
        lsterminalink: '…',
        carbon: '…'
    }
});

poster.post('carbon') // if the service is undefined, it posts to all services provided with a key

Supported Libraries

Creator Name
discordjs (originally from hydrabolt) npm GitHub discord.js
izy521 npm GitHub discord.io
qeled npm GitHub discordie
abalabahaha npm GitHub eris

Supported Services

The supported services list has been moved into the website.
You can see a full (and automatically updated) list of usables services here.

Changelog

You can see the changelog for every version here.

Contribution

Any contribution may be useful for the package! Make sure when making issues or PRs that the issue has not been addressed yet in a past issue/PR.

Other Links

You can’t perform that action at this time.