Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A telegram bot calculating communal expenses in Moscow

NotificationsYou must be signed in to change notification settings

va1m/moskommunalbot

Repository files navigation

A telegram bot calculating communal expenses for hot, coldwater, for water disposing, and for electricity in Moscow.

Requirements

  • JDK17 - OpenJDK HotSpot, for example.
  • Postgres database - Seesrc/main/sql/create-tables.sql scriptto create mandatory tables.Put connection URL indburl system property.
  • Token taken fromBotFather bot.Put the token intotoken system property.

Scenario

  • User selects "new calculation"
  • bot: enter cold water last meter readings
  • user: enters
  • bot: enter hot water current meter readings
  • user: enters
  • bit: repeats the same questions for hot water and electricity
  • bot: parses the pages from links below, finds prices,for current date and calculates payment amounts.
  • bot: send a message to user in following format:
Cold water:- the price sets from 01.07.2020- amount to pay: 3456 RUB (123L × 123 RUB/L)Hot water:- the price sets from 01.08.2020- amount to pay: 3456 RUB (123L × 123 RUB/L)Water disposal:- the price sets from 01.09.2020- amount to pay: 3456 RUB (345L × 123 RUB/L)Electricity:- the price sets from 01.10.2020- amount to pay: 3456 RUB (123KW × 123 RUB/KW)

The prices are from

Where the bot lives?

It hosts onhttps://heroku.comand available herehttps://t.me/moskommunalbot

About

A telegram bot calculating communal expenses in Moscow

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp