Skip to main content

An async wrapper made in Python for Dagpi.

Project description



from asyncdagreq import asyncdagreq
import json

object = asyncdagreq('your token')

async def roast(ctx):
    roast = await object.roast()
    x = roast.decode("utf-8")
    j = json.loads(x)
    await ctx.send(j['roast'])

async def captcha(ctx):
    url = str("png", static_format="png", size=1024))
    img = await object.captcha(str(url), "hello")
    file = discord.File(img, "pixel.png")
    await ctx.send(file=file)

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

asyncdagreq-1.1.3.tar.gz (4.1 kB view hashes)

Uploaded source

Built Distribution

asyncdagreq-1.1.3-py3-none-any.whl (4.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page