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.7.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file async8ball-2.0.7.tar.gz
.
File metadata
- Download URL: async8ball-2.0.7.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 | 25b5a751708486f3dbe0ec9119668927d3c9adb082dc20c37340db27bdf808d6 |
|
MD5 | 4e3c8a2a1a6f69a8603b6f0d02e61119 |
|
BLAKE2b-256 | 3da6cd5bd3e5f76b9f314750a8730b85b7706087d30d7ef7a20e50f3bb6a652d |
File details
Details for the file async8ball-2.0.7-py3-none-any.whl
.
File metadata
- Download URL: async8ball-2.0.7-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 | 7572fff06029b49f4658f0483f163e936a066bab784eabdfb61f7079aecef1ef |
|
MD5 | e3aa2a551c2d669991796da0f0a74f87 |
|
BLAKE2b-256 | 481fd9e0cb0b7a60a979cf5003d62e4abbd9577dc789f03fc1ede15eaa4e39c8 |