Wingman4l7 / trollbot

A basic IRC bot demo in Node.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trollbot

About

This is a simple IRC bot implemented in Node.js. It demonstrates:

  • connecting / disconnecting to IRC server(s)
  • listening for & automatically replying to chat messages
  • discerning between private / public messages and users
  • remote command acceptance from a whitelisted user

How to Install

This requires Node.js and the node-irc library. The former will have to be downloaded and installed. Once that is done, the latter can be installed via this command:

npm install irc 

How to Run

All the parameters (server, channel(s), bot name, troll list, phrase list, your username, kill command) are set in a config declared within the code.

To use, navigate to the installed directory and run this command:

node trollbot.js

License

While obviously open-source, I haven't bothered to decide which license this should be under. If I ever do it will probably end up being under the GPL or some flavor of Creative Commons.

Donations

Like this script? You can send Bitcoin donations to: 1F7kfMNUNQy8e52RHnQAWYXeaYfzFqHJAZ

About

A basic IRC bot demo in Node.js.


Languages

Language:JavaScript 100.0%