https://github.com/lccodder/math-tg-bot-remake
This is the Telegram bot that can solve different math problems with the huge formulas database
https://github.com/lccodder/math-tg-bot-remake
math mongodb nodejs telegraf telegram-bot typescript
Last synced: 9 months ago
JSON representation
This is the Telegram bot that can solve different math problems with the huge formulas database
- Host: GitHub
- URL: https://github.com/lccodder/math-tg-bot-remake
- Owner: LCcodder
- License: mit
- Created: 2022-10-01T06:08:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-08T21:54:45.000Z (over 3 years ago)
- Last Synced: 2025-01-26T01:25:09.111Z (about 1 year ago)
- Topics: math, mongodb, nodejs, telegraf, telegram-bot, typescript
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **This is a telegram bot based on *Node.js* for solving math problems**
## *This bot can solve a bunch of different math problems. There is a huge database with formulas from a lots of subjects like physics, math and geometry.*
---
**To use this bot you need to clone the repository (and install the libraries), insert your telegram bot and database parametres in `.env` file**
---
## *How it works:*
> 1) `/search` and `/search_type` commands are used to find different formulas and filter them for selected parameters
> 2) Other commands are ysed to find area, equals, third site of triangle and such math actions
+ *Full command list you can find in pinned `.txt` file*
---
## *How to setup:*
+ *For this bot you need a running `Mongo` database cluster*
+ *Dataset architecture example: *
```JavaScript
{
formula_name: "heat capacity"
formula: "Q = cm△t\n"
properties: {
formula_type: "physics"
formula_subtype: "temp"
}
}
```
>Full dataset description you can find in `Formula.d.ts` interface
>1) Set up environmental params in `.env` file
>2) Configure database with suggested dataset below
>3) Create *Telegram* bot and insert token
>4) Install all dependences, which noted in `dependences.sh` and `dependences.bat` files
>5) Compile project and launch `MainClient.js`
* **IMPORTANT:** Check validation with `@types` and `tsconfig.json` in your project
---
## *Tech specs:*
### *(Pre-build 1.0.0)*
+ node.js `v16.17.1`
+ typescript `^4.8.4`
+ mondodb `^4.10.0`
+ telegraf `^4.10.0`
+ dotenv `^16.0.3`
---
##### Created by [*LCcodder*](https://github.com/LCcodder)