Track VTuber live stream and post it on Discord! Utilize the ihateani.me v2 API
- Python 3.6+
- Discord Bot Token
- A Discord Server with Channels Setup
Rename config.json.example
to config.json
{
"bot_token": "your.bot.token",
"channels": {
"holo": null,
"niji": null,
"other": null
},
"ignore": {
"groups": []
}
}
Register your bot and put it in bot_token
variable
Get the Text Channels IDs for every groups and put it in the channels
part.
You can ignore it by just setting it to null
Then if you want no groups in the channels, put the group
key from the API and put it in the groups
list.
To get list of groups, you can do a groups
fetch to the GraphQL API on the explorer here: GraphQL Explorer
Then put this GraphQL Query and press Send Request
query VTuberGroups {
vtuber {
groups {
items
}
}
}
- Create a virtual environment for your bot
- Use the virtualenv by typing
source your_env/bin/activate
on Linux - Run
pip install -r requirements.txt
- Config your bot in Configuration
- Run by
python bot.py
- After the bot up and running, run this command on discord ONLY ONCE:
vt!initialize
- Enjoy!
MIT License