Skip to main content

A discord API wrapper for python

Project description

bhaicord.py

A simple discord api wrapper made in python

Installation

pip install bhaicord.py
# or
pip install git+https://github.com/himangshu147-git/bhaicord.py.git

Usage

import bhaicord
from bhaicord import Client, Intents

client = Client(intents=Intents.all())


@client.event
async def on_ready(event):
    print("Bot is ready")


@client.event
async def message_create(msg: bhaicord.Message):
    if msg.content.startswith("test"):
        await msg.send("it works fine")

client.run("TOKEN")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

bhaicord.py-0.0.2.tar.gz (25.2 kB view hashes)

Uploaded Source

Built Distribution

bhaicord.py-0.0.2-py3-none-any.whl (34.0 kB view hashes)

Uploaded Python 3

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