aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorame <[email protected]>2023-10-31 17:24:25 -0500
committerame <[email protected]>2023-10-31 17:24:25 -0500
commit53b4e132d593ac6a0d7cad6f0c988a97b68b8d2d (patch)
tree5db8aa7e1768ecec5fd1b62ea0f995a8067410ed /index.js
parent350d0de46b90d8a54fbf98ca500a4f88512f7a69 (diff)
sticky slash command, extended slash commands, and other fixes
Diffstat (limited to 'index.js')
-rw-r--r--index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.js b/index.js
index 8d73ae5..787ef52 100644
--- a/index.js
+++ b/index.js
@@ -8,6 +8,7 @@ process.stdout.write = process.stderr.write = (function(write) {
}
})(process.stdout.write)
process.title = "sns\-chan"
+console.log("["+process.pid+"] running under the name "+process.title)
/**
* Module Imports
*/
@@ -65,6 +66,12 @@ fs.readdirSync("./commands/").forEach(folder => {
.setRequired(opt.required)
.setAutocomplete(opt.autocomplete!=null&&opt.autocomplete!=false))
break;
+ case 'bool': case 'boolean':
+ scom.addBooleanOption(option =>
+ option.setName(opt.name)
+ .setDescription(opt.desc)
+ .setRequired(opt.required))
+ break;
case 'channel':
scom.addChannelOption(option =>
option.setName(opt.name)