about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <plaza521@inbox.ru>2024-09-04 19:55:40 +0300
committerNakidai <plaza521@inbox.ru>2024-09-04 19:55:40 +0300
commitdff6d47110a0ffdba8a2cf6198b3d9547b370e97 (patch)
tree827e8f4eca3bda6c145d0d2575513751b90453d6
parent1b494bb088ef5ded22eec090dd50161ea564cc63 (diff)
downloadpetthecord-dff6d47110a0ffdba8a2cf6198b3d9547b370e97.tar.gz
petthecord-dff6d47110a0ffdba8a2cf6198b3d9547b370e97.zip
Fix run
-rw-r--r--src/petthecord/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/petthecord/main.py b/src/petthecord/main.py
index 0e3056f..b6f3450 100644
--- a/src/petthecord/main.py
+++ b/src/petthecord/main.py
@@ -25,12 +25,12 @@ def main() -> None:
     )
     args = parser.parse_args()
 
-    bot = Bot()
+    bot = Bot(args.host, args.port)
     if (token := getenv("PETTHECORD_TOKEN")) is not None:
         bot.run(token)
     elif (token_path := getenv("PETTHECORD_TOKEN_FILE")) is not None:
         with open(token_path) as f:
             token = f.read()
-        bot.run(token, args.host, args.port)
+        bot.run(token)
     else:
         print(f"{argv[0]}: Neither PETTHECORD_TOKEN nor PETTHECORD_TOKEN_FILE are set", file=stderr)