mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Big dum dum
This commit is contained in:
@@ -91,6 +91,7 @@ module.exports = class AnimeCharacterCommand extends Command {
|
|||||||
async search(query) {
|
async search(query) {
|
||||||
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: { search: query },
|
variables: { search: query },
|
||||||
query: searchGraphQL
|
query: searchGraphQL
|
||||||
@@ -102,9 +103,10 @@ module.exports = class AnimeCharacterCommand extends Command {
|
|||||||
async fetchCharacter(id) {
|
async fetchCharacter(id) {
|
||||||
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: { id },
|
variables: { id },
|
||||||
query: resultGraphQL
|
query: resultGraphQL,
|
||||||
});
|
});
|
||||||
return body.data.Character;
|
return body.data.Character;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user