Skip to content

Sends notifications when livestreams hololive vtubers are about to begin. (15 minutes prior and on time)

Notifications You must be signed in to change notification settings

NekoFluff/go-hololive-notification-bot

Repository files navigation

Go

Hololive Livestream Notification Bot

Sends notifications when livestreams from hololive are about to begin. (15 minutes prior and on time)

Requires a server text room with the name go-hololive-notification-bot and go-hololive-notification-bot-live

Bot link: https://discord.com/api/oauth2/authorize?client_id=920909355254169631&permissions=395137247312&scope=bot

Using the project?

Requirements: MongoDB database (e.g. Free MongoDB Atlas cluster), Heroku, golang

Host on Heroku

I hosted my bot on Heroku. Here's a dev guide on setting it up: https://devcenter.heroku.com/articles/git

Set up environment variables / config vars

PORT=# port (only set if running on local machine for testing)

COMMAND_PREFIX=# command prefix

DISCORD_BOT_TOKEN=# discord bot token

DEVELOPER_IDS=# your discord id so you can get DMs from the bot about processing feeds

DEVELOPER_MODE=# ON (enables the DMs that help debug issues)

WEBPAGE=# the heroku webpage (e.g. your-go-hololive-notification-bot-app.herokuapp.com)

MONGO_CONNECTION_URI=# connection uri to a mongodb instance. can be obtained from the mongo atlas page

Set up MongoDB Database and Collections

You can get a free cluster from MongoDB Atlas. You can use MongoDB Compass to interface with the cluster. You will need to create a hololive-en database. Contained inside are three collections feeds, scheduledLivestreams, subscriptions. You will need to create all three. The only documents you will need to manually generate is in the feeds collection. Each document should describe the vtuber being tracked.

Example:

{
    "firstName": "gawr",
    "lastName": "gura",
    "topicURL": "https://www.youtube.com/xml/feeds/videos.xml?channel_id=UCoSrY_IQQVpmIRZ9Xf-y93g",
    "group": "en",
    "generation": 1
}

Questions?

Discord: きつね#1040

Twitter: @SheavinNou

About

Sends notifications when livestreams hololive vtubers are about to begin. (15 minutes prior and on time)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published