Skip to content

Ali-TM-original/asyncdagreq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unofficial DagpiWrapper

Async Wrapper for Dagpi

OFFICIAL DAGPI WEBSITE

Just A small project to imporve my skills in Object Oriented Programming, inspired from my previous discord.py canny command

NOT READY FOR USE YET tasks remaining: 1>Error Detection

2>.Testing
3>.Get this up and running on pypi

CURRENT STATE : BROKEN

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)

About

An async api wrapper for Dagpi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages