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.2.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file async8ball-2.0.2.tar.gz
.
File metadata
- Download URL: async8ball-2.0.2.tar.gz
- Upload date:
- Size: 2.3 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 | 21cd569b91badc9dd1d06cf41626f96c63ab69f581040a75071f7399e0cfb339 |
|
MD5 | a6888459aeacd7d8919b84b8689f3b6a |
|
BLAKE2b-256 | 6d93ca674c08228d242fab1f711f6c438c688cf8cf25cdc5cda369f5238394ae |
File details
Details for the file async8ball-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: async8ball-2.0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 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 | c39631bb13e3054616b25dbc7b4ef2a750e6099ab86386d7019da630ff7e070c |
|
MD5 | 1a8c2b1e16c740bcb887530743255d25 |
|
BLAKE2b-256 | 5ef1678f3646d496b9c2e16d4debb16b30370ab9aa3d282205b06eed419b8391 |