Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

discord.py set activity

# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))

# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))

# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))

# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))
Comment

how to use custom activity in discord.py

# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))

# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))

# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))

# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))

# Setting `Competing ` status
await bot.change_presence(status=discord.Status.online, activity=discord.Activity(type=discord.ActivityType.competing, name=f"Chess"))
Comment

how to use custom activity in discord.py

# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))

# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))

# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))

# Setting `Competing ` status
await bot.change_presence(status=discord.Status.online, activity=discord.Activity(type=discord.ActivityType.competing, name=f"Chess"))
Comment

PREVIOUS NEXT
Code Example
Python :: bmi python 
Python :: how to update python in linux 
Python :: python color text on windows 
Python :: python average of two lists by row 
Python :: how to apply labelencoder on multiple columns at once 
Python :: python datetime round to nearest hour 
Python :: matrix pow python 
Python :: jupyter notebook change image size 
Python :: python pendas shut off FutureWarning 
Python :: np array to df 
Python :: name unnamed column pandas 
Python :: pandas sum multiple columns groupby 
Python :: bgr to gray opencv 
Python :: python check if item in 2d list 
Python :: save pandas dataframe to parquet 
Python :: opencv grayscale to rgb 
Python :: how to update sklearn using conda 
Python :: timestamp change python 
Python :: telegram markdown syntax 
Python :: traceback python 
Python :: how to apply logarithm in pandas dataframe 
Python :: run unittest in terminal python 
Python :: how to split an input in python by comma 
Python :: how to pass header in requests 
Python :: dataframe to txt 
Python :: python two while loops at same time 
Python :: decode url python 
Python :: python playsound stop 
Python :: pandas index to list 
Python :: add self role with discord bot python 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =