warnet-gi / WarnetBot

A bot for Warga Nusantara Teyvat (WARNET) discord server
https://discord.gg/warnet-gi
MIT License
7 stars 4 forks source link

Feat/tatsu API integration #114

Closed hilmoo closed 9 months ago

hilmoo commented 9 months ago

104

Currently, I have only added a function to update the user's score. Should I also implement a discord command to edit the amount of EXP?

hilmoo commented 9 months ago

For reference, this is the log file for this integration. image

hilmoo commented 9 months ago

actually all of code from module/tatsu is same as official tatsu.py librarie https://github.com/PumPum7/Tatsu.py. Since the code is not maintened anymore, I just clone all the code and edit a little bit

hilmoo commented 9 months ago

and from the Tatsu development documentation, I did not find any section that a GET request can return None. Therefore, I did not add a condition to handle the case where it returns None.

Iqrar99 commented 9 months ago

Everything looks fine for now. For the last request, I hope you can provide a quick guide on how to get the tatsu API key. You can provide a markdown tutorial in bot/module/tatsu. This can be helpful for future contributors.