From 4860e117c79798ec42fa191edfb9da7aa20a12f4 Mon Sep 17 00:00:00 2001 From: Juzlus Date: Wed, 10 Jun 2026 14:30:13 +0200 Subject: [PATCH] update readme --- .github/readme-pl.md | 4 ++-- .github/readme.md | 4 ++-- .github/update_thanks.py | 16 +++++++++++----- readme-pl.md | 4 ++-- readme.md | 4 ++-- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/readme-pl.md b/.github/readme-pl.md index f7fdf49..046d947 100644 --- a/.github/readme-pl.md +++ b/.github/readme-pl.md @@ -34,8 +34,8 @@ jRandomSkills to plugin do CounterStrike 2, który wprowadza chaos i frajdę do - **Chiński uproszczony** [GrokAI / ChatGPT] ## 🖼️ Prezentacja Pluginu -![Preview](./.github/preview.gif) -![Preview2](./.github/preview2.gif) +![Preview](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview.gif?raw=true) +![Preview2](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview2.gif?raw=true ## 🌐 Serwer Testowy Dołącz do serwera testowego 3v3 i wypróbuj plugin jRandomSkills: diff --git a/.github/readme.md b/.github/readme.md index fea0531..d14c5bb 100644 --- a/.github/readme.md +++ b/.github/readme.md @@ -34,8 +34,8 @@ jRandomSkills is a plugin for CounterStrike 2 that brings chaos and fun to gamep - **Simplified Chinese** [GrokAI / ChatGPT] ## 🖼️ Preview -![Preview](./.github/preview.gif) -![Preview2](./.github/preview2.gif) +![Preview](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview.gif?raw=true) +![Preview2](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview2.gif?raw=true ## 🌐 Test Server Join the 3v3 test server and try out the jRandomSkills plugin: diff --git a/.github/update_thanks.py b/.github/update_thanks.py index 544c873..d3a353b 100644 --- a/.github/update_thanks.py +++ b/.github/update_thanks.py @@ -112,13 +112,19 @@ def get_github_contributors(repo, extra_logins): def get_discord_users(user_ids): cells = [] + headers = { + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" + } + for uid in user_ids: try: response = requests.get( - f"https://pfpfinder.com/api/discord/user/{uid}", timeout=10 + f"https://pfpfinder.com/api/discord/user/{uid}", + headers=headers, + timeout=10 ) if response.status_code != 200: - print(f"Discord API: Status {response.status_code} for {uid}") + print(f"Discord API: Status {response.status_code}") continue data = response.json() @@ -127,8 +133,8 @@ def get_discord_users(user_ids): if global_name: name = global_name else: - print(f"Warning: {uid} has no global_name, falling back to username '{username}' (can be used for invites)") - name = username or f"User {uid}" + print(f"Warning: {uid} has no global_name, falling back to username '{username}'") + name = username source_url = (data.get("avatar") or "").replace(".gif", ".png") if not source_url: @@ -144,7 +150,7 @@ def get_discord_users(user_ids): cells.append(make_cell(avatar_url=avatar_url, name=name)) except Exception as e: - print(f"Discord API Error for {uid}: {e}") + print(f"Discord API Error: {e}") return build_table(cells) if cells else "" diff --git a/readme-pl.md b/readme-pl.md index c765b95..40c125f 100644 --- a/readme-pl.md +++ b/readme-pl.md @@ -34,8 +34,8 @@ jRandomSkills to plugin do CounterStrike 2, który wprowadza chaos i frajdę do - **Chiński uproszczony** [GrokAI / ChatGPT] ## 🖼️ Prezentacja Pluginu -![Preview](./.github/preview.gif) -![Preview2](./.github/preview2.gif) +![Preview](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview.gif?raw=true) +![Preview2](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview2.gif?raw=true ## 🌐 Serwer Testowy Dołącz do serwera testowego 3v3 i wypróbuj plugin jRandomSkills: diff --git a/readme.md b/readme.md index 5941e29..8f157fc 100644 --- a/readme.md +++ b/readme.md @@ -34,8 +34,8 @@ jRandomSkills is a plugin for CounterStrike 2 that brings chaos and fun to gamep - **Simplified Chinese** [GrokAI / ChatGPT] ## 🖼️ Preview -![Preview](./preview.gif) -![Preview2](./preview2.gif) +![Preview](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview.gif?raw=true) +![Preview2](https://github.com/Juzlus/jRandomSkills/blob/main/.github/preview2.gif?raw=true ## 🌐 Test Server Join the 3v3 test server and try out the jRandomSkills plugin: