Remove screenshot saving functionality from Discord status detection
This commit is contained in:
parent
b3afc9f785
commit
1a01676d9f
BIN
DISCORD.lnk
BIN
DISCORD.lnk
Binary file not shown.
6
main.py
6
main.py
@ -61,9 +61,9 @@ def get_discord_status():
|
||||
mute_image = np.array(mute_screenshot)
|
||||
deafen_image = np.array(deafen_screenshot)
|
||||
|
||||
# Save the screenshots to files
|
||||
mss.tools.to_png(mute_screenshot.rgb, mute_screenshot.size, output="mute_screenshot.png")
|
||||
mss.tools.to_png(deafen_screenshot.rgb, deafen_screenshot.size, output="deafen_screenshot.png")
|
||||
# # Save the screenshots to files
|
||||
# mss.tools.to_png(mute_screenshot.rgb, mute_screenshot.size, output="mute_screenshot.png")
|
||||
# mss.tools.to_png(deafen_screenshot.rgb, deafen_screenshot.size, output="deafen_screenshot.png")
|
||||
|
||||
# Check the pixel color in a 2x2 region
|
||||
mute_status = any(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user