add discord part
This commit is contained in:
9
discord.py
Normal file
9
discord.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from pypresence import Presence
|
||||
import os
|
||||
|
||||
def get_rpc():
|
||||
app_id = os.getenv('DISCORD_APP_ID')
|
||||
RPC = Presence(app_id)
|
||||
RPC.connect()
|
||||
return RPC
|
||||
|
||||
Reference in New Issue
Block a user