Fix what-anime quota

This commit is contained in:
Dragon Fire
2021-02-14 18:44:57 -05:00
parent 8911c5cb2d
commit 91a24afe53
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ module.exports = class WhatAnimeCommand extends Command {
async fetchRateLimit() {
try {
const { body } = await request.get('https://trace.moe/api/me');
return { status: body.limit > 0, refresh: body.limit_ttl };
return { status: body.user_limit > 0, refresh: body.user_limit_ttl };
} catch {
return { status: false, refresh: Infinity };
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "129.7.1",
"version": "129.7.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {