From fb85f170a9ffb30f95c003e03927696e68e988ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 20 Jan 2021 20:09:43 +0200 Subject: [PATCH] Whoops --- botcmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botcmd.py b/botcmd.py index 27c7f97..ff8b28b 100644 --- a/botcmd.py +++ b/botcmd.py @@ -13,7 +13,7 @@ def initialize(*, config): # Blocks the bot until it's done, including PING/PONG handling # irc is the IRC API object def on_connect(*, irc): - with open('startcmd.txt', 'r'): + with open('startcmd.txt', 'r') as f: for i in f: while i[-1:] == '\n': i = i[:-1] irc.send_raw(i.encode())