fix: use environment variables

This commit is contained in:
Isaac 2023-01-31 15:18:40 +00:00
parent 9e4f532ae8
commit bcf474cc1c
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
3 changed files with 2 additions and 4 deletions

View File

@ -122,7 +122,7 @@ module.exports = class TicketsSlashCommand extends SlashCommand {
.setTitle(getMessage(`commands.slash.tickets.response.title.${ownOrOther}`, { displayName: member.displayName }))
.setFields(fields);
if (settings.archive && !client.config.overrides.disableArchives) {
if (settings.archive && process.env.OVERRIDE_ARCHIVE !== 'false') {
const transcriptCommand = client.application.commands.cache.find(c => c.name === 'transcript');
embed.setDescription(getMessage('commands.slash.tickets.response.description', { transcript: `</${transcriptCommand.name}:${transcriptCommand.id}>` }));
}

View File

@ -21,7 +21,7 @@ module.exports = class TicketArchiver {
* @returns {import("@prisma/client").ArchivedMessage|boolean}
*/
async saveMessage(ticketId, message, external = false) {
if (this.client.config.overrides.disableArchives) return false;
if (process.env.OVERRIDE_ARCHIVE === 'false') return false;
if (!message.member) {
try {

View File

@ -20,8 +20,6 @@ logs:
enabled: true
keepFor: 30
level: info
overrides:
disableArchives: false
presence:
activities:
- name: /new