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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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