nanoirc is a very simple console IRC client based on node-irc IRC library.
As reference on stream programming I recommend the stream handbook.
All the messages of the channels joined are displayed in the console. The user can choice the channel pressing tab: the list of the channels is displayed. Then the user can add the message and press enter to send it. The user may send another message to that channel without prefixing it again with the name of the channel: the message is sent to the last channel used.
The messages are displayed with time, channel and user info. If a message contains the nick of the user, it is displayed in red.
- Manage the syndicated urls in the channel: maybe opening automatically the link.
To install with npm:
npm install -g nanoirc
Tested with node 0.10.18.
nanoirc reads a file in the HOME directory: .nanoirc.json
.
The configuration file contains the server, the channels and the nickname info.
For instance,
{
"server": "irc.freenode.org",
"nick": "mynick",
"password": "mypassword",
"channels": [
"#test-nanoirc-1",
"#test-nanoirc-2"
]
}
Then you can start the client:
nanoirc