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.
|
sensitive.
|
||||||
gods.txt: Same as above, except can't be #untrust'ed
|
gods.txt: Same as above, except can't be #untrust'ed
|
||||||
msgs.txt: Messages that haven't been delivered. Leave it empty
|
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
|
bot.conf: See bot.conf.example
|
||||||
|
|
||||||
Run `python3 ircbot.py`
|
Run `python3 ircbot.py`
|
||||||
|
|
|
@ -5,3 +5,7 @@ nick = oonbotti2
|
||||||
username = oonbotti2
|
username = oonbotti2
|
||||||
realname = oonbotti2
|
realname = oonbotti2
|
||||||
channels = ##ingsoc
|
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
|
# 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):
|
||||||
with open('startcmd.txt', 'r') as f:
|
pass
|
||||||
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