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 hashes)
Built Distribution
Close
Hashes for async8ball-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39631bb13e3054616b25dbc7b4ef2a750e6099ab86386d7019da630ff7e070c |
|
MD5 | 1a8c2b1e16c740bcb887530743255d25 |
|
BLAKE2b-256 | 5ef1678f3646d496b9c2e16d4debb16b30370ab9aa3d282205b06eed419b8391 |