Skip to content

Commit b567fca

Browse files
author
FM-17
committed
added TODO's
1 parent ed7539b commit b567fca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Redlight.py

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
ocr_urls = read_config.get("Log_Alert", "ocr_urls")
4545
roles = read_config.get("Role", "roles")
4646
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.
4749
kill_alert_enabled = read_config.get("Alerts", "kills")
4850
death_and_destruction_alert_enabled = read_config.get("Alerts", "death_and_destruction")
4951
teksensor_alert_enabled = read_config.get("Alerts", "teksensor")
@@ -183,6 +185,7 @@ def compare(im, roles):
183185

184186
#SETS UP MESSAGE FOR DISCORD WEBHOOK IF ALERT FOUND
185187
content = (f"{roles} - **Parasaur, Simply Too Close** - {who}")
188+
#TODO: Fix config such that true/false are parsed as boolean rather than strings
186189
if parasaur_ping_alert_enabled == 'true':
187190
return LiveHook(content)
188191

0 commit comments

Comments
 (0)