From 8d645370c2276ce1d19d974d1a3549d90da53ce8 Mon Sep 17 00:00:00 2001 From: k8thekat <68672235+k8thekat@users.noreply.github.com> Date: Thu, 18 Aug 2022 16:10:36 -0700 Subject: [PATCH] Updated Support for Gatekeeperv2 (#175) - Removed required GUILDID arg - Added `-command` arg Command arg can be used to trace Discord Users who issue slash commands. --- gatekeeperv2.kvp | 2 +- gatekeeperv2config.json | 29 ++++++++++++++++------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/gatekeeperv2.kvp b/gatekeeperv2.kvp index 601e711..ddfdae2 100644 --- a/gatekeeperv2.kvp +++ b/gatekeeperv2.kvp @@ -24,7 +24,7 @@ App.ExecutableLinux=/usr/bin/python3 App.WorkingDir=GatekeeperV2-main App.LinuxCommandLineArgs= App.WindowsCommandLineArgs= -App.CommandLineArgs=start.py -token {{dev}}{{debug}}{{discord}}{{super}} {{guildID}} +App.CommandLineArgs=start.py -token {{dev}}{{debug}}{{discord}}{{super}}{{command}} App.UseLinuxIOREDIR=False App.AppSettings={} App.EnvironmentVariables={} diff --git a/gatekeeperv2config.json b/gatekeeperv2config.json index 763232c..738e9c9 100644 --- a/gatekeeperv2config.json +++ b/gatekeeperv2config.json @@ -12,19 +12,6 @@ "DefaultValue": "", "Placeholder": "319/f0dsA0jk0PKge2jkpSFWEauopbvejwaioj32omoi32JIOabdsajotjewq3jr2==" }, - { - "DisplayName": "Discord Server Guild ID", - "Category": "Bot Settings", - "Description": "Enter your Discord server's [Guild ID](https://poshbot.readthedocs.io/en/latest/guides/backends/setup-discord-backend/#find-your-guild-id-server-id).", - "Keywords": "discord,guild,id", - "FieldName": "guildID", - "InputType": "number", - "IsFlagArgument": false, - "ParamFieldName": "guildID", - "IncludeInCommandLine": false, - "DefaultValue": "", - "Placeholder": "883220743755206666" - }, { "DisplayName": "AMP User", "Category": "Bot Settings", @@ -124,6 +111,22 @@ "True": " -dev" } }, + { + "DisplayName": "Command Print Statements", + "Category": "Bot Settings", + "Description": "This setting is for displaying the Discord User who issued the slash command.", + "Keywords": "command,print,statements", + "FieldName": "command", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "command", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": { + "False": "", + "True": " -command" + } + }, { "DisplayName": "Debug Logging", "Category": "Bot Settings",