pumpum7 / tatsu.py Goto Github PK
View Code? Open in Web Editor NEWA async python api wrapper for the tatsu API (https://dev.tatsu.gg/)
License: MIT License
A async python api wrapper for the tatsu API (https://dev.tatsu.gg/)
License: MIT License
Any functions that use put
result in this message:
{"message":"Error decoding PUT body. Error: 696e76616c69642063686172616374657220276127206c6f6f6b696e6720666f7220626567696e6e696e67206f662076616c7565"}
A possible fix for this is changing the kwarg here from data
to json
:
https://github.com/PumPum7/Tatsumaki.py/blob/02ae7eabe3505dab6bb0810eca4889659ee76878/wrapper.py#L27
https://github.com/PumPum7/Tatsumaki.py/blob/master/wrapper.py#L22v
There's an eval on this line which is a pretty damn big security issue because it evals anything and everything that cannot be interpreted as json
I use Tatsu API to get user's credit, but it has problem is 'object has no attribute 'credits''.
It also appears when I use avatar_url, avatar_hash,...
@commands.command()
async def transfer(self,ctx, member: discord.Member):
wrapper = ApiWrapper(key=os.environ['token'])
user_profile = await wrapper.get_profile(member.id)
await ctx.send(user_profile.credits)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.