NYCRBot

From NYC Resistor Wiki
Jump to: navigation, search

NYCRBot is a jsonbot with a plugin made by xymax for hexascroller and a simple code change to not print the bots name in XMPP mode. Here is the diff for that change

diff -r 6ddf219ea76a jsb/plugs/common/relay.py
--- a/jsb/plugs/common/relay.py	Tue Sep 13 15:42:19 2011 +0200
+++ b/jsb/plugs/common/relay.py	Tue Sep 13 10:21:35 2011 -0400
@@ -79,6 +79,7 @@
                     logging.info('relay - outbot found - %s - %s' % (outbot.cfg.name, outbot.type))
                     # we got bot .. use it to send the relayed message
                     if e.nick == bot.cfg.nick: txt = "[!] %s" % e.txt
+                    elif e.nick == "nycresistor": txt = e.txt
                     else: txt = "[%s] %s" % (e.nick, e.txt)
                     if event: t = "[%s]" % outbot.cfg.nick
                     logging.debug("relay - sending to %s (%s)" % (target, outbot.cfg.name))

Reboot NYCRBot[edit]

ssh user@wiki.nycresistor.com
sudo su -
chmod 666 /dev/pts/*
su - jsb
screen -dr
<ctrl+c>
./bin/jsb-fleet