Asynchronous 8ball response generator.
Project description
async8ball
Asynchronous 8ball response generator. Example:
import async8ball
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.1.tar.gz
(1.9 kB
view details)
Built Distribution
File details
Details for the file async8ball-2.0.1.tar.gz
.
File metadata
- Download URL: async8ball-2.0.1.tar.gz
- Upload date:
- Size: 1.9 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 | bcabc5112a52bc6ae4e4beffb5245085166fd575eee38abf40ac02691e57eea1 |
|
MD5 | 89c2f3772545bee152f18eb7bba5d1d0 |
|
BLAKE2b-256 | 39a993b6ca30ad9d17074a9feb30b86e9bcf94c3feaa9e89b6aab16a683adcdc |
File details
Details for the file async8ball-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: async8ball-2.0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 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 | 34a2b11c2c0fb42dcb6c47158ab557b2be85c36807528f27ca265346c96d2d66 |
|
MD5 | 8d9e4687cfd3ecc73c278c8e06f1c6db |
|
BLAKE2b-256 | 06462f5c0ced68c9ba13cb284429ee397e7b80eae59afbc92e507ea3eeee5d22 |