Socket
Socket
Sign inDemoInstall

ircbridged

Package Overview
Dependencies
20
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ircbridged

Bridges IRC to JSON-RPC over UDP (server component).


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
253 kB
Created
Weekly downloads
 

Readme

Source

ircbridged

Daemon that bridges IRC to JSON-RPC over UDP.

Usefull for tools or daemons that need to interact with IRC but don't want a persistent connection or the overhead of handling IRC stuff themselves.

Installing & Running

% npm install ircbridged
% ircbridged 
Options:
  --server      IRC server address     [required]
  --port        IRC server port        [default: 6667]
  --nick        IRC nick               [default: "ircbridge"]
  --realname    IRC realname           [default: "IRC Bridge"]
  --ssl         Use SSL                [default: false]
  --listenport  UDP port for JSON-RPC  [default: 41234]

Testing

You can talk to the bridge locally using nc. For example:

% nc -u 127.0.0.1 41234
{"method": "join", "params": ["#channel"]}
{"method": "message", "params": ["#channel", "Hello World!"]}

Client

There's a client library for Node.js in https://github.com/calmh/node-ircbridge.

Commands

Join

Join an IRC channel.

Params: channel

{"method": "join", "params": ["#channel"]}
{"method": "join", "params": ["#channel aChannelPassword"]}

Part

Leave an IRC channel.

Params: channel

{"method": "part", "params": ["#channel"]}

Message

Send a privmsg to a channel or individual.

Params: target, message

{"method": "message", "params": ["#channel", "Hello all!"]}
{"method": "message", "params": ["someNick", "Hey there!"]}

Notice

Send a notice to a channel.

Params: target, message

{"method": "notice", "params": ["#channel", "This is a channel notice!"]}

Subscribe

Subscribe to messages on a channel. For the duration of the subscription, any messages on the channel will be sent to the subscriber as "message" events.

Params: target

{"method": "subscribe", "params": ["#channel"]}

A subscribed event is returned on successfull subscription. The event contains the channel name and the subscription duration in milliseconds. To continue receiving messages from the channel, the subscription needs to be renewed by sending a new subscribe command before the expiration time.

{"method": "subscribed", "params": ["#channel", 1800000]}

The message events are in the form of message notifications with params being from, to and message.

{"method":"message","params":["someNick","#channel","hi everyone"]}

License

MIT

FAQs

Last updated on 03 Mar 2013

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc