summaryrefslogtreecommitdiff
path: root/src/cmd/debug.js
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sio.be>2021-02-19 11:43:18 +0100
committerAlejandro Sior <aho@sio.be>2021-02-19 11:43:18 +0100
commit405051211d60afa8a7fc4fc3fa5ffb456242973d (patch)
treedbae34350c3a54f422da70f1b7fbd857a8f5a116 /src/cmd/debug.js
initial commit
Diffstat (limited to 'src/cmd/debug.js')
-rw-r--r--src/cmd/debug.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/debug.js b/src/cmd/debug.js
new file mode 100644
index 0000000..ecb475c
--- /dev/null
+++ b/src/cmd/debug.js
@@ -0,0 +1,5 @@
+module.exports.loadModule = function loadModule(bot) {
+ bot.handler.endpoint('^ping$', [], (match, message) => {
+ bot.createMessage(message.channel.id, 'Pong').catch(Logger.error);
+ });
+};