DisPy is a Python framework designed to simplify interaction with the Discord API and facilitate the development of Discord bots.
Here's an example code showcasing how to use DisPy:
from dispy import Client, Intents
from dispy.events import ReadyEvent
client = Client(
token="YOUR_DISCORD_BOT_TOKEN",
intents=Intents.ALL,
mobile_status=True,
prefix="!"
)
async def on_ready(event: ReadyEvent):
print('Bot is ready!')
client.add_listener(on_ready)
client.run()
Replace YOUR_DISCORD_BOT_TOKEN
with your actual Discord bot token.
You can install DisPy using pip:
pip install dispy
Create a new instance of Client by providing your Discord bot token and desired options. Define callback functions for your commands and events. Add commands and event listeners using the appropriate methods provided by the Client class. Start the bot using client.run().
Coming soon
Coming soon
DisPy is licensed under the MIT License. See the LICENSE file for more details.