discord py presence

Solutions on MaxInterview for discord py presence by the best coders in the world

showing results for - "discord py presence"
Loretta
17 Sep 2018
1# Setting `Playing ` status
2await bot.change_presence(activity=discord.Game(name="a game"))
3
4# Setting `Streaming ` status
5await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))
6
7# Setting `Listening ` status
8await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))
9
10# Setting `Watching ` status
11await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))
12
Tino
25 Jun 2020
1import psutil
2from pypresence import Presence
3import time
4
5client_id = '64567352374564'  # Fake ID, put your real one here
6RPC = Presence(client_id,pipe=0)  # Initialize the client class
7RPC.connect() # Start the handshake loop
8
9
10while True:  # The presence will stay on as long as the program is running
11    cpu_per = round(psutil.cpu_percent(),1) # Get CPU Usage
12    mem = psutil.virtual_memory()
13    mem_per = round(psutil.virtual_memory().percent,1)
14    print(RPC.update(details="RAM: "+str(mem_per)+"%", state="CPU: "+str(cpu_per)+"%"))  # Set the presence
15    time.sleep(15) # Can only update rich presence every 15 seconds
16
Barry
17 Mar 2016
1await bot.change_presence(activity=discord.Game(name="Anything You Want"))
queries leading to this page
discord rich presence for jupyter status page discord pyhow to set activity discord pyspotify status discord pydiscord rich presence using pythondiscord py bot having rich presencehow to add discord rich presence to a python scriptcustom rich presence discord pyget the custom activity of a member discord pydiscord activity discord pyactivity discord bot pypython discord rich presence with buttonsactivity on member update discord pyget activity of user discord pysetactivity discord pydiscord rich presence python documentationset status discord pydiscord py bot statususer activity in discord pyrich python discorddiscord rich presence to your game pydiscord py bot presencediscord raid tool pythondiscord custom rich presence python with import discorddiscord rich presence for pythondiscord presence using pythonhow to use activity discord pyactivity in discord pyset discord activity in pythonpython tutorial for discord rich presencepython pypresencediscord rich presence example discord pymember activity in discord pyhow to set rich presence discord pydiscord bot rich presence pythonhow to make rich presence discord in pythonpython change bot presence discordactivity command discord pyget the activity of a member discord pydiscord py presence discord py activity documentsdiscord py status changediscord pyhton set activityhow to give a discord py bot rich presencehow to make a bot presence discord pyhow to create discord presence using pythonhow to control the activity discord with pythonhow to change rich presence discord pyactivity command discord py activaterich presence pythonget rich presence user discord pypresence discord pydiscord py activitybot presence discord pypython discord rpcdiscord py activity attributesdiscord bot rich presence example discord pydiscord py set statushow to set activity in python discorddiscord rich presence code pythonhow to do discord rich presence in pythonhow to make discord rich presence pythondiscord rich presence python buttonsdiscord py activity startrich presence discord pydiscord py presencediscord py on activityactivity discord pyhow to make a discord rich presence with pythonhow to set up rich presence discord in python for real userhow to make a discord rich presencecustom activity type discord pydiscord py activity 3ddiscord custom discord rich presence with pythondiscord py change activity botdiscord pypresencediscord rich presence ptyhondiscord py statusdiscord py activity typesrich presence discord selfbot pythondiscord rich presensce pythondiscord py get user activitydiscord py bot custom activityget the the custom activity of a member discord pypython discord presencehow to change bot activity discord pypython discord rich presanceset discord rich presence in pythonhow to add presence discord pydiscord rich presence with pythondiscord set activity pythoncheck activity in discord pydiscord py bot statusdiscord py rich presencediscord rpc pypi 22discord py 22 rich presencechange activity discord pydiscord py bot rich presencerich presence discord py bothow to set activity discord pydiscord py activityintents discord pyactivities bot on discord discord pycustom activity discord pycustom rich presence discord pythonrich presence discord pyactivity change opens vc discord pydiscord py show activitydiscord py can you change activity while bot is activediscord rich presence to your game pythoncustom discord rich presence pythonhow to get user activity discord pyrich presence discord tuto pypython discord rich presencechange status discord pycustom status discord pydiscord py activity commanddiscord python change activitydiscord python activityhow to set bot 27s rich presence discord pyrich presence discord bot pyhow to put rich presence on discord pythonupdate discord rich presence in discord pydiscord py set presencediscord py member activitydiscord py activityrich presence sdk python discorddiscord rich presence pythongame activity in discord pydiscord py set activitydiscord py set status for bothow to make discord rich presence from pythondiscord py activity typesset activity discord pydiscord activity pythonhow to change status in discord pydiscord py rich presence tuotrialactivity discord pyhow to make custom activity discord pydiscord python rich presencediscord ptyhon change activityrich presence discordpypresence examplehow to make rich presence discord 2cpyset activity discord pypython disord rich presencediscord py rich presence botshow to set a bot activity discord pydiscord py bot rich presencediscord py rpcbot activity discord pydiscord py user presencestatus discord pydiscord py bot activitydiscord presence discord pyrich presence discord pythonhow to get activity type in discord pyempty activity discord pydiscord py rich presencerich presence visualizer discord pydiscord py custom activity does not appeardiscord py activity buttonsdiscord py bot activityhow to make custom rich presence discord pydiscord rich presence discord pydiscord python set activitydiscord py setactivitydiscord presence in pythondiscord custom rich presence pythonget a custom activity of a member discord pyhow to add rich presence discord bot pythonadd bot activity discord pydiscord py rich presencepython rich presence discordhow to setup rich presence discord for your bot pyhondiscord presence pythonpygame discord rich presencediscord py set statushow to get discord rich presence pythonadd status discord pyhow to set discord rich presence in pythondiscord py presence