Skip to content

win10Device/character-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Character Fetcher

source code to the Character Fetcher bot that fetches many different things!

To use the code you must first setup your config, Create config.json

{
  "token": "[Discord Bot Token]",
  "danbooru": {
    "usr": "[Danbooru Username]",
    "key": "[Danbooru API key]"
  },
  "pixiv": {
    "cookie": "[Pixiv Cookie]"
  }
}

The pixiv cookie is the literal cookie/header that would be used pixiv.net, e.g. PHPSESSID=whatever; device_id=whatever;, it's also recommended to change the user agent here:

headers: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0', cookie: config.pixiv.cookie }
{ headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0', 'Cookie': config.pixiv.cookie } }).then(function (response) {
To the same one as where the pixiv cookie was made.

Discord bot invite    https://mint.ranrom.net/fetch/bot/
Discord user bot invite  https://mint.ranrom.net/fetch/bot/user
Terms of Service    https://mint.ranrom.net/fetch/terms
Privacy Polciy      https://mint.ranrom.net/fetch/privacy