From 4899e46b41aa0fd1901aca1719f538307968c735 Mon Sep 17 00:00:00 2001 From: Pavel Vorobyov Date: Wed, 10 Jun 2020 10:41:46 +0300 Subject: [PATCH] configurable bot api --- icqnotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icqnotify.py b/icqnotify.py index 5fd862b..f05e663 100755 --- a/icqnotify.py +++ b/icqnotify.py @@ -5,7 +5,7 @@ from bot.bot import Bot ICQ_TOKEN = os.environ.get("ICQ_TOKEN") ICQ_CHAT_ID = os.environ.get("ICQ_CHAT_ID") - +ICQ_API_URL = os.environ.get("ICQ_API_URL", "api.icq.net") def send(message): if not ICQ_TOKEN: @@ -21,4 +21,4 @@ def send(message): if __name__ == '__main__': message = ' '.join(sys.argv[1:]).strip().replace("\\n", "\n") - send(message) \ No newline at end of file + send(message)