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.8.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for async8ball-2.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95a98ad98d1b15ff8cc9b818c4056e56834ade20832ee793c683571607dd7367 |
|
MD5 | 6f823cad6d79cdd0bd966ab98b18c43b |
|
BLAKE2b-256 | 678d0b908d566399cfca7ee452b3cc40e8e2e7cd45b2887e215857165ff29bd1 |