summaryrefslogtreecommitdiff
path: root/debugmiddleware.js
diff options
context:
space:
mode:
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();
+ }
+}