|
|
||
|---|---|---|
| .gitignore | ||
| bot.py | ||
| compose.yaml | ||
| config.ini | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
icecord
simple icecast/liquidsoap status/control discord bot thingy
im sorry for the absolutely abysmal code
running with docker compose
add your discord token and icecast url in config.ini, then clone the repo git clone https://git.maymundere.org/dj-no/icecord and run docker compose up
running locally
if you wanna run it locally run pip install --user -r requirements.txt and then python bot.py
you'll have to write your own systemd service for it
usage
run !help to get a list of commands
config
[main]
token = discord-token-goes-here # discord token goes here.....DUH
url = http://example.com:8000/status-json.xsl # your icecast server url goes here
telnet_ip = localhost
telnet_port = 1234
addendum on skipping
while !np and !stats will work on any icecast server that provides status-json.xsl, !skip and !tn use liquidsoap's internal telnet server.
if you wanna make use of them you will need to enable telnet in liquidsoap's config (also for added security either run the bot on the same machine as liquidsoap or set up an ssh tunnel, you do NOT wanna expose telnet to the internet)