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

deadtom cd7b759e44 Add additional logging 4 days ago
.gitignore 63272cf787 Add '.gitignore' 1 month ago
License 83300a3c84 Add 'License' 1 month ago
README.md b7dec485db Update 'README.md' 4 days ago
nagbot.py cd7b759e44 Add additional logging 4 days ago

README.md

Nagbot

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

Create a config.py

owncast_url = 'https://<url>'  # The URL of your Owncast server
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 requests

Run with:

.venv/bin/python nagbot.py