From ff02127c5a6c68dd0c0772bcd0724a61b85c56f4 Mon Sep 17 00:00:00 2001 From: ThiaudioTT Date: Fri, 28 Jun 2024 18:32:47 -0300 Subject: [PATCH 1/3] chore(gitignore): adds venv to ignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5cbd5b0..83ec0c6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ __pycache__/ /dist/ /build/ hoi4-presence*/ -*.zip \ No newline at end of file +*.zip +.venv/ \ No newline at end of file From 9b943781da08b26405e9cb776249c82be5ec29e3 Mon Sep 17 00:00:00 2001 From: ThiaudioTT Date: Fri, 28 Jun 2024 18:33:51 -0300 Subject: [PATCH 2/3] feat(rpc): changes default details in presence fix #35 --- src/discordRPC/hoi4RPC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discordRPC/hoi4RPC.py b/src/discordRPC/hoi4RPC.py index ed6e647..097228b 100644 --- a/src/discordRPC/hoi4RPC.py +++ b/src/discordRPC/hoi4RPC.py @@ -18,7 +18,7 @@ # default values RPC.update( - details="In menus...", + details="Preparing for war...", large_image="hoi4-logo", # put this in a var? large_text="thiaudiott/hoi4-presence on Github!", start=playTime From b51eaa999249d3145362c7dcfec8b758324d3b48 Mon Sep 17 00:00:00 2001 From: ThiaudioTT Date: Fri, 28 Jun 2024 18:34:33 -0300 Subject: [PATCH 3/3] fix(countries): fix #40 default large image not appearing --- src/discordRPC/countries.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/discordRPC/countries.py b/src/discordRPC/countries.py index fdaf84d..44a2129 100644 --- a/src/discordRPC/countries.py +++ b/src/discordRPC/countries.py @@ -17,18 +17,18 @@ def getCountry(country: str) -> Country: # This is raised when there is a country that isn't in the countries dictionary if countryTuple is None: - countries[country] = (country, HOI_ICON) + countries[country] = (country, DEFAULT_LARGE_IMAGE) # Raised if there isn't an image link elif countryTuple[1] == "": - countries[country] = (countryTuple[0], HOI_ICON) + countries[country] = (countryTuple[0], DEFAULT_LARGE_IMAGE) countryName = countries[country][0] flag = countries[country][1] return Country(countryName, flag) -HOI_ICON = "https://hoi4.paradoxwikis.com/images/8/8a/HoI4_icon.png" +DEFAULT_LARGE_IMAGE = "hoi4-logo2" # List of countries, add more if you want countries: dict[str, tuple[str, str]] = { @@ -39,7 +39,7 @@ def getCountry(country: str) -> Country: "FRA" : ("France", "https://hoi4.paradoxwikis.com/images/d/de/France.png"), "SPR" : ("Spain", "https://hoi4.paradoxwikis.com/images/2/2c/Nationalist_Spain.png"), "BUL" : ("Bulgaria", "https://hoi4.paradoxwikis.com/images/f/f4/Bulgaria.png"), - "D##" : ("Civil War Country", HOI_ICON), + "D##" : ("Civil War Country", DEFAULT_LARGE_IMAGE), "AFG" : ("Afghanistan", "https://hoi4.paradoxwikis.com/images/7/7d/Afghanistan.png"), "ALB" : ("Albania", "https://hoi4.paradoxwikis.com/images/0/07/Albania.png"),