forked from GitHub/dbot
act
This commit is contained in:
parent
201f3648d1
commit
4782f17cf5
4
run.js
4
run.js
@ -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, ' '));
|
||||||
|
Loading…
Reference in New Issue
Block a user