A bot for automagically sending messages to Owncast chat, at specified intervals.

allens 40bbdc2b77 Fixed formatting issue 4 日 前
.gitignore 63272cf787 Add '.gitignore' 1 ヶ月 前
License 83300a3c84 Add 'License' 1 ヶ月 前
README.md 40bbdc2b77 Fixed formatting issue 4 日 前
nagbot.py d7a62a5b6f Added logging, and a function to check if the stream is live before sending a chat message 4 日 前
pyproject.toml 4ac46f5eda Added for easier set up 4 日 前

README.md

Nagbot

A bot for automagically sending messages to Owncast chat, at specified intervals.

Create a config.py

    logfile = ''  # /full/path/to/logfile.txt
    auth_bearer = ''  # The API authentication code for your Owncast server's API. 
    nags = ['this is a message', 'this is another message']  # A list of messages to be cycled through
    interval =  # The interval, in seconds, between messages. It's an integer, so no quotes.

Setup

Create your venv, we'll call it ".venv", and activate it.

pip install --upgrade pip
pip install .

Run with:

.venv/bin/python nagbot.py