From 13892f3a1fc35d76ce81fdd3f27f94c1ef90685b Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 25 May 2012 16:49:45 +0100 Subject: [PATCH] Whoops, forgot to commit the actual ignore module. --- modules/ignore.js | 81 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 modules/ignore.js diff --git a/modules/ignore.js b/modules/ignore.js new file mode 100644 index 0000000..60d75cc --- /dev/null +++ b/modules/ignore.js @@ -0,0 +1,81 @@ +/** + * Module Name: Ignore + * Description: Handles commands in which users can choose to ignore listeners + * and commands from certain modules. It also populates the JSBot instance with + * this information, since that actually performs the ignorance. + */ +var ignore = function(dbot) { + var commands = { + '~ignore': function(event) { + var ignorableModules = []; + for(var i=0;i