Bot to connect badge to IRC for sharing and validating codes

root authored on 6 Aug
README.md now with stats 2 months ago
bot.php better code for debugging, confirmed working 2 months ago
php_serial.class.php first commit, crossing fingers will work first time 2 months ago
README.md

DC29BadgeBot

Bot to connect badge to IRC for sharing and validating codes

simply git clone this repo

make sure you have the correct interface at top of script (default is /dev/ttyACM0)

php bot.php

the script will connect to ice.uplinkcorp.net #theSignal and interface with the serial device.

note

the permissions might need to be changed to 666 or alternativly script run as root.

sudo chmod u+s /usr/bin/screen
sudo chmod 755 /var/run/screen

(thanks to SkarDude)

the device cannot be busy when running this script, i.e. kill your screen sessions!

If your badge is generating short hashes this will automagically fix that.

If you want to see your badge stats type in the IRC channel:

!stats <rand>

(replacing rand with your badge's random ID generated when running the script)