bug fixes for when there are no errorlog filepath or discord webhook
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
|
||||
; -------------------------------Discord-------------------------------
|
||||
PostToDiscordChannel(Message,WebhookChannel){
|
||||
|
||||
; Don't try to post a message if there is no webhook url
|
||||
if(WebhookChannel = "")
|
||||
Return
|
||||
|
||||
; Msgbox % "Message: " Message
|
||||
; Msgbox % "WebhookChannel: " WebhookChannel
|
||||
|
||||
|
||||
@@ -102,6 +102,11 @@ TimedToolTip(Text, x="", y="",RemoveAfterTime:=2000, SetWhichToolTip="") {
|
||||
|
||||
; -------------------------------LogErrorsToTextFile-------------------------------
|
||||
Func_LogErrorsToTextFile(Text){
|
||||
|
||||
; Do not log if we do not have an errorlog filepath
|
||||
if(ErrorLoggingFilePath = "")
|
||||
return
|
||||
|
||||
; ErrorLoggingFile := Filepath
|
||||
FormatTime, TodayDate , YYYYMMDDHH24MISS, yyyyMMdd_hhmmss
|
||||
text =
|
||||
|
||||
Reference in New Issue
Block a user