added discord errorlogging
This commit is contained in:
@@ -70,6 +70,7 @@ global DiscordErrorLoggingWebhookBotURL
|
|||||||
global DiscordVideosWebhookURL
|
global DiscordVideosWebhookURL
|
||||||
global VideoFolderDir
|
global VideoFolderDir
|
||||||
global LogErrorsToMsgbox
|
global LogErrorsToMsgbox
|
||||||
|
global ErrorLogToDiscord
|
||||||
; global LogErrorsToTextFile
|
; global LogErrorsToTextFile
|
||||||
global CurrentSite
|
global CurrentSite
|
||||||
global Driver
|
global Driver
|
||||||
@@ -157,6 +158,15 @@ LivestreamThumbnail := ThumbnailJPEGFilepath
|
|||||||
; ------------------------------------------------
|
; ------------------------------------------------
|
||||||
IniRead, ConfirmBeforeSubmit, %SettingsIniFilepath%, %ScriptSettingsSection%, ConfirmBeforeSubmit, 1
|
IniRead, ConfirmBeforeSubmit, %SettingsIniFilepath%, %ScriptSettingsSection%, ConfirmBeforeSubmit, 1
|
||||||
IniRead, AutoUpdateCheck, %SettingsIniFilepath%, %ScriptSettingsSection%, AutoUpdateCheck, 1
|
IniRead, AutoUpdateCheck, %SettingsIniFilepath%, %ScriptSettingsSection%, AutoUpdateCheck, 1
|
||||||
|
IniRead, ErrorLogToDiscord, %SettingsIniFilepath%, %ScriptSettingsSection%, ErrorLogToDiscord, 1
|
||||||
|
if(ErrorLogToDiscord){
|
||||||
|
; Discord
|
||||||
|
IniRead, DiscordErrorLoggingWebhookBotURL, %SettingsIniFilepath%, General, DiscordWebhookBotURL, %A_space%
|
||||||
|
if(DiscordErrorLoggingWebhookBotURL = ""){
|
||||||
|
Message = DiscordErrorLoggingWebhookBotURL is blank. `nWill not be able to post error messages or upload status to discord.`nPlease add discord webhook URL in settings.ini under: `n`n[General]`DiscordErrorLoggingWebhookBotURL=
|
||||||
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,ErrorSummaryVar")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -254,9 +264,13 @@ Gui, Font, Bold
|
|||||||
Gui, Add, Text,y0 x%ColumnTwoXPosition%, Settings
|
Gui, Add, Text,y0 x%ColumnTwoXPosition%, Settings
|
||||||
Gui, Font, Normal
|
Gui, Font, Normal
|
||||||
Gui, Font, s8
|
Gui, Font, s8
|
||||||
|
Gui, Add, Checkbox, vErrorLogToDiscord Checked%ErrorLogToDiscord%, Error Log to Discord
|
||||||
Gui, Add, Checkbox, vConfirmBeforeSubmit checked%ConfirmBeforeSubmit%, Confirm Before Submit
|
Gui, Add, Checkbox, vConfirmBeforeSubmit checked%ConfirmBeforeSubmit%, Confirm Before Submit
|
||||||
Gui, Add, Checkbox, vAutoUpdateCheck Checked%AutoUpdateCheck%, Auto Update Check
|
Gui, Add, Checkbox, vAutoUpdateCheck Checked%AutoUpdateCheck%, Auto Update Check
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(UpdateAvailable){
|
if(UpdateAvailable){
|
||||||
Gui, Add, Button, cRed w%ColumnTwoEditBoxWidth% gUpdateScript vUpdateAvailable center, Update Available!
|
Gui, Add, Button, cRed w%ColumnTwoEditBoxWidth% gUpdateScript vUpdateAvailable center, Update Available!
|
||||||
}
|
}
|
||||||
@@ -399,6 +413,7 @@ Gui, submit, NoHide
|
|||||||
; ------------------------------------------------
|
; ------------------------------------------------
|
||||||
IniWrite, %ConfirmBeforeSubmit%, %SettingsIniFilepath%, %ScriptSettingsSection%, ConfirmBeforeSubmit
|
IniWrite, %ConfirmBeforeSubmit%, %SettingsIniFilepath%, %ScriptSettingsSection%, ConfirmBeforeSubmit
|
||||||
IniWrite, %AutoUpdateCheck%, %SettingsIniFilepath%, %ScriptSettingsSection%, AutoUpdateCheck
|
IniWrite, %AutoUpdateCheck%, %SettingsIniFilepath%, %ScriptSettingsSection%, AutoUpdateCheck
|
||||||
|
IniWrite, %ErrorLogToDiscord%, %SettingsIniFilepath%, %ScriptSettingsSection%, ErrorLogToDiscord
|
||||||
|
|
||||||
|
|
||||||
; Re-use an existing errorlog or create new directory
|
; Re-use an existing errorlog or create new directory
|
||||||
|
|||||||
BIN
Version.ini
BIN
Version.ini
Binary file not shown.
Reference in New Issue
Block a user