Skip to content

Commit

Permalink
add plugin to exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mmb committed May 14, 2011
1 parent 75a9831 commit 05f03c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/exit.js
@@ -0,0 +1,8 @@
function exit(m) {
if (m.text === '!exit') {
process.exit(0);
}
}

exports.channelMessage = exit;
exports.privateMessage = exit;

0 comments on commit 05f03c5

Please sign in to comment.