Implement ONLY_PERSONAL_FEED

This commit is contained in:
norohind committed 2025-05-24 00:10:58 +00:00
1 parent e464078293
commit de8630bd45
1 file changed
+4 -3
+4 -3
View File
@@ -8,8 +8,8 @@ from typing import Generator, Self
DISCORD_WEBHOOK_URL = "HOOOOOOOOOOOOOOOOK"
LOG_FILE_PATH = Path(r"E:\RSI\StarCitizen\LIVE\Game.log")
PERSONAL_FEED = True
INCLUDE_NPC = False
ONLY_PERSONAL_FEED = True
DEBUG = False
@@ -85,12 +85,13 @@ class App:
and process_important_realtime_events
):
kill = Kill.from_line(line.line)
if not (self.nickname in (kill.killer, kill.victim) and PERSONAL_FEED):
continue
if '_NPC_' in kill.killer + kill.victim and not INCLUDE_NPC:
continue
if self.nickname not in (kill.killer, kill.victim) and ONLY_PERSONAL_FEED is True:
continue
self.send_kill(kill)
def send_kill(self, kill: Kill) -> None: