Open discord. If discord is not installed, install it via chocolatey.
import os try: os.startfile(r'C:\Users\gregp\AppData\Local\Discord\app-0.0.305\Discord.exe') except: os.system('choco install discord -y') os.startfile(r'C:\Users\gregp\AppData\Local\Discord\app-0.0.305\Discord.exe')