https://github.com/yeetooq/pivaldi_telegram_bot
An unofficial bot for the Pivaldi restaurant that provides easy access to the menu, order placement, and current promotions. Plus, enjoy entertainment features like games, cryptocurrency rates, jokes, weather updates, and more!
https://github.com/yeetooq/pivaldi_telegram_bot
aiocache aiogram aiohttp aiosqlite beautifulsoup4 geopy numpy requests sqlalchemy
Last synced: about 1 year ago
JSON representation
An unofficial bot for the Pivaldi restaurant that provides easy access to the menu, order placement, and current promotions. Plus, enjoy entertainment features like games, cryptocurrency rates, jokes, weather updates, and more!
- Host: GitHub
- URL: https://github.com/yeetooq/pivaldi_telegram_bot
- Owner: Yeetooq
- Created: 2024-11-10T23:28:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-11T22:33:29.000Z (over 1 year ago)
- Last Synced: 2025-02-10T10:35:30.005Z (over 1 year ago)
- Topics: aiocache, aiogram, aiohttp, aiosqlite, beautifulsoup4, geopy, numpy, requests, sqlalchemy
- Language: Python
- Homepage: https://t.me/pivaldi1_bot
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pivaldi Telegram Bot 
## A brief background π
Initially, the project was conceived as a chat-bot for the [Pivaldi restaurant](https://pivaldi.ru/), since my groupmates and I really like to go there after couples and in our free time π». Since the restaurant is actively growing and developing π, and the existing bot of the restaurant is frankly bad π
, I thought I would make a good bot and contact them for further cooperation.
The bot was made for a couple of months β³,and along the way I tested every little thing for an element of vulnerability. Then I tried many times to contact the managers of the restaurant , with their other departments π, but all attempts were in vain π.
As a result, I didn't come up with anything better than just making a bot - a combined solyanka from all the interesting ideas that just come to mind π‘π))) And how to put the project on github.
## Installation instructions π οΈ
```
# Clone the repo
git clone https://github.com/Yeetooq/Pivaldi_Telegram_Bot.git
# Enter the project folder
cd Pivaldi_Telegram_Bot
# Install dependencies
pip install -r requirements.txt
```
---
Next, in the ``` config.py ``` we change the values to our ownβ¬οΈ

---
* In the file handlers.py we change the ``` chat_id ``` to our own

---
* Insert your ``` provider_token ```

---
**Launching the bot π**
```
python main.py
```
## Description of functions π§
**Π‘ommands:**
- ```/start```
Launches the bot, writes the user to the database, and also issues a button with a transition to booking a place in the restaurant.
- ```/registration```
Registers a user in the bot, can be used to access functions, but for me it's just an additional entry in the database and that's it.
- ```/catalog```
Sends the menu of the restaurant.
- ```/pay```
Allows the user to pay for their order (currently a test one).
- ```/weather```
Provides information about the current weather in the places where the restaurant is open, so that the visitor can find out about precipitation in advance and exclude unforeseen circumstances.
- ```/help```
Communication with the developer on technical issues related to the work of the bot.
- ```/help_pro```
Communication with the restaurant on service issues related to the restaurant or service.
- ```/website```
Redirects the user to the official Pivaldi website.
- ```/game```
Starts a game where the user has to guess the number in one attempt.
- ```/statistics```
I have provided a Win Rate system in the bot to make it more interesting to play and see your luck. Shows the statistics of the user's games in the game "Guess the number from 1 time".
- ```/anekdot```
Sends a random joke to the user.
- ```/secret```
My experience in the field of crypts, I just tested the codes of people from Tiktok, YouTube, etc. I also thought of interesting functions on my own.
## Database π’
For the project, I used the SQLite 3 database, as it is best suited for a small amount of data. The database is created automatically when the code is first run. The most convenient way to manage a database is to use SQLiteStudio.

## + vibeβοΈοΈβοΈοΈ
