From 6a7d2669a7c8e49db8941045d463a2b6d864be57 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 13 Oct 2019 16:48:13 -0400 Subject: [PATCH] move webhook into dir --- bot.properties | 2 +- webhook.php => webhook/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename webhook.php => webhook/index.php (82%) diff --git a/bot.properties b/bot.properties index 53b61f6..c1a280a 100644 --- a/bot.properties +++ b/bot.properties @@ -2,7 +2,7 @@ server="localhost" port="6667" npfile="now_playing.txt" channel="tilderadio" -notify_channels="meta team yourtilde $channel" +notify_channels="meta team yourtilde club tildetel envs $channel" link="https://tilderadio.org/listen" schedule="https://tilderadio.org/schedule/" source="https://tildegit.org/ben/radiobot" diff --git a/webhook.php b/webhook/index.php similarity index 82% rename from webhook.php rename to webhook/index.php index fa71dda..17ecdf6 100644 --- a/webhook.php +++ b/webhook/index.php @@ -10,5 +10,5 @@ $msg .= "now playing: "; $msg .= $json->now_playing->song->text . " "; $msg .= "~~ {$json->listeners->current} listeners"; -file_put_contents("now_playing.txt", $msg); +file_put_contents(__DIR__."/../now_playing.txt", $msg);