Set usermode +B on connect

Also, add plugin to allow me to manually +B the bot (so I didn't have to restart it the first time).
This commit is contained in:
Robert Miles 2020-04-28 07:56:55 -04:00
parent 65a2b3efc4
commit 3162bfd462
2 changed files with 12 additions and 0 deletions

View File

@ -35,6 +35,7 @@ try:
except: pass
def login(event):
BOT.socket.send(IRCLine("NS","IDENTIFY",PASSWORD).line)
BOT.socket.send(IRCLine("MODE",BOT.nickname,"+B").line)
def register(bot):
global BOT

11
plugins/raw.py Normal file
View File

@ -0,0 +1,11 @@
from bot import IRCLine
BOT = None
def on_admin_raw(event):
# normalize and send line
BOT.socket.send(IRCLine.parse_line(" ".join(event.parts)).line)
def register(bot):
global BOT
BOT=bot
bot.event_manager.on("admin_raw",on_admin_raw)