A simple Telegram bot to provide quizzes for the basic Japanese kana: both hiragana and katakana.
Dedicated to Mina 🎁
A sample instance is hosted for/at @KanaQuizBot, the instance fully complies to this source tree.
Since the codebase is obviously Heroku-ready, I'll only provide instructions for deploying on Heroku. You have to modify the source code a little bit to be able to use it outside the Heroku platform.
- Register a new bot on Telegram and a new app on Heroku
- Clone this repo and add your Heroku app's git remote
BOT_TOKENconfig var to your Telegram bot token
APP_NAMEconfig var to your Heroku app name
- Push the code to Heroku
Don't forget to set the webhook by calling:
Add the following commands to the bot:
start - (same as /help) help - Send the help message hiragana - Switch the quiz to Hiragana katakana - Switch the quiz to Katakana stop - Stops any ongoing quiz
Licensed under the MIT (Expat) license.
Copyright (C) 2021 Karam Assany (firstname.lastname@example.org)