New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ircat.js

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ircat.js

A simple IRC bot you pipe messages to

latest
npmnpm
Version
0.1.0
Maintainers
0
Created
Source

ircat.js

I figured irccat would be easy to implement in node.js as a means of learning more about it.

It's not impressive but it should run just fine, it has a little json API sorta thing now..

You need the latest version of node.js, 0.1.90.

Running the Bot

% bin/ircat -u mysuperbot

Sending Stuff to the Bot

% bin/client --help
Usage: /Users/atmos/p/ircat.js/bin/client [option]

Available options:
  -h, --help                  Shows help sections
  -m, --message MESSAGE       The message to send
  -c, --channel channel       The channel to message
  -j, --join CHANNEL          The channel to join
  -p, --password [PASSWORD]   The channel password
      --port [PORT]           The bot's listener port
% bin/client -j ircat.js
'Sent {"action":"joinChannel","message":"","port":"4568","hostname":"127.0.0.1","channel":"ircat.js"}'
% bin/client -c ircat.js -m "dudeududu"
'Sent {"action":"messageChannel","message":"dudeududu","port":"4568","hostname":"127.0.0.1","channel":"ircat.js"}'
% bin/client -j atmos2                 
'Sent {"action":"joinChannel","message":"","port":"4568","hostname":"127.0.0.1","channel":"atmos2"}'
% bin/client -c atmos2 -m "dudude"
'Sent {"action":"messageChannel","message":"dudude","port":"4568","hostname":"127.0.0.1","channel":"atmos2"}'

Running from kiwi

% kiwi install ircat

var kiwi  = require('kiwi')
var ircat = kiwi.require('ircat')

var server  = new ircat.create({username: 'superatmos', port: 4567})
...
server.run()

Keywords

irc

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts