项目作者: KhushrajRathod

项目描述 :
Backend for @TheOverseer, the analytics bot at Hack Club
高级语言: TypeScript
项目地址: git://github.com/KhushrajRathod/TheOverseerBackend.git
创建时间: 2020-12-24T05:21:59Z
项目社区:https://github.com/KhushrajRathod/TheOverseerBackend

开源协议:GNU General Public License v3.0

下载


The Overseer (Backend)

This repository contains the source for @TheOverseer, the analytics bot at Hack Club.

The Overseer is split into

  • The Backend (This) — A script that runs on the hour and computes Analytics
  • The Frontend — Listeners for the bot’s slash commands and channel-join events

Running

To compute analytics manually, run

  1. yarn start

This produces

  • 20.json - A sorted array containing the top 20 most active members, names-only
  • results.json - A sorted array containing all the members, sorted by how active they are. IDs-only

Example contents of 20.json:

  1. [
  2. ["USERNAME1", 500]
  3. ["USERNAME2", 250],
  4. ["USERNAME3", 50],
  5. // ...
  6. ]

Example contents of results.json:

  1. [
  2. ["USERID1", 500]
  3. ["USERID2", 250],
  4. ["USERID3", 50],
  5. // ...
  6. ]