From a448eea7fbd6fc53b48923d2090ff764cf5619e1 Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 31 Oct 2023 17:24:25 -0500 Subject: sticky slash command, extended slash commands, and other fixes --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'index.js') 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) -- cgit v1.2.3