3.0 public beta 3
This commit is contained in:
+4
-3
@@ -1,11 +1,12 @@
|
||||
{
|
||||
"version":"1.0.0",
|
||||
|
||||
|
||||
"disclaimer":"DISABLE doesn't work yet! Below this message!",
|
||||
"enableAPIdebug":false,
|
||||
|
||||
"info":"If you turn these switches to true, then the feature will be turned OFF!",
|
||||
"info2":"You can use this to disable some features you don't want!",
|
||||
"disable":{
|
||||
"messages":{
|
||||
"DISCLAIMER":"the messages part doesn't work yet!",
|
||||
"ticketCreated":false,
|
||||
"ticketClosed":false,
|
||||
"ticketDeleted":false,
|
||||
|
||||
+3
-1
@@ -331,7 +331,9 @@ exports.checker = async () => {
|
||||
|
||||
checkHexColor(config.main_color,"main_color")
|
||||
checkDiscord("serverid",config.server_id,"server_id")
|
||||
checkToken(config.auth_token)
|
||||
|
||||
if (!require("./api/api.json").disable.checkerjs.token) checkToken(config.auth_token)
|
||||
|
||||
checkDiscordArray("roleid",config.main_adminroles,"main_adminroles")
|
||||
checkString(config.prefix,1,15,"prefix","prefix")
|
||||
//languagefile
|
||||
|
||||
@@ -294,7 +294,7 @@ exports.NEWcloseTicket = async (member,channel,prefix,mode,reason,nomessage) =>
|
||||
if (fileattachment == false){log("system","internal error: transcript is not created!");return}
|
||||
}
|
||||
|
||||
if (config.system.enable_transcript){
|
||||
if (config.system.enable_transcript && !require("../api/api.json").disable.transcripts.server){
|
||||
const transcriptEmbed = new discord.EmbedBuilder()
|
||||
.setColor(config.main_color)
|
||||
.setTitle("📄 "+l.messages.newTranscriptTitle)
|
||||
@@ -307,7 +307,7 @@ exports.NEWcloseTicket = async (member,channel,prefix,mode,reason,nomessage) =>
|
||||
})
|
||||
}
|
||||
|
||||
if (config.system.enable_DM_transcript){
|
||||
if (config.system.enable_DM_transcript && !require("../api/api.json").disable.transcripts.dm){
|
||||
const transcriptEmbed = new discord.EmbedBuilder()
|
||||
.setColor(config.main_color)
|
||||
.setTitle("📄 "+l.messages.newTranscriptTitle)
|
||||
|
||||
Reference in New Issue
Block a user