Skip to content

gotois/ProstoDiary_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProstoDiary

Known Vulnerabilities codecov Maintainability GitHub code size in bytes GitHub repo size GitHub commit activity Website GitHub Issuehunt

About

Telegram assistant: text diary, email listener, food analyze, health watcher, sleep analyze

Install

Dev only

npm i
chmod +x scripts/prepare
scripts/prepare

ENVIRONMENTS

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

Create a .env file and write:

TELEGRAM_TOKEN=YOUR_TELEGRAM_TOKEN

SERVER_HOST

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

Run Telegram Bot

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

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

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

Make with Manifest GIC DAO.