Skip to main content

Dispy - package for creating bots

Project description

logo

Dispy

version project language

Needs minimal 3.8 python version

Download stable version

# Windows
pip install --upgrade disspy

# Linux/MacOS
python3 -m pip install --upgrade disspy

Download dev version

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

Links

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

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

https://dispydocs.herokuapp.com/ - Site with docs for package

Using

Creating and running bot

import disspy

bot = disspy.DisBot(token="YOUR_TOKEN")

bot.run()

bot.on("ready")

import disspy

bot = disspy.DisBot(token="YOUR_TOKEN")


@bot.on("ready")
async def on_ready():
    print("Ready!")


bot.run()

bot.on("messagec")

import disspy

bot = disspy.DisBot(token="YOUR_TOKEN")


@bot.on("messagec")
async def on_messagec(message):
    await message.channel.send("Test!")


bot.run()

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.2.1.tar.gz (21.0 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