-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Niceygy
committed
Nov 5, 2023
1 parent
677a78c
commit 005cefc
Showing
7 changed files
with
110 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Elite:Dangerous Discord Presence | ||
## Installation | ||
1. Download the latest release from [here]() | ||
2. Extract the zip file | ||
3. Navigate to the folder in the terminal. (You can do this by right clicking in the folder and clicking `Open in Terminal`) | ||
3. In the terminal run `pip install -r requirements.txt` & `python ./install.py` | ||
4. Reboot your PC! | ||
It will now run when elite dangerous is running! | ||
## Uninstallation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import getpass | ||
from time import sleep | ||
import os | ||
USER_NAME = getpass.getuser() | ||
|
||
|
||
def add_to_startup(file_path=""): | ||
if file_path == "": | ||
file_path = os.path.dirname(os.path.realpath(__file__)) | ||
bat_path = r'C:/Users/%s\AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup' % USER_NAME | ||
with open(bat_path + '/' + "open.bat", "w+") as bat_file: | ||
bat_file.write(r'start "" "%s"' % file_path) | ||
|
||
|
||
fp = input("Where is main.py? To find the path, right click on main.py and click 'Copy As Path'") | ||
add_to_startup(file_path=fp) | ||
print("Done!") | ||
sleep(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pypresence==4.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
import pystray | ||
from PIL import Image | ||
|
||
image = Image.open("D:\github\EDDP\EDDP\icon.png") | ||
|
||
|
||
def after_click(icon, query): | ||
if str(query) == "Exit": | ||
icon.stop() | ||
|
||
|
||
icon = pystray.Icon("GFG", image, "GeeksforGeeks", | ||
menu=pystray.Menu( | ||
pystray.MenuItem("Exit", after_click))) | ||
|
||
icon.run() | ||
print("test") |