GithubHelp home page GithubHelp logo

znezniv / iad-telegram-plantbot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 60 KB

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

JavaScript 100.00%
telegram telegram-bot telegram-bot-api telegram-bots plants plant-watering plant-growth

iad-telegram-plantbot's Introduction

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.

iad-telegram-plantbot's People

Contributors

znezniv avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

jsdelivrbot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.