This bot is used for your household needs. It reminds you on the groupchat whenever some recurring chore is not done in specific time.
NB! The current version has Finnish localization only.
- Open Telegram application on your computer;
- Contact BotFather through Telegram here: https://telegram.me/BotFather. This bot will be used to create your bot;
- As image suggests, follow those steps:
- BotFather will provide you an API key. This API key is used to make requests to Telegram API in order to listen messages from your bot user, make bot answer accordingly and much more. Save it for next step.
git clone
the repositorycp example.config.ts config.ts
and fill config.ts with your personal info- you get the bot token from the BotFather and chatInfo and userInfo with eq @chatIDrobot
- customize
src/chores.ts
to your liking docker-compose up --build -d
- use /commands command for bot to list all commands and update them to the botfather
- Create config.js in the repository root with this content. Replace API_TOKEN with the API key you got from BotFather. After that you can start your application and with /info command populate users and broadcast chat id to .config.ts as well.
This file will be automatically ignored from .gitignore to secure your API key in GitHub.
- Install dependencies:
npm install
This will install all dependencies in package.json
so just telegraf
in order to use Telegram API.
Done! Your bot is now configured.
- Start your application:
npm start
If it prints:
[SERVER] Bot started.
...congratulations! Now bot will do what you want. Current commands (in Finnish):
/apk puhtaiden tyhjäys & leijuvat likaiset sisään 5p
/bio roskis-run sisältäen bion 5p
/roskat roskis-run ilman bioo 5p
/pullot kauppaan 5p
/astiakaappi tyhjennys 3p
/kukat kukkien kastelu 3p
/pyyhkeet käsipyyhkeiden pesu 5p
/statsit scoreboard
Check Telegraf API: https://github.com/telegraf/telegraf.
Original project by Fabio Crispino aka Finalgalaxy