An async wrapper made in Python for Dagpi.
Project description
Example:
import asyncdagreq
import json
object = asyncdagreq.Asyncdagreq('your token')
@bot.command()
async def roast(ctx):
roast = await object.roast()
x = roast.decode("utf-8")
j = json.loads(x)
await ctx.send(j['roast'])
@bot.command()
async def captcha(ctx):
url = str(ctx.message.author.avatar_url_as(format="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.4.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for asyncdagreq-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c63a3629341212ce7dcc6f856981936427a3d0b9f7172786dbb37c3ee68afcd6 |
|
MD5 | dd2ea7a5324b326aa46d34091dd68de2 |
|
BLAKE2b-256 | 93dc3beebe78edce3a1ae5e01cbccb1bf302238072c00ef6bc77e9e8668a39b3 |