-
Notifications
You must be signed in to change notification settings - Fork 3
privacy mode for all platforms #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Make sure you do the changes Sensei Greptile SummaryImplements privacy mode feature across all platforms (macOS, Windows, Linux) to hide server addresses from Discord Rich Presence. Users can toggle privacy mode via UI menu or CLI arguments ( Key Changes:
Issues Found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant CLI/UI
participant Config File
participant LogWatcher
participant RPC
User->>CLI/UI: Toggle Privacy Mode
CLI/UI->>Config File: Write privacy_mode to ~/.hytale-rpc/settings.json
Config File-->>CLI/UI: Setting saved
loop Every 3 seconds
RPC->>LogWatcher: update()
LogWatcher->>Config File: get_privacy_mode()
Config File-->>LogWatcher: privacy_mode boolean
LogWatcher->>LogWatcher: Parse game logs
LogWatcher->>LogWatcher: get_presence()
alt Privacy Mode Enabled
LogWatcher-->>RPC: ("Playing Multiplayer", "Online")
else Privacy Mode Disabled
LogWatcher-->>RPC: ("Playing Multiplayer", "Server: play.example.com")
end
RPC->>RPC: Update Discord presence
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (1)
-
src/rpc_windows.py, line 3 (link)syntax: Inconsistent import - should be
from pypresence.presence import Presencelike other files.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
13 files reviewed, 6 comments
|
|
||
| CLIENT_ID = "1461306150497550376" | ||
|
|
||
| PRIVACY_MODE = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: PRIVACY_MODE variable added but never used in the codebase. All privacy logic reads from ~/.hytale-rpc/settings.json via get_privacy_mode() function in log watchers.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/config.py
Line: 7:7
Comment:
**style:** `PRIVACY_MODE` variable added but never used in the codebase. All privacy logic reads from `~/.hytale-rpc/settings.json` via `get_privacy_mode()` function in log watchers.
How can I resolve this? If you propose a fix, please make it concise.|
|
||
| CLIENT_ID = "1461306150497550376" | ||
|
|
||
| HIDE_SERVER_ADDRESS = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: HIDE_SERVER_ADDRESS variable added but never used in the codebase. All privacy logic reads from ~/.hytale-rpc/settings.json.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/config_macos.py
Line: 7:7
Comment:
**style:** `HIDE_SERVER_ADDRESS` variable added but never used in the codebase. All privacy logic reads from `~/.hytale-rpc/settings.json`.
How can I resolve this? If you propose a fix, please make it concise.|
|
||
| CLIENT_ID = "1461306150497550376" | ||
|
|
||
| HIDE_SERVER_ADDRESS = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: HIDE_SERVER_ADDRESS variable added but never used in the codebase. All privacy logic reads from ~/.hytale-rpc/settings.json.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/config_windows.py
Line: 7:7
Comment:
**style:** `HIDE_SERVER_ADDRESS` variable added but never used in the codebase. All privacy logic reads from `~/.hytale-rpc/settings.json`.
How can I resolve this? If you propose a fix, please make it concise.| return False | ||
|
|
||
|
|
||
| HYTALE_LOG_DIR = Path.home() / "Library/Application Support/Hytale/UserData/Logs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Hardcoded macOS path in generic Linux/Windows log watcher - should use find_hytale_log_dir() from config.py instead.
| HYTALE_LOG_DIR = Path.home() / "Library/Application Support/Hytale/UserData/Logs" | |
| from .config import find_hytale_log_dir | |
| HYTALE_LOG_DIR = find_hytale_log_dir() |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/log_watcher.py
Line: 23:23
Comment:
**logic:** Hardcoded macOS path in generic Linux/Windows log watcher - should use `find_hytale_log_dir()` from config.py instead.
```suggestion
from .config import find_hytale_log_dir
HYTALE_LOG_DIR = find_hytale_log_dir()
```
How can I resolve this? If you propose a fix, please make it concise.| from .log_watcher_macos import LogWatcher | ||
| else: | ||
| from .config import CLIENT_ID, HYTALE_PROCESS_NAMES, DISCORD_PROCESS_NAMES | ||
| from .config import CLIENT_ID, HYTALE_PROCESS_NAMES, DISCORD_PROCESS_NAMES, HIDE_SERVER_ADDRESS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: HIDE_SERVER_ADDRESS imported but never used in this file.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/rpc_macos.py
Line: 8:8
Comment:
**style:** `HIDE_SERVER_ADDRESS` imported but never used in this file.
How can I resolve this? If you propose a fix, please make it concise.
No description provided.