diff --git a/config.template.toml b/config.template.toml index bcb56e1..c553b49 100644 --- a/config.template.toml +++ b/config.template.toml @@ -17,10 +17,6 @@ public_key = "" # as is imposed by Discord for the webhook URL) auth_redirect = "DOMAIN_HERE/discord/auth/callback" -# Whether or not to include the "View Count" and "Show DB" buttons on the -# bracket messages -dev_buttons = false - [server] # The location the server is hosted at, this is only for logging purposes host = "" diff --git a/src/endpoints/management/create_bracket.ts b/src/endpoints/management/create_bracket.ts index f6f70da..147559c 100644 --- a/src/endpoints/management/create_bracket.ts +++ b/src/endpoints/management/create_bracket.ts @@ -140,27 +140,6 @@ export default { message.components.push(actionRow); }; - // Add the development-only buttons if needed - if (config.discord.dev_buttons) { - message.components.push({ - type: 1, - components: [ - { - type: 2, - style: 1, - label: `See Count`, - custom_id: `showCount`, - }, - { - type: 2, - style: 1, - label: `See Database Object`, - custom_id: `viewDB`, - } - ] - }); - }; - let url = `${DISCORD_API_URI}/webhooks/${wh.id}/${wh.token}`; let r = await axios.post(url, message, { params: { wait: true } }); db[gID].bracket.msg = r.data.id; diff --git a/src/types/config.d.ts b/src/types/config.d.ts index a660471..6f57230 100644 --- a/src/types/config.d.ts +++ b/src/types/config.d.ts @@ -18,7 +18,6 @@ interface config { secret: string; public_key: string; auth_redirect: string; - dev_buttons: boolean; }; server: { host: string;