A very simple IRC bot. Accepts messages to broadcast via UDP and logs messages to MySQL.
You'll need to grab:
- felixge's excellent node-mysql
- martynsmith's node-irc
You can probably install these via npm
, but I still don't understand how npm chooses forks.
Clone the above masters and npm link
them if you're unsure.
- Copy
config.js.example
toconfig.js
and modify the values. - Create a table in MySQL using
schema.sql
- Start it up -
node logbot.pl
- To send a simple test message, you can use the included perl utility -
perl inject.pl "Message!"