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