diff --git a/src/commands/close.js b/src/commands/close.js index c4bedbe..eadb383 100644 --- a/src/commands/close.js +++ b/src/commands/close.js @@ -163,7 +163,7 @@ module.exports = { try { dm.send(res); - if (config.logs.discord.enabled) client.channels.cache.get(config.logs.discord.channel).send(res); + if (config.transcripts.channel.length > 1) client.channels.cache.get(config.transcripts.channel).send(res); } catch (e) { message.channel.send('❌ Couldn\'t send DM or transcript log message'); } diff --git a/user/config.js b/user/config.js index 21c5d55..67623e5 100644 --- a/user/config.js +++ b/user/config.js @@ -48,11 +48,11 @@ module.exports = { err_colour: 'RED', cooldown: 3, - guild: '', // ID of your guild - staff_role: '', // ID of your Support Team role + guild: '', // ID of your guild (REQUIRED) + staff_role: '', // ID of your Support Team role (REQUIRED) tickets: { - category: '', // ID of your tickets category + category: '', // ID of your tickets category (REQUIRED) send_img: true, ping: 'here', text: `Hello there, {{ tag }}! @@ -70,7 +70,8 @@ module.exports = { web: { enabled: false, server: 'https://tickets.example.com', - } + }, + channel: '' // ID of your archives channel }, panel: {