mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
fix: use environment variables
This commit is contained in:
parent
9e4f532ae8
commit
bcf474cc1c
@ -122,7 +122,7 @@ module.exports = class TicketsSlashCommand extends SlashCommand {
|
|||||||
.setTitle(getMessage(`commands.slash.tickets.response.title.${ownOrOther}`, { displayName: member.displayName }))
|
.setTitle(getMessage(`commands.slash.tickets.response.title.${ownOrOther}`, { displayName: member.displayName }))
|
||||||
.setFields(fields);
|
.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');
|
const transcriptCommand = client.application.commands.cache.find(c => c.name === 'transcript');
|
||||||
embed.setDescription(getMessage('commands.slash.tickets.response.description', { transcript: `</${transcriptCommand.name}:${transcriptCommand.id}>` }));
|
embed.setDescription(getMessage('commands.slash.tickets.response.description', { transcript: `</${transcriptCommand.name}:${transcriptCommand.id}>` }));
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ module.exports = class TicketArchiver {
|
|||||||
* @returns {import("@prisma/client").ArchivedMessage|boolean}
|
* @returns {import("@prisma/client").ArchivedMessage|boolean}
|
||||||
*/
|
*/
|
||||||
async saveMessage(ticketId, message, external = false) {
|
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) {
|
if (!message.member) {
|
||||||
try {
|
try {
|
||||||
|
@ -20,8 +20,6 @@ logs:
|
|||||||
enabled: true
|
enabled: true
|
||||||
keepFor: 30
|
keepFor: 30
|
||||||
level: info
|
level: info
|
||||||
overrides:
|
|
||||||
disableArchives: false
|
|
||||||
presence:
|
presence:
|
||||||
activities:
|
activities:
|
||||||
- name: /new
|
- name: /new
|
||||||
|
Loading…
Reference in New Issue
Block a user