Implement support for startcmd.txt
This commit is contained in:
parent
86b0d4e337
commit
1ef4791a1d
|
@ -13,7 +13,10 @@ def initialize(*, config):
|
||||||
# Blocks the bot until it's done, including PING/PONG handling
|
# Blocks the bot until it's done, including PING/PONG handling
|
||||||
# irc is the IRC API object
|
# irc is the IRC API object
|
||||||
def on_connect(*, irc):
|
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)
|
# on_quit(*, irc)
|
||||||
# Called just before IRC bot sends QUIT
|
# Called just before IRC bot sends QUIT
|
||||||
|
|
Loading…
Reference in New Issue