This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var os = require('os'); | |
| var net = require('net'); | |
| // config | |
| var con = net.createConnection(6667,'irc.freenode.net'); | |
| var nick = '__YOURNICK__'; | |
| var chan = '#__YOURCHANNEL__'; | |
| var chatlogs = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'socket' | |
| # --- func def for application | |
| def application(name, &block) | |
| $app = Application.new | |
| $app.name = name | |
| $app.instance_eval(&block) | |
| end |