Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

SwitchbladeBot/bot-list-poster

Repository files navigation

botlist-poster

Centralized service to distribute your Discord bot's statistics to multiple bot lists. We run this as service in a Kubernetes Cluster, but it might work with other orchestrators too.

Supported Bot Lists

Add a Bot List

Bot list files reside in src/botlists, and control how information is sent to each website. Below is a basic example of one os these files.

const { BotList } = require('../structures')
const fetch = require('node-fetch')

/**
 * @see https://www.carbonitex.net/discord/data/botdata.php
 */
module.exports = class Carbonitex extends BotList {
  constructor (name) {
    super({
      name: 'carbonitex',
      interval: 60
    })
  }

  postStatistics ({ guildCount, botId, token }) {
    fetch('https://www.carbonitex.net/discord/data/botdata.php', {
      method: 'post',
      body: JSON.stringify([
        {
          server_count: guildCount,
          key: token
        }
      ])
    })
    return true
  }
}

Sponsors

Sponsors are organizations and companies that contribute to our projects with money. They get their logo with a link to their website on this page! Click here and become a sponsor today!

Backers

Backers are the people who contribute to our projects monetarily. They get their image with a link to their website on this page, an awesome badge on their Switchblade profile and a role that grants exclusive access to some channels in our discord server. Click here and become a backer today!

About

Switchblade's Custom Bot List Statistics Poster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published