Skip to content

A Discord bot to post VTuber livestream and schedule to Discord channel, utilizing the ihateani.me API

License

Notifications You must be signed in to change notification settings

ihateani-me/vtuber-bot

Repository files navigation

VTuber Discord Bot

Track VTuber live stream and post it on Discord! Utilize the ihateani.me v2 API

Requirements

  • Python 3.6+
  • Discord Bot Token
  • A Discord Server with Channels Setup

Configuration

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
    }
  }
}

Run

  1. Create a virtual environment for your bot
  2. Use the virtualenv by typing source your_env/bin/activate on Linux
  3. Run pip install -r requirements.txt
  4. Config your bot in Configuration
  5. Run by python bot.py
  6. After the bot up and running, run this command on discord ONLY ONCE: vt!initialize
  7. Enjoy!

License

MIT License

About

A Discord bot to post VTuber livestream and schedule to Discord channel, utilizing the ihateani.me API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages