Search code examples
pythondiscorddiscord.py

Discord python bot streaming activity


Nothing error, but the bot is not run.

@client.event
async def on_ready():
    DiscordComponents(client)
    await client_presence(activity=discord.stream(name=f"Yesya"))

Solution

  • @client.event
    async def on_ready():
        DiscordComponents(client)
        await client.change_presence(activity=discord.Streaming(name=f"name", url='twitch link'))