summaryrefslogtreecommitdiff
path: root/debugmiddleware.js
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2016-10-16 22:57:53 +0100
committerJoe Robinson <joe@lc8n.com>2016-10-16 22:57:53 +0100
commitbfee3c296ac544b02e7f176f4082059e9bb8d5b7 (patch)
tree5416cb5268b578e65dd6316d7d0edf946cf9f412 /debugmiddleware.js
parentd48d14f88cc6cc339af189666f8287532fb7a309 (diff)
parent5483fbd98ebd7a6ba3827f5fe5af095fb0290655 (diff)
Merge branch 'irc-framework' into 'master'
Irc framework Moves all existing command and handler code to use the KiwiIRC irc-framework library https://github.com/kiwiirc/irc-framework Removes the irc.js library See merge request !1
Diffstat (limited to 'debugmiddleware.js')
-rw-r--r--debugmiddleware.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/debugmiddleware.js b/debugmiddleware.js
new file mode 100644
index 0000000..9db3aeb
--- /dev/null
+++ b/debugmiddleware.js
@@ -0,0 +1,11 @@
+module.exports.DebugMiddleware = function() {
+ return function(client, raw_events, parsed_events) {
+ parsed_events.use(theMiddleware);
+ }
+
+ function theMiddleware(command, event, client, next) {
+ // console.log(command);
+ // console.log(event);
+ next();
+ }
+}