This script will get all the users from your discord server and simply calls the API from tatsu to fetch the level of each user and then saves it to a json file. This will avoid hitting the ratelimit of the tatsu API and will allow you to use the data for other purposes such as migrating to another leveling bot or "just in case" situations.
- Install the dependencies (
yarn install
) - Copy the .env.example into .env providing the token of your bot, guild id and the tastu API Key (This can be retreived via t!apikey create) along with the BASE APIs (Which are prefilled for you already)
- Let her rip (
yarn start
)
- Discord Developer Portal (https://discord.com/developers/applications)
- Tatsu API (https://dev.tatsu.gg)