| Fix radio service startup. - annna - Annna the nice friendly bot. | |
| git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| --- | |
| commit f04b4dd68888067acf2805a42205cffee29e3e1b | |
| parent c2781c22d1d949452881b27dae96a393b5213538 | |
| Author: Annna Robert-Houdin <[email protected]> | |
| Date: Tue, 14 Oct 2025 23:01:46 +0200 | |
| Fix radio service startup. | |
| Diffstat: | |
| M annna-join-channels | 3 ++- | |
| M annna-message-radio | 2 +- | |
| 2 files changed, 3 insertions(+), 2 deletions(-) | |
| --- | |
| diff --git a/annna-join-channels b/annna-join-channels | |
| @@ -1,8 +1,9 @@ | |
| #!/bin/sh | |
| # Channels | |
| -for IRC_CHANNEL in ${IRC_CHANNELS}; | |
| +for channel in ${IRC_CHANNELS}; | |
| do | |
| + export IRC_CHANNEL="${channel}" | |
| printf "/j %s\n" "${IRC_CHANNEL}" > "${IRC_SERVERBASE}/in" | |
| # We are nice. | |
| diff --git a/annna-message-radio b/annna-message-radio | |
| @@ -11,7 +11,7 @@ case "${IRC_PRIVMSG_TEXT}" in | |
| "${IRC_USER}, please toggle consume.") /usr/bin/mpc -q consume; exit;; | |
| "${IRC_USER}, please rescan.") /usr/bin/mpc -q rescan; exit;; | |
| "${IRC_USER}, how many people listen to the radio?") | |
| - annna-say -s "${IRC_SERVER}" -c "${IRC_CHANNEL}" "${IRC_CMD_USER}, $(/… | |
| + annna-say "${IRC_CMD_USER}, $(/br/bin/bitreich-radio-listener-count)" | |
| exit;; | |
| "${IRC_USER}, please radio play "*) | |
| url="$(printf "%s\n" "${IRC_PRIVMSG_TEXT}" | cut -c 25- | sed 's,\t, … |