Skip to content

gotois/ProstoDiary_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProstoDiary - Telegram Assistant

Website Known Vulnerabilities codecov Maintainability GitHub code size in bytes GitHub repo size Docker Image GitHub commit activity License: Common Public License Version 1.0 Issuehunt

About

Text diary, food analyze, health watcher, sleep analyze

Install

Dev only

npm i
chmod +x scripts/prepare
scripts/prepare

ENVIRONMENTS

Create a .env file and write:

TELEGRAM_TOKEN

TELEGRAM_DOMAIN

SERVER_HOST

TELEGRAM_MINI_APP

Simple server

const bot = require('prosto-diary');

bot({
  token: process.env.TELEGRAM_TOKEN,
  domain: process.env.TELEGRAM_DOMAIN,
});

Tests

Unit

npm run test:unit [-- --watch]
#npm run test:unit [-- --match='config']

Tools

Package upgrade

ncu -u

Fix lint

npm run lint -- --fix --quite

Show dependencies graph

brew install graphviz
npm run report:dependency

Validate dependencies

npm run lint:dependency

docs only Dev

Install

sudo gem install bundler jekyll
cd docs
bundle install

Run

npm run dev:docs

Docker Image

docker compose --env-file .env up --build

Run Telegram Bot Dev

docker compose --env-file .env up -d

Run Telegram Bot Prod

docker compose --env-file .env -f compose.yml -f compose.prod.yml up --build

Возможности управления системой

  1. something text - Запись. Используется по-умолчанию
  2. ? something search - Поиск
  3. ! something execute - Выполнение поручения

Make with Manifest GIC DAO.