Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theevilsocks/tatsu.js
Javascript library for Tatsumaki's api.
https://github.com/theevilsocks/tatsu.js
Last synced: about 1 month ago
JSON representation
Javascript library for Tatsumaki's api.
- Host: GitHub
- URL: https://github.com/theevilsocks/tatsu.js
- Owner: TheEvilSocks
- License: mit
- Created: 2018-08-06T21:27:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-28T19:32:39.000Z (almost 6 years ago)
- Last Synced: 2024-11-03T14:51:51.971Z (2 months ago)
- Language: JavaScript
- Homepage: https://docs.theevilsocks.com/tatsu.js/index.html
- Size: 475 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tatsu.js
tatsu.js is a Javascript library for Tatsumaki's API.
# Installing
You will need NodeJS 8+ to use tatsu.js
```
npm install tatsu.js --save
```
# API Key
You can get an API key for Tatsumaki by using `t!apikey` in any Discord server with Tatsumaki in it.# Documentation
The full documentation can be found [over here](https://docs.theevilsocks.com/tatsu.js/ "Tatsu.js Documentation").# Example
```javascript
const Tatsu = require("tatsu.js");var tatsu = new Tatsu("API_KEY");
tatsu.getUser("132842210231189504").then(user => {
console.log("User: " + user.name);
console.log("Level: " + user.level);
console.log(`XP: ${user.total_xp} (${user.next_level_xp - user.level_xp} until next level)`);
}, err => {
console.error(err);
});/*
User: TheEvilSocks
Level: 58
XP: 237046 (4690 until next level)
*/```
# Current API State
Please note that due to the current state of the API there might be endpoints that do not work properly.
Sadly this is a server side issue, not fixable by this library.# License
Read the [LICENSE](https://github.com/TheEvilSocks/tatsu.js/blob/master/LICENSE) file