A telegram bot to remind students in the Interaction Design atelier to water the plants. The bot is powered by Node.js Telegram Bot API.
- Clone repo.
$ git clone https://github.com/znezniV/iad-telegram-plantbot.git
- Install npm packages
$ cd iad-telegram-plantbot
$ npm install
- Install Nodemon globally
$ npm install nodemon -g
- Add token into code
You can get the token from the Telegram BotFather which needs to be included in the token
variable in index.js
.
- Run script
$ npm start
// (starts "nodemon index.js --ignore '*.json'")
-
Add bot
-
Commands
/start
To start the bot./stop
To stop watching the plants./status
To get the status of all plants.<PlantName>
To set Plant as watered.
- Configure
To configures for the plants have to be be done manually in
plants_config.json
for now.
name
For plant name.daysWaterFreq
Number of frequency the plant has to be watered in days.fine
(optional) If plant is fine.lastWatered
The moment of last watering in milliseconds.