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]"
},
"gelbooru": {
"usr": "[Gelbooru Username]",
"key": "[Gelbooru API Key]"
},
"pixiv": {
"cookie": "[Pixiv Cookie]"
},
"db": {
"address": "127.0.0.1",
"port": 3306,
"user": "[DB Username]",
"pass": "[DB Password]",
"db": "[Name of DB]"
}
}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:
character-fetch/module/fetchers.js
Line 124 in dd5ce40
Line 91 in dd5ce40
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