mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix delay time
This commit is contained in:
@@ -122,7 +122,7 @@ module.exports = class GuessSongCommand extends Command {
|
|||||||
})
|
})
|
||||||
.send('grant_type=client_credentials');
|
.send('grant_type=client_credentials');
|
||||||
this.token = body.access_token;
|
this.token = body.access_token;
|
||||||
setTimeout(() => { this.token = null; }, body.expires_in);
|
setTimeout(() => { this.token = null; }, body.expires_in * 1000);
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user