From 4782f17cf5891fbd0aae6d566b17150b35fc66ae Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 27 Feb 2012 16:43:47 +0000 Subject: [PATCH] act --- run.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.js b/run.js index d548620..fc29667 100644 --- a/run.js +++ b/run.js @@ -37,6 +37,10 @@ DBot.prototype.say = function(channel, data) { this.instance.say(channel, data); }; +DBot.prototype.act = function(channel, data) { + this.instance.send('PRIVMSG', channel, ':\001ACTION' + data + '\001'); +} + // Save the database file DBot.prototype.save = function() { fs.writeFile('db.json', JSON.stringify(this.db, null, ' '));