Skip to main content

Dispy - package for creating bots in discord written in Python

Project description

Dispy

logo

version project language python version linting pylint mark documentation Status

Advantages

  • Package for async/await support
  • Registering events with wrappers
  • Easy code with syntax sugar

For package needs minimal 3.8 python version

Dispy is package for creating bots in Discord. This package use discord API and discord Gateway for handle events or, for example, sending messages. Bot use for different goals; handle information on your server, creating mini games in discord, auto moderation in your discord server and other.

For example, you can reply to message that is sended by any user using this code:

import disspy  # Import package

bot = disspy.DisBot(token="YOUR_TOKEN")  # Create a bot

@bot.on_message("create")
async def on_messagec(message: disspy.DisMessage):
    await message.reply("Hello, world!")  # Reply to message

bot.run()  # Run discord in Gateway

Download package

Download latest version

# Windows
pip install -U disspy

# MacOS
py3 -m pip install -U disspy

# Linux
sudo pip install -U disspy

Download dev version (needs git)

git clone https://github.com/itttgg/dispy.git
cd dispy
pip install -U .

Links

https://github.com/itttgg/dispy - GitHub repo

https://pypi.org/project/disspy - Project site on PyPi

https://disspy.readthedocs.io - Site with docs for package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

disspy-0.6.3.tar.gz (32.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page