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.8.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: async8ball-2.0.8.tar.gz
  • Upload date:
  • Size: 2.4 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.8.tar.gz
Algorithm Hash digest
SHA256 99f687c694ff99baf88e76f18b195d0111c992498dab425e262ee7e259bfada9
MD5 f1cd273eeba499fbe56352b3ed54439f
BLAKE2b-256 a62ad306bf6366a9210edd69767445420c2d4f8b6f00f26070d2bee628684dc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async8ball-2.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 95a98ad98d1b15ff8cc9b818c4056e56834ade20832ee793c683571607dd7367
MD5 6f823cad6d79cdd0bd966ab98b18c43b
BLAKE2b-256 678d0b908d566399cfca7ee452b3cc40e8e2e7cd45b2887e215857165ff29bd1

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