Node.js IRC bot
git clone https://github.com/joyent/node
cd node
./configure
make
make install- Go to the root folder and install the required packages for NexBot
npm installIf you plan on using the dbLogger module
mysql -u <user> -p <database> < db.sql-
Edit the data/example.config.js file to match your details and rename it to config.js.
-
Rename the data/example.nicks.js file to nicks.js.
npm testThis will run the test suite, jsHint all code in src/ and test/ and generate a test coverage report. The test coverage report can be found in the /reports folder.
Start the bot by running node src/main.js.
Once the bot is running you can use the following commands:
!last.fmOutput the last listened track from last.fm!last.fm <user>Will get the last track listened to by the user"!grooveOutput the last listened track from last.fm in the form of a grooveshark URL.!groove <song>Will get the first result from Grooveshark which matches!remember foo!save foo!note fooWill add "foo" to the databases/foo/barLast line you wrote will replace "foo" with "bar"s/foo/bar/userLast line written by "user" will replace "foo" with "bar"!lastseen userReturns the date the user was last heard from!define chickenWill return a definition, multiple calls will cycle through definitions!mustachifyhttp://free-textures.got3d.com/natural/free-character-references/free-character-texture-references-woman-4/images/free-character-texture-references-woman-401.jpg - If a url pointing at an image with one or more faces will return a url with added mustaches!imgurWill return a random imgur image e.g. "Voldebean (xpost from r/funny) - http://i.imgur.com/qQQAJ.jpg 330⤴ 27⤵"@<shout>Returns an image, see PM commands to get list of current shouts!poll <title>Starts a poll. Members can vote using !vote and OP can end the poll using!poll end!vote <answer>Cast your vote on the current poll!shorten stats <goo.gl url>Get full url and stats for shortened url!profile <username>Get user profile details from HackThis!!!imdb <term>Lookup film on IMDB
!remember!save!noteOutput all records.set last.fm <user>Will map the IRC nick to the Last.fm user "foo"shout listWill return a list of all available shout commandsshorten <url> [<channel>]Shorten URL and optionally send to channel

