This commit is contained in:
Luke Slater 2012-02-27 16:43:47 +00:00
parent 201f3648d1
commit 4782f17cf5

4
run.js
View File

@ -37,6 +37,10 @@ DBot.prototype.say = function(channel, data) {
this.instance.say(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 // Save the database file
DBot.prototype.save = function() { DBot.prototype.save = function() {
fs.writeFile('db.json', JSON.stringify(this.db, null, ' ')); fs.writeFile('db.json', JSON.stringify(this.db, null, ' '));