mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 07:11:49 +02:00
Fix what-anime quota
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "129.7.1",
|
||||
"version": "129.7.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user