diff --git a/README b/README index 1db83b0..a88554a 100644 --- a/README +++ b/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` diff --git a/bot.conf.example b/bot.conf.example index 20233d2..6fee1ed 100644 --- a/bot.conf.example +++ b/bot.conf.example @@ -5,3 +5,7 @@ nick = oonbotti2 username = oonbotti2 realname = oonbotti2 channels = ##ingsoc + +[auth] +user = oonbotti2 +password = nicetryofficer diff --git a/botcmd.py b/botcmd.py index ff8b28b..b8d89e2 100644 --- a/botcmd.py +++ b/botcmd.py @@ -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