You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed fetch command not working with spaces in paths
Added unmute duration to /info
Added option to specify the mute duration as a floating point value
Added debug environment variable
Changed error report minutes to TimeInterval and used DateComponentsFormatter to print the duration
value = "/Users/jonasfrey/tools:/usr/local/opt/gnu-getopt/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin:/opt/local/bin:/Users/jonasfrey/scripts:/Users/jonasfrey/flutter/bin"
56
+
key = "NOTIFIER_BOT_DEBUG"
57
+
value = "true"
58
+
isEnabled = "YES">
59
+
</EnvironmentVariable>
60
+
<EnvironmentVariable
61
+
key = "TELEGRAM_BOT_TOKEN"
62
+
value = "5221316043:AAF-_gfAxbHVrW2HDfplfSYz3psPtseLVKM"
print("Unable to read bot token. Please place it into the file \(mainDirectory.components(separatedBy:"/").dropLast().joined(separator:"/"))/BOT_TOKEN")
11
+
vartelegramBotToken:String!=nil
12
+
iflet t =try?String(contentsOfFile:"\(mainDirectory)/BOT_TOKEN", encoding:.utf8)
13
+
.components(separatedBy:.newlines)
14
+
.first {
15
+
// Read the token from a the file
16
+
print("Reading token from file.")
17
+
telegramBotToken = t
18
+
}elseiflet t =ProcessInfo.processInfo.environment["TELEGRAM_BOT_TOKEN"]{
19
+
// Read the token from the environment, if it exists
20
+
print("Reading token from environment.")
21
+
telegramBotToken = t
22
+
}else{
23
+
print("Unable to read bot token. Please place it into the file "+
0 commit comments