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 hashes)
Built Distribution
Close
Hashes for async8ball-2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2ab042f04a08410004e183e97fd46ea6bec70ed2464d13d029557ee322b276 |
|
MD5 | 69fed6495e2f8367e838b85cbcb4d35b |
|
BLAKE2b-256 | 31beea8a236dcad30dbd46da4c82d88aeae1598f6c4e2abe16cd49ddb168869c |