File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 44
44
ocr_urls = read_config .get ("Log_Alert" , "ocr_urls" )
45
45
roles = read_config .get ("Role" , "roles" )
46
46
svrole = read_config .get ("Role" , "svrole" )
47
+
48
+ #TODO: Alert configuration may be cleaner if parsed as a dict. Perhaps look into vyperconfig in the future.
47
49
kill_alert_enabled = read_config .get ("Alerts" , "kills" )
48
50
death_and_destruction_alert_enabled = read_config .get ("Alerts" , "death_and_destruction" )
49
51
teksensor_alert_enabled = read_config .get ("Alerts" , "teksensor" )
@@ -183,6 +185,7 @@ def compare(im, roles):
183
185
184
186
#SETS UP MESSAGE FOR DISCORD WEBHOOK IF ALERT FOUND
185
187
content = (f"{ roles } - **Parasaur, Simply Too Close** - { who } " )
188
+ #TODO: Fix config such that true/false are parsed as boolean rather than strings
186
189
if parasaur_ping_alert_enabled == 'true' :
187
190
return LiveHook (content )
188
191
You can’t perform that action at this time.
0 commit comments