Skip to content

Commit

Permalink
Optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
developers192 committed Dec 9, 2023
1 parent e8d519a commit 8b8024d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@
__pycache__/
build/
dist/
Release/
Release/

Lib/
Scripts/
pyvenv.cfg
5 changes: 3 additions & 2 deletions DetailedLoLRPC.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ async def chatUpdate(connection, event):
elif option == 2:
RPC.update(state = discStrings[availability],
large_image = profileIcon(data["icon"]),
large_text = f"{data['name']} - Lvl {data['lol']['level']}",
small_image = availabilityImg(availability),)
large_text = f"{data['gameName']}#{data['gameTag']} | Lvl {data['lol']['level']}",
small_image = availabilityImg(availability),
small_text = data["statusMessage"] if data["statusMessage"] else None)

# Detect if game has started
isLeagueOpened = procPath("LeagueClient.exe")
Expand Down
4 changes: 2 additions & 2 deletions utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from json import load as loadj, dump as dumpj
from easygui import enterbox

VERSION = "v2.7"
VERSION = "v2.8"
GITHUBURL = "https://github.com/developers192/DetailedLoLRPC/releases/latest"
ISSUESURL = "https://github.com/developers192/DetailedLoLRPC/issues/new"
DEFAULTCONFIG = {
Expand Down Expand Up @@ -107,4 +107,4 @@ def addLog(data):
logs = []
logs.append(data)
with open(LOGDIR, "w") as f:
dumpj(logs, f)
dumpj(logs, f)

0 comments on commit 8b8024d

Please sign in to comment.