Python Pypresence不是';Don’不要改变我不和谐的表情
因此,有一种称为discord rich presence的东西,它可以显示一些东西,比如某个人正在玩什么游戏,如果游戏支持它()。但是,当我使用一个名为。代码直接来自pypresence文档() 代码:Python Pypresence不是';Don’不要改变我不和谐的表情,python,python-3.x,discord,Python,Python 3.x,Discord,因此,有一种称为discord rich presence的东西,它可以显示一些东西,比如某个人正在玩什么游戏,如果游戏支持它()。但是,当我使用一个名为。代码直接来自pypresence文档() 代码: from pypresence import Presence import time client_id = 'my_client_id' # I put my client id in here, but I removed it for pretty obvious reasons r
from pypresence import Presence
import time
client_id = 'my_client_id' # I put my client id in here, but I removed it for pretty obvious reasons
rpc = Presence(client_id)
rpc.connect()
rpc.update(state='Rich Presence using pypresence!')
while True:
time.sleep(15)