Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

discord.py change status

# Playing ____
await bot.change_presence(activity=discord.Game(name='Minecraft'))
# Streaming ____
await bot.change_presence(activity=discord.Streaming(name="Chess", url=twitch_url))
# Watching ____
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="Harry Potter"))
# Competing in ____
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.competing, name="the House Cup"))
# Listening to ____
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="!help"))
Comment

PREVIOUS NEXT
Code Example
Python :: python import all words 
Python :: tf.squeeze() 
Python :: np not defined 
Python :: how to get the angle of mouse from the center 
Python :: how to change voice of pyttsx3 
Python :: Add help text in Django model forms 
Python :: convert integer to datetime in python 
Python :: python get list of files in path 
Python :: libraries used in ANN with sklearn 
Python :: how to clear the console python 
Python :: selenium get current url 
Python :: how do i print when my bot is ready in discord.py 
Python :: float number field django models 
Python :: python printing date 
Python :: get request python 
Python :: where my python modules in linux 
Python :: img read 
Python :: adjust tick label size matplotlib 
Python :: python use .env 
Python :: django return only part of string 
Python :: random int in python 3 
Python :: set axis ticks matplotlib 
Python :: python tkinter fullscreen 
Python :: python randomize list 
Python :: python html to pdf 
Python :: numpy random int 
Python :: equivalent of ament_index_python in noetic 
Python :: get from time secs and nsecs 
Python :: flatten a 2d array python 
Python :: sns scatter plot 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =