Remove obsoleted startcmd.txt feature
This commit is contained in:
parent
187b08d3b5
commit
4ee71a6d4a
2
README
2
README
|
@ -13,8 +13,6 @@ trusted.txt: People that have access to #op and friends. Format is
|
|||
sensitive.
|
||||
gods.txt: Same as above, except can't be #untrust'ed
|
||||
msgs.txt: Messages that haven't been delivered. Leave it empty
|
||||
startcmd.txt: Raw IRC messages to send to the server after USER and NICK. Used
|
||||
to authenticate with NickServ
|
||||
bot.conf: See bot.conf.example
|
||||
|
||||
Run `python3 ircbot.py`
|
||||
|
|
|
@ -5,3 +5,7 @@ nick = oonbotti2
|
|||
username = oonbotti2
|
||||
realname = oonbotti2
|
||||
channels = ##ingsoc
|
||||
|
||||
[auth]
|
||||
user = oonbotti2
|
||||
password = nicetryofficer
|
||||
|
|
|
@ -13,10 +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') as f:
|
||||
for i in f:
|
||||
while i[-1:] == '\n': i = i[:-1]
|
||||
irc.send_raw(i.encode())
|
||||
pass
|
||||
|
||||
# on_quit(*, irc)
|
||||
# Called just before IRC bot sends QUIT
|
||||
|
|
Loading…
Reference in New Issue