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.3.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file async8ball-2.0.3.tar.gz
.
File metadata
- Download URL: async8ball-2.0.3.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 | c1edbe333effa26534a640efd17e9cc706db2a36d2ba2ae0b79fbc28856110a1 |
|
MD5 | 0c69043286cf26d066f71ebc43203bd3 |
|
BLAKE2b-256 | 9f8bdd90fe02848c2c887590c21b29d3c83dcf694faab3c22b178c1b44f248ed |
File details
Details for the file async8ball-2.0.3-py3-none-any.whl
.
File metadata
- Download URL: async8ball-2.0.3-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 | 7a2ab042f04a08410004e183e97fd46ea6bec70ed2464d13d029557ee322b276 |
|
MD5 | 69fed6495e2f8367e838b85cbcb4d35b |
|
BLAKE2b-256 | 31beea8a236dcad30dbd46da4c82d88aeae1598f6c4e2abe16cd49ddb168869c |