⚠️ DEPRECATED: this project has been moved to ScheduleTweetBot
A simple Discord bot to fetch schedule-related Hololive tweets to
feed our schedule.
Profile picture by the one and only DuDuL!
To install the requirements, run pip install --no-cache-dir -r requirements.txt
.
You will need a Twitter API Bearer token and the Discord bot token.
Set the following environment variables with the two respective values:
TWITTER_BEARER_TOKEN
HOLOTWEETBOT_TOKEN
The configuration used for scraping and notifying is stored in the data.py
file.
Finally, run python main.py
.
The bot automatically sends new tweets in the specified channel every 60 seconds
(the timeout is configurable in main.py
). The query is configurable in the
fetcher.py
file, while the watched users and keywords can be set in the data.py
file.
Optionally you can also use /holotweets
to fetch and display new tweets manually.
If you don't see the slash command in your server, wait around one hour to allow it
to sync, or check that you invited the bot with the applications.commands
scope.
The most recent tweet is saved each time so you won't see the same one twice;
by default the ID is written in the config/holotweetbot.ini
file
(configurable in main.py
as well).
Create a .env
file with the environment variables above, then build or pull the image and run it:
docker build . -t holotweetbot
or docker pull steeven9/holotweetbot
docker run --name holotweetbot --env-file .env holotweetbot