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.6.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for asyncdagreq-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1611f2dc92583f6ea52eb86502e97bdf4fc026074daff0a35265d55b59e0e9d6 |
|
MD5 | aefed303fb9696f308a4d1f88f14cde9 |
|
BLAKE2b-256 | 07c28e78c1fdd22a9740b5e26472b7916ff379c565c053f1b288d4c46df1c44e |