An API wrapper for discord.
Project description
discord.wrapper
An API wrapper for discord wich uses async
and await
.
How to install
python3 -m pip install discord.wrapper
Bot Example
from discord import wrapper
bot = wrapper.Bot(command_prefix="!*", public_key = "Your Public Key", token="Your Bot Token")
@bot.command()
async def example(data):
await data.send(data.message.author)
bot.run()
Subclassed Bot
from discord import wrapper
class MyBot(wrapper.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
bot = MyBot(command_prefix="!*", public_key = "public_key", token="Your Bot Token")
@bot.command()
async def example(data):
await data.send(data.message.author)
bot.run()
Fore 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for discord.wrapper-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b997b0df80b10a77da42ecacd823457f544f89ac8709dbc8c66bf4878ad5c2 |
|
MD5 | b4c47eb1811af0667d07652cd07147ba |
|
BLAKE2b-256 | 6c7d9d66e17b10603ad8a24795cd84fda4a347c0b6b1ba1db6be9b4d75847d82 |