diff --git a/botcmd.py b/botcmd.py index b8d89e2..27c7f97 100644 --- a/botcmd.py +++ b/botcmd.py @@ -13,7 +13,10 @@ def initialize(*, config): # Blocks the bot until it's done, including PING/PONG handling # irc is the IRC API object def on_connect(*, irc): - pass + with open('startcmd.txt', 'r'): + for i in f: + while i[-1:] == '\n': i = i[:-1] + irc.send_raw(i.encode()) # on_quit(*, irc) # Called just before IRC bot sends QUIT