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

allens a1dd04b21c Formatting пре 2 дана
.gitignore 63272cf787 Add '.gitignore' пре 2 месеци
License f77a70153d Changed to CC4.0 пре 2 дана
README.md a1dd04b21c Formatting пре 2 дана
nagbot.py 0bc14d75cd Cleaned up logging пре 2 дана

README.md

Nagbot

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

Create a config.py

owncast_url = '<url>'  # The URL of your Owncast server
auth_bearer = ''  # The API access token for your nagbot. You'll need to create one in the Owncast admin panel.
logfile = 'nagbot.log'  # Logfile
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, and activate it.

python3 -m venv env
source env/bin/activate

Upgrade pip and install the requests module.

pip install --upgrade pip
pip install requests

Deactivate your venv.

deactivate

Run with:

env/bin/python nagbot.py