Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atmos/ircat.js
a simple irc bot in javascript
https://github.com/atmos/ircat.js
Last synced: 3 months ago
JSON representation
a simple irc bot in javascript
- Host: GitHub
- URL: https://github.com/atmos/ircat.js
- Owner: atmos
- Created: 2009-12-01T07:25:59.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2010-06-23T16:41:00.000Z (over 14 years ago)
- Last Synced: 2024-04-15T13:59:34.801Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 116 KB
- Stars: 13
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ircat.js
================I figured [irccat][irccat] would be easy to implement in [node.js][node] 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][node], 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()[node]: http://nodejs.org
[irccat]: http://github.com/webs/irccat