Update anime-score.js

This commit is contained in:
Dragon Fire
2024-11-10 13:12:22 -05:00
committed by GitHub
parent 963734a7c1
commit 5675835c98
+2
View File
@@ -96,6 +96,7 @@ module.exports = class AnimeScoreCommand extends Command {
const selectedAnime = Math.floor(Math.random() * this.totalAnime); const selectedAnime = Math.floor(Math.random() * this.totalAnime);
const { body } = await request const { body } = await request
.post('https://graphql.anilist.co/') .post('https://graphql.anilist.co/')
.set({ referer: 'nick is dum dum' })
.send({ .send({
variables: { variables: {
page: Math.ceil(selectedAnime / 50), page: Math.ceil(selectedAnime / 50),
@@ -116,6 +117,7 @@ module.exports = class AnimeScoreCommand extends Command {
if (this.totalAnime) return this.totalAnime; if (this.totalAnime) return this.totalAnime;
const { body } = await request const { body } = await request
.post('https://graphql.anilist.co/') .post('https://graphql.anilist.co/')
.set({ referer: 'nick is dum dum' })
.send({ .send({
variables: { variables: {
page: 0, page: 0,