Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.
/ StatsPoster Public archive

Deno script for post stats to listing services.

License

Notifications You must be signed in to change notification settings

KilljoyBot/StatsPoster

Repository files navigation

StatsPoster

StatsPoster is a simple Deno script for post Killjoy stats to listing services.

Requires a PosgreSQL or Redis database.

Run with script installation

  1. Install Deno.
  2. Install this script deno install --allow-net --allow-read https://raw.githubusercontent.com/KilljoyBot/StatsPoster/main/cli.ts --name statsposter.
  3. Create a credentials.json file.
  4. Run statsposter ./credentials.conf.

Run without script installation

  1. Install Deno.
  2. Create a credentials.json file.
  3. Run deno run --allow-net --allow-read https://raw.githubusercontent.com/KilljoyBot/StatsPoster/main/cli.ts ./credentials.conf.

Run using compiled executables

  1. Download compiled executable from the latest release.
  2. Create a credentials.json file where ur downloaded the executable.
  3. Run the executable.

credentials.json (type)

{
    "botID": string, 
    "postgres"?: {
        "host": string,
        "port": number,
        "username": string,
        "password": string,
        "name": string
    },
    "redis"?: {
        "host": string,
        "port": number,
        "password": string | undefined,
        "db": number | undefined
    },
    "websites": [
        {
            "name": string,
            "url": string,
            "token": string,
            "body": string | undefined
        }
    ]
}

About

Deno script for post stats to listing services.

Resources

License

Stars

Watchers

Forks

Packages

No packages published