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.5.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for async8ball-2.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68432363bbdee94d065d2a56ebb252eecfee73f9bbf4d0ad497121ec02ee3262 |
|
MD5 | a1f9de8c230bd22a54a5d81b984f0be8 |
|
BLAKE2b-256 | 184c1a13ebc2240d168fb30f2f845e939cb3326220a97d10f183e1ffc38048a5 |