Discord's Bot Framework
Discord.io is currently facing a rewrite, we'll make sure to beautify this when we have time and features are partially stable.
To Install discord.io, just run the following command:
pip install discord.io
To install our speed requirements, just run the following command:
pip install discord.io[speed]
This is a basic example of a Discord bot which prints its session_id
when it becomes ready:
import discord
app = discord.GatewayApp(intents=0)
@app.subscribe()
async def on_ready(event: discord.Ready) -> None:
print(f'Ready on {event.user.name}!')
app.run('token')