An async wrapper made in Python for Dagpi.
Project description
unofficial DagpiWrapper
Async Wrapper for Dagpi
Usage with discord.py (till now)
super simple
Roast
from asyncdagreq import Client import json object = Client.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'])
USING IMAGE METHODS
from asyncdagreq import Client import json object = Client.Asyncdagreq('your token') @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.7.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for asyncdagreq-1.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab2a9ae1129028773b5f8b78e08956dec05d05369e535612643d0101e283300 |
|
MD5 | b5ef54b2f3f2021332e659053fe749f5 |
|
BLAKE2b-256 | fdd26833a0596e8dc9a7d303d44a7fcda70a1e5a09106113f18911803d69ee64 |