Skip to content

Instantly share code, notes, and snippets.

View hash-dev's full-sized avatar

hash-dev

  • Amsterdam, the Netherlands
  • 19:43 (UTC +02:00)
View GitHub Profile
@scragly
scragly / activities.md
Created October 28, 2018 03:12
Activity updates on 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"))