Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Get game status discord.py

@bot.event
async def on_member_update(prev,cur):       


    games = ["overwatch", "rocket league", "minecraft", "stardew valley"]
    
    print(cur.activity.name.lower())
    if cur.activity and cur.activity.name.lower() in games:
            #do something
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #game #status
ADD COMMENT
Topic
Name
1+8 =