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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: async8ball-2.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 4f5066dc07e3551cbaace4d896a4c371a028eb2684c80374edbcc4e8f6327dd1
MD5 87932fe5812feaf9655b384f76396bc7
BLAKE2b-256 924291cf658a8c20ef0da4dec481c71d7f308c462143a87d3fc2b54242103e46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async8ball-2.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 50536eccab24532c0504fe542c1efbbd156c811fe6abb478f1585197568b12dd
MD5 8b8d7c1890407aa1adc83cb2ea60bfb7
BLAKE2b-256 66ba09824f5f7d1df1d483806acebcbc0538f8e7e1fc0979d7a2b03e1132dc25

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