3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
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);
};
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, ' '));