vtbk Bot is a Telegram bot that replies motivational message when it detects a vtbk within the message.
A new intended feature is to use it as a reminder bot where user can pin reminders and it will automatically remind users in a certain interval.
- Git clone the repository
- run
npm install
- run
node index.js
- Create a telegram bot using telegram botfather
- In
config/index
folder, use the generated token from the botfather and to fill up the key
To use the feature to save reminders to Google sheets,
- You have to create a google sheet
- Take the spreadsheet key from the URL of your google sheet and fill it in
config/index
- For authentication of writing to Google sheets using a service account, follow the setup instructions below.
Setup Instructions
- Go to the Google Developers Console
- Select your project or create a new one (and then select it)
- Enable the Drive API for your project
- Create a service account for your project
- Save your generated JSON key file as
vtbk-bot.json
in the config folder.
Allows you to pin a reminder for reference later. These messages will then be automatically sent to user once around 9am everyday from Monday to Friday.
Shows you a list of whatever you have pinned.
Allows the bot to reply you with a motivational message.
- Will read from google spreadsheet each time reminder function is called
- Proper reading/writing into google sheet using google spreadsheet library
- Pinned message will be automatically removed after 5 days
- Error Handling
- Unit Tests
For information on how to setup a telegram bot: https://core.telegram.org/bots
Telegram library used to develop telegram bot: https://github.com/Naltox/telegram-node-bot
Google Spreadsheet library used to save reminders: https://github.com/theoephraim/node-google-spreadsheet