This commit is contained in:
Juhani Krekelä 2021-01-20 20:09:43 +02:00
parent bcb5fd226c
commit fb85f170a9
1 changed files with 1 additions and 1 deletions

View File

@ -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())