PostToDiscord: ;------------------------------------------------ CurrentSocialMediaPosting := "Discord" Message = Posting Video Links to Discord SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") IniRead, DiscordVideosWebhookURL, %SettingsIniFilepath%, General, DiscordVideosWebhookURL, %A_Space% if(DiscordVideosWebhookURL = ""){ Message = Unable to Grab DiscordVideosWebhookURL from %SettingsIniFilepath%.`nPlease input the URL and then try again. SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") Msgbox, Unable to Grab DiscordVideosWebhookURL from %SettingsIniFilepath%.`nPlease input the URL and then try again. Return } /* ; If description is longer than 2k chars, then API will error out. goto section that will allow user to edit video description to shorten it for posting if(StrLen(SocialMediaDescription) > 2000 AND VideoDescriptionForVideosChannel = ""){ Goto, CreateDescriptionForVideosPosting } */ if(SocialMediaDescription = ""){ CreateDescriptionForSocialMedia() } ; Msgbox % "SocialMediaDescription: " SocialMediaDescription SubmitDescriptionForDiscordVideosChannel: Message := "**" . VideoTitle . "**" . "`n" . SocialMediaDescription . "`n" ; https://stackoverflow.com/questions/63160401/how-to-create-hyperlink-in-discord-in-an-embed-in-general ; Do this with an array!! ; if(BitChuteURL != "") Message .= "[BitChute](<" . BitChuteURL . ">) \| " if(BrighteonURL != "") Message .= "[Brighteon](<" . BrighteonURL . ">) \| " if(OdyseeVideoURL != "") Message .= "[Odysee](<" . OdyseeVideoURL . ">) \| " if(OdyseeAudioURL != "") Message .= "[Odysee (Audio)](<" . OdyseeAudioURL . ">) \| " /* if(OdyseeVideoURL != "") Message .= "[Odysee](<" . OdyseeVideoURL . ") \| " if(OdyseeAudioURL != "") Message .= "[Odysee Audio](<" . OdyseeAudioURL . ") \| " */ if(RumbleURL != "") Message .= "[Rumble](<" . RumbleURL . ">) \| " /*if(StreamanityURL != "" AND InStr(StreamanityURL, "streamanity.com")) Message .= "[Streamanity](<" . StreamanityURL . ">) \| " */ if(DailyMotionURL != "") Message .= "[DailyMotion](<" . DailyMotionURL . ">)" UploadImageToDiscord(DiscordVideosWebhookURL, Message, VideoThumbFilepath) SaveOrPostProgress(Message:="Video Links posted to #Videos Successfully.",PostType:="Tooltip,ErrorLoggingTextFile") GuiControl,, PostToDiscordButton, Discord - Posted Successfully sleep, 2000 ToolTip ; Msgbox,,Success,Video Links posted to #Videos Successfully. ; ToolTip Return ; -------------------------------/Discord-------------------------------