Asynchronous 8ball response generator.
Project description
async_8ball
Asynchronous 8ball response generator. Example:
import async_8ball
async def your_function():
response = await async_8ball.response()
Deco Example:
from async8ball.decorators import ball_decorator
@ball_decorator
def my_function(**kwargs):
return kwargs['response']
Discord.py command implement:
from async8ball.decorators import ball_decorator
@ball_decorator
def my_func(question, **kwargs):
return kwargs['response']
@bot.command()
async def my_command(ctx, *, question:str):
await ctx.send(ball8(question))
or
import async8ball
@bot.command(self, ctx, *, question:str):
await ctx.send(await async8ball.response(question))
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
async8ball-2.0.tar.gz
(1.8 kB
view details)
Built Distribution
File details
Details for the file async8ball-2.0.tar.gz
.
File metadata
- Download URL: async8ball-2.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acaaacce0d5953789b5367d51f0007c9be533760019d5d54bd4193dacf369133 |
|
MD5 | 33217a2904ddf6f4567a918f79daaf30 |
|
BLAKE2b-256 | 4faaf38830e59a275a706956db4f6ea471da3b87cae94d024bd093d1339a2351 |
File details
Details for the file async8ball-2.0-py3-none-any.whl
.
File metadata
- Download URL: async8ball-2.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e1495dd215258276fc0c89a51e24a9673b861b66d59858d2f27d4b7d77ffa84 |
|
MD5 | a907c7d88ce398eea209e5dd68b4da99 |
|
BLAKE2b-256 | 06374a33c80802b5188c3878eb3324c3203e399c9fb9142082e18e5740a866ea |