An API wrapper for discord.
Project description
discord.wrapper
sAn API wrapper for discord wich uses async
and await
api.
How to install
python3 -m pip install discord.wrapper
Bot Example
import sys
from discord import wrapper
bot = wrapper.Bot(token="your bot token")
@bot.event()
async def on_ready():
print("Ready!")
if __name__ == "__main__":
bot.run()
Subclassed Bot
from discord import wrapper
class MyBot(wrapper.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
bot = MyBot(token="Your Bot Token")
bot.run()
For more info, check out the docs.
Links:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discord.wrapper-3.0.3.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for discord.wrapper-3.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28a545f6fd4cfa37d5a345b64b6d90b4a908bcc740140695561fb496e73d52be |
|
MD5 | b7eafe69372a00805f67a374061bf264 |
|
BLAKE2b-256 | f14daa5b95b2ecbbe62e84355f8a54e00cd39fa7250ddde4ffcbe7eb5b5c7527 |