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.6.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file async8ball-2.0.6.tar.gz
.
File metadata
- Download URL: async8ball-2.0.6.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 | 3e86fcbc4016abb124ac0568c1a70536178d888a833bb7ef2a3d4294834349d5 |
|
MD5 | acaed32fde6d9c4dfc76fc332d6b48e9 |
|
BLAKE2b-256 | 003e3c29ce901c55a4f590779beee81cb7549f4f29297ce858f12145d60cfcd3 |
File details
Details for the file async8ball-2.0.6-py3-none-any.whl
.
File metadata
- Download URL: async8ball-2.0.6-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 | 200c0bd14cdcc9b155eae0a07a5f83dcdb9346e054d78669eb294812185b509e |
|
MD5 | f8363500cfdb05fea0bb0537a1838fa2 |
|
BLAKE2b-256 | 0ab6a4c0b4ab04f2524b9741bdccfa067f043c8ca2a81b6bfca5b82c9689d56f |