Skip to content

A telegram bot to remind students in the Interaction Design atelier to water the plants

Notifications You must be signed in to change notification settings

znezniV/iad-telegram-plantbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IAD Telegram Plant Bot

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.

Installation

  1. Clone repo.
$ git clone https://github.com/znezniV/iad-telegram-plantbot.git
  1. Install npm packages
$ cd iad-telegram-plantbot
$ npm install
  1. Install Nodemon globally
$ npm install nodemon -g
  1. 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.

Usage

API (Node)

  1. Run script
$ npm start
// (starts "nodemon index.js --ignore '*.json'")

Telegram

  1. Add bot

  2. 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.
  1. 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.

About

A telegram bot to remind students in the Interaction Design atelier to water the plants

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published