Skip to content

VincentRPS/discord.io

Repository files navigation

Discord's Bot Framework

Features

Discord.io is currently facing a rewrite, we'll make sure to beautify this when we have time and features are partially stable.

Installing

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]

Basic Example

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')

Useful Links