summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-08-08 23:22:05 +0200
committerRaindropsSys <contact@minteck.org>2023-08-08 23:22:05 +0200
commitd9bbfa35698bc56c011f08b76d8352e79fca4cc6 (patch)
treedf2a6a02bcf3b6bc6218f773ee9289f368bd00c7
parent201023aff0b5321d7f10ebc3f069a70cc5daa74a (diff)
downloadbutterscotch-d9bbfa35698bc56c011f08b76d8352e79fca4cc6.tar.gz
butterscotch-d9bbfa35698bc56c011f08b76d8352e79fca4cc6.tar.bz2
butterscotch-d9bbfa35698bc56c011f08b76d8352e79fca4cc6.zip
Updated 2 files and added 2 files (automated)
-rw-r--r--commands/debug.js11
-rw-r--r--handler.js2
-rw-r--r--help/_categories.json2
-rw-r--r--help/debug.json6
4 files changed, 19 insertions, 2 deletions
diff --git a/commands/debug.js b/commands/debug.js
new file mode 100644
index 0000000..392d855
--- /dev/null
+++ b/commands/debug.js
@@ -0,0 +1,11 @@
+const axios = require('axios');
+
+module.exports = (parameter, wrapper) => {
+ wrapper.send(`
+**Platform:** \`${wrapper.platform}\`
+**Channel ID:** \`${wrapper.id}\`
+**Sender ID:** \`${wrapper.sender}\`
+**Ping:** \`${wrapper.ping}\`
+**NSFW:** \`${wrapper.nsfw ? 'true' : 'false'}\`
+`);
+} \ No newline at end of file
diff --git a/handler.js b/handler.js
index 10a73fc..87b13e4 100644
--- a/handler.js
+++ b/handler.js
@@ -83,7 +83,7 @@ module.exports = (config) => {
wrapper.id = config['channel'].id;
wrapper.sender = config['message'].author.number;
- wrapper.platform = "matrix";
+ wrapper.platform = "signal";
wrapper.ping = new Date().getTime() - config['message'].createdTimestamp;
wrapper.nsfw = true;
}
diff --git a/help/_categories.json b/help/_categories.json
index 1b115c6..c29eaad 100644
--- a/help/_categories.json
+++ b/help/_categories.json
@@ -2,7 +2,7 @@
"Knowledge": [ "ask", "ip", "math", "status", "gpt" ],
"Derpibooru": [ "cute", "nsfw", "id", "query" ],
"Fun": [ "fortune", "roll", "what" ],
- "Technical": [ "help", "mem", "ping", "usage" ],
+ "Technical": [ "help", "mem", "ping", "usage", "debug" ],
"Private": [ "evening", "killswitch", "reboot" ],
"Execution": [ "eval", "xeval", "meval", "reset" ]
} \ No newline at end of file
diff --git a/help/debug.json b/help/debug.json
new file mode 100644
index 0000000..76c38d0
--- /dev/null
+++ b/help/debug.json
@@ -0,0 +1,6 @@
+{
+ "description": "Shows debugging information to diagnose issues.",
+ "parameters": "",
+ "aliases": [ "info", "wtf" ],
+ "exempt": false
+} \ No newline at end of file