var Util = require("util");
var Bot = require("./lib/irc");

var YourBot = function(profile) {
	Bot.call(this, profile);
	this.set_log_level(this.LOG_ALL);
	this.set_trigger("!"); // Exclamation
};

Util.inherits(YourBot, Bot);

YourBot.prototype.init = function() {
	Bot.prototype.init.call(this);
	
	this.register_command("ping", this.ping);
	this.on('command_not_found', this.unrecognized);
};


YourBot.prototype.ping = function(cx, text) {
	cx.channel.send_reply (cx.sender, "Pong!");
};

YourBot.prototype.unrecognized = function(cx, text) {
	cx.channel.send_reply(cx.sender, "There is no command: "+text);
};

var profile = [{
	host: "irc.freenode.net",
	port: 6667,
	nick: "mybot",
	password: "password_to_authenticate",
	user: "username",
	real: "Real Name",
	channels: ["#channels", "#to", "#join"]
}];

(new YourBot(profile)).init();

@@ -58,20 +58,20 @@
 );%0A%0Avar 
-Your
+Grim
 Bot = fu
@@ -206,20 +206,20 @@
 nherits(
-Your
+Grim
 Bot, Bot
@@ -222,20 +222,20 @@
  Bot);%0A%0A
-Your
+Grim
 Bot.prot
@@ -392,20 +392,20 @@
 );%0A%7D;%0A%0A%0A
-Your
+Grim
 Bot.prot
@@ -487,20 +487,20 @@
 %22);%0A%7D;%0A%0A
-Your
+Grim
 Bot.prot
@@ -816,12 +816,12 @@
 new 
-Your
+Grim
 Bot(

rename things to grim,