Remove obsoleted startcmd.txt feature

This commit is contained in:
Juhani Krekelä 2021-05-02 00:43:15 +03:00
parent 187b08d3b5
commit 4ee71a6d4a
3 changed files with 5 additions and 6 deletions

2
README
View File

@ -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`

View File

@ -5,3 +5,7 @@ nick = oonbotti2
username = oonbotti2
realname = oonbotti2
channels = ##ingsoc
[auth]
user = oonbotti2
password = nicetryofficer

View File

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