summaryrefslogtreecommitdiff
path: root/sast/discord.rpy-sast.py
diff options
context:
space:
mode:
Diffstat (limited to 'sast/discord.rpy-sast.py')
-rw-r--r--sast/discord.rpy-sast.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/sast/discord.rpy-sast.py b/sast/discord.rpy-sast.py
new file mode 100644
index 0000000..9c231c5
--- /dev/null
+++ b/sast/discord.rpy-sast.py
@@ -0,0 +1,14 @@
+if True:
+ def readyCallback(current_user):
+ print('Our user: {}'.format(current_user))
+ stdout("Discord RPC disabled")
+ # Note: 'event_name': callback
+ responsive=False
+ print("")
+ try:
+ stdout("Shutdown requested, cleaning up...")
+ if persistent.discord:
+ discord_rpc.shutdown()
+ stdout("Thanks for playing the Mana Launcher.")
+ except:
+ pass