pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

helma private pastebin - collaborative debugging tool What's a private pastebin?


Posted by zumbrunn on Mon 21 Jan 15:39
report abuse | download | new post

  1.  
  2. function startHopbot() {
  3.     var logdir = new java.io.File('./hopbotlog');
  4.     logdir.mkdirs();
  5.     if (logdir.isDirectory()) {
  6.         var server = "irc.freenode.net";
  7.         var channel = "#helma";
  8.         var nick = "hopbot";
  9.         var passwd = 'xxxxxxx';  // change password
  10.         var joinMessage = "This channel is logged: http://helma.zumbrunn.com/hopbot/";
  11.        
  12.         global.hopbot = new Packages.org.jibble.logbot.LogBot(nick, logdir, joinMessage);
  13.         global.hopbot.connect(server);
  14.         global.hopbot.joinChannel(channel);
  15.         global.hopbot.sendMessage('NickServ','IDENTIFY '+ passwd);
  16.         global.hopbot.sendMessage('ChanServ','OP #helma');
  17.         global.hopbot.setTopic(channel,'Just ask your question :-) and paste code at http://helma.pastebin.com/ - visit http://helma.zumbrunn.com/hopbot/ for channel logs.');
  18.     }
  19.     else
  20.         global.hopbot = "Couldn't create log directory";
  21. }
  22.  
  23. if (!global.hopbot) {
  24.     defineLibraryScope('hopbot');
  25.     startHopbot();
  26. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me