0
0
Fork 0

Actually remove the dev_buttons option

This commit is contained in:
Oliver-Akins 2021-09-23 00:13:21 -06:00
parent 8796a5a0c4
commit 8ea9bb4d2a
3 changed files with 0 additions and 26 deletions

View file

@ -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;

View file

@ -18,7 +18,6 @@ interface config {
secret: string;
public_key: string;
auth_redirect: string;
dev_buttons: boolean;
};
server: {
host: string;