v3.4.0 last push
This commit is contained in:
+8
@@ -11,6 +11,14 @@ const version = require("../info.json").version
|
||||
/**@typedef {{style:{enableCustomBackground:Boolean, backgroundModus:"color"|"image", backgroundData:String, titleColor:String}, bot:{name:String, id:Number, pfp:String}, ticket:{creatorname:String, creatorid:Number, closedtime:Number, openedtime:Number}}} OThtsDataOption */
|
||||
|
||||
|
||||
/**==========================================================
|
||||
=============================================================
|
||||
================THIS FILE ISN'T USED ANYMORE!!===============
|
||||
This file is for html transcripts V1!
|
||||
Visit compileJsonV2.js for the current version!
|
||||
=============================================================
|
||||
===========================================================*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {discord.Guild} guild
|
||||
@@ -18,7 +18,6 @@ exports.upload = async (json) => {
|
||||
|
||||
try {
|
||||
const res = await axios.post("https://transcripts.dj-dj.be/api/upload?auth=openticketTRANSCRIPT1234&version=2",JSON.stringify(json))
|
||||
//const res = await axios.get("https://transcripts.dj-dj.be/api/upload?auth=openticketTRANSCRIPT1234&version=2&data="+data)
|
||||
if (res.status != 200) resolve(false)
|
||||
|
||||
resolve(res.data)
|
||||
|
||||
@@ -52,12 +52,6 @@ exports.replacementions = (text,guild) => {
|
||||
var text = res[1]
|
||||
return "<@&"+text+"::regular> "
|
||||
})
|
||||
/**TODO!!!!!!!
|
||||
* - remove console.log :)
|
||||
* - set role colors in ENTIRE TRANSCRIPT (users,replies,mentions,...) to #ffffff if #000000
|
||||
* because black => default color
|
||||
* - see compileJsonV2
|
||||
*/
|
||||
|
||||
return defaultroletext
|
||||
}
|
||||
Reference in New Issue
Block a user