Git Product home page Git Product logo

status's Introduction

About Status

Note The status page is now integrated directly into the AvaIre website, you can view the new shard status pages at https://avairebot.com/stats

AvaIre Status is a small single page web app that shows information about each shard in Ava, and auto updates every 30 seconds, you can see the live version of the site by clicking here.

This project uses Composer for managing PHP packages, and Yarn for managing Node modules, if you want to self-host the status page you can clone the repository, and setup everything using:

composer install & yarn && yarn prod

The API endpoint that are hit to display the shard data is stored in the assets/js/app.js file, you can change it to anything else that returns a valid JSON object matching the one Ava sends.

An example of a valid JSON response from the API.

{
    "shards":[
        {
            "channels": 13145,
            "guilds": 860,
            "latency": 115,
            "id": 1,
            "users": 20168,
            "status": "CONNECTED"
        },
        {
            "channels": 12397,
            "guilds": 811,
            "latency": 112,
            "id": 0,
            "users": 15002,
            "status": "CONNECTED"
        }
    ],
    "global": {
        "channels": {
            "voice": 113882,
            "total": 279007,
            "text": 165125
        },
        "guilds": 17674,
        "users": 568817
    }
}

The status on the page will change color depending on the status returned from the API, the status names are the JDA Statuses, you can see what color is giving to what status in the assets/sass/app.sass file.

License

AvaIre Status is open-sourced software licensed under the MIT license.

status's People

Contributors

senither avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.