This is a fan made pomodoro timer bot. It encourages you as your Oshi VTuber and send you a clip while taking a break.
demo.mp4
Try the bot on these chat platforms:
- Messenger (under verification)
- Telegram
You have to finish the Environments Setup before start developing.
Run the app in development mode with:
npm run dev
The command does two things:
- Start a dev server up. It'll refresh automatically when codes changed.
- Connect a HTTP tunnel to a https://xxx.t.machinat.dev endpoint. It's used to receive webhook requests from the chat platforms.
You need to configure the platforms and fill the settings in .env
file.
Check .env.example
file for guides and usage example.
Start the server with npm run dev
command.
It should work if all the required environments are filled at the last step.
Keep the dev server runnning and execute this command in a new command line tab:
npm run migrate
This register webhooks and other settings on the chat platforms.
If you want to cancel these changes,
use npm run migrate -- --down
to revert.
Now you can go to the chat platforms and try your bot. Keep the dev server running while developing. The changes in codes will immediately reflect on the bot.
Here are some resources to learn Machinat framework:
- Documents - complete guides by topics
- Tutorial - a step-by-step tutorial to make an app
- API references - detailed framework API
- All the clip data is fetched from Holodex API