text: const { BotList } = require('../structures')
  const fetch = require('node-fetch')
  
  /**
   * @see https://docs.statcord.com/
   */
  module.exports = class Statcord extends BotList {
    constructor (name) {
      super({
        name: 'statcord',
        interval: 60
      })
    }
  
    postStatistics ({ guildCount, userCount, botId, token }) {
      fetch('https://statcord.com/apollo/post/stats', {
        method: 'post',
        body: JSON.stringify([
          {
            id: botId,
            key: token,
            servers: guildCount,
            users: userCount
          }
        ])
      })
      return true
    }
  }
  