fixed discord messages having double links
This commit is contained in:
@@ -23,9 +23,10 @@ if(DiscordVideosWebhookURL = ""){
|
|||||||
}
|
}
|
||||||
; https://stackoverflow.com/questions/63160401/how-to-create-hyperlink-in-discord-in-an-embed-in-general
|
; https://stackoverflow.com/questions/63160401/how-to-create-hyperlink-in-discord-in-an-embed-in-general
|
||||||
|
|
||||||
|
; clear out variables in case the button is clicked twice
|
||||||
VideoLinks :=
|
VideoLinks :=
|
||||||
|
Message :=
|
||||||
|
DiscordVideoDescription :=
|
||||||
|
|
||||||
TooltipMessage = Checking Bitchute and Brighteon URL for Processing Status
|
TooltipMessage = Checking Bitchute and Brighteon URL for Processing Status
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||||
@@ -75,12 +76,6 @@ VideoLinks .= "[Video Transcript](<" . PodcastTranscriptURL . ">) \| "
|
|||||||
if(PodcastNumber != "")
|
if(PodcastNumber != "")
|
||||||
VideoLinks .= "[FDRPodcasts](<" . "https://fdrpodcasts.com/" . PodcastNumber . ">) \| "
|
VideoLinks .= "[FDRPodcasts](<" . "https://fdrpodcasts.com/" . PodcastNumber . ">) \| "
|
||||||
|
|
||||||
Clipboard := VideoLinks
|
|
||||||
Msgbox % "VideoLinks: " VideoLinks
|
|
||||||
|
|
||||||
|
|
||||||
; StrLenOfDiscordMessage :=
|
|
||||||
|
|
||||||
; trim the video description if Title + Body + Links is longer than 2000 chars
|
; trim the video description if Title + Body + Links is longer than 2000 chars
|
||||||
if((StrLen(VideoTitle) + StrLen(VideoDescription) + StrLen(VideoLinks)) > 2000){
|
if((StrLen(VideoTitle) + StrLen(VideoDescription) + StrLen(VideoLinks)) > 2000){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user