Skip to content

atyrin/lunch_time_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. clone source code
  2. download the latest NODE.JS framework
  3. install dependencies: npm install
  4. start bot with: npm start

Tokens

There are 2 ways to pass secret tokens to the app:

  1. Through npm params:
    npm start "bot_token" "zomato_token" "translator_token"

  2. Create an .env file in the root directory.

YANDEX_TOKEN="trnsl.1.1.sdfdsfb58.3e987248"
ZOMATO_TOKEN=cc12312321323133344543c7
BOT_TOKEN=333333:AAGSWJFDLKJII46_F0sPs

Zomato token you can get here: https://developers.zomato.com/api
Bot token is producing by Telegram Bot Father.
Yandex Translator token you can generate here: https://translate.yandex.com/developers/keys

Test Run

npm test

Heroku Deploy

  1. Create a dyno with nodejs
  2. Put the token variables in settings
  3. Deploy from a git repo

About

Телеграм бот для выбора обеденного места в обеденное время

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published