A bot for automagically sending messages to Owncast chat, at specified intervals.
|
14 uur geleden | |
---|---|---|
.gitignore | 2 maanden geleden | |
License | 1 dag geleden | |
README.md | 14 uur geleden | |
nagbot.py | 1 dag geleden |
A bot for automagically sending messages to Owncast chat, at specified intervals. It only sends messages while you're streaming.
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.
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
env/bin/python nagbot.py