Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

NOALBS/liveu-stats-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This repository is unmaintained use the newer version.

LIVEU STATS BOT

Adds a chat command to check the current modems and bitrate on the liveu.

Build Prerequisities

Installation from Source

  • git clone <repository-url> or use the clone or download button above.
  • Change into the new directory.
  • npm install

Config

Edit config.json to your own settings.

{
    "liveu": {
        "email": "YOUR LIVEU EMAIL",
        "password": "YOUR LIVEU PASSWORD"
    },
    "twitch": {
        "botUsername": "TWITCH BOT USERNAME",
        "botOauth": "TWITCH BOT OAUTH",
        "twitchChannel": "YOUR TWITCH CHANNEL",
        "commands": ["!lustats", "!liveustats", "!lus"]
    },
    "nginx": {
        "stats": "http://localhost/stat",
        "application": "publish",
        "key": "live"
    }
}

The nginx part is optional

How to run from source

Run the node app by running: npm start.

Chat Commands

After running the app successfully you can use the follwing default commands in your chat to get stats:

  • !lustats
  • !liveustats
  • !lus

You can also add, delete or change the commands to whatever you want just as long its in an array format in config.json on line 10;

Example: "commands": ["!ls", "!modemstats", "!connstats", "!lus", "mystats", "!whatever"],

Possible Chat Command Results:

If your LiveU is offline you'll see this in chat:

ChatBot: LiveU Offline :(

If your LiveU is online and ready you'll see this in chat:

ChatBot: LiveU Online and Ready

If your LiveU is online, streaming but not using NGINX you'll see this in chat:

ChatBot: WiFi: 2453 Kbps, USB1: 2548 Kbps, USB2: 2328 Kbps, Ethernet: 2285 Kbps.
ChatBot: (TOTAL BITRATE) LiveU to LRT: 7000 Kbps

If your LiveU is online, streaming and you're using NGINX you'll see this in chat:

ChatBot: WiFi: 2453 Kbps, USB1: 2548 Kbps, USB2: 2328 Kbps, Ethernet: 2285 Kbps.
ChatBot: (TOTAL BITRATE) LiveU to LRT: 7000 Kbps, LRT to RTMP: 6000 Kbps

Please note: if one of your connections is offline it will NOT show up at all in the stats.

Credits:

• Cinnabarcorp: Initial Idea, Research & Development, Feedback, Use Case, and Q&A Testing.

• 715209: Research & Development.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published