Skip to main content

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


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 details)

Uploaded Source

Built Distribution

async8ball-2.0.5-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file async8ball-2.0.5.tar.gz.

File metadata

  • Download URL: async8ball-2.0.5.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

Hashes for async8ball-2.0.5.tar.gz
Algorithm Hash digest
SHA256 5ee348857343b0365e23df480b8e2a93885e61345401e12463d73e47cdb979f9
MD5 a45124ed060b3f5297fd5e2eb6520399
BLAKE2b-256 bd0b8f2acbe9e4555796b6a2f14bff4cfa2b85f43f58076a52d8849fbed6f5a7

See more details on using hashes here.

File details

Details for the file async8ball-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: async8ball-2.0.5-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

Hashes for async8ball-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 68432363bbdee94d065d2a56ebb252eecfee73f9bbf4d0ad497121ec02ee3262
MD5 a1f9de8c230bd22a54a5d81b984f0be8
BLAKE2b-256 184c1a13ebc2240d168fb30f2f845e939cb3326220a97d10f183e1ffc38048a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page