Initially, the project was conceived as a chat-bot for the Pivaldi restaurant, 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.
# 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_idto our own
- Insert your
provider_token
Launching the bot 🚀
python main.py
Сommands:
-
/startLaunches the bot, writes the user to the database, and also issues a button with a transition to booking a place in the restaurant.
-
/registrationRegisters 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.
-
/catalogSends the menu of the restaurant.
-
/payAllows the user to pay for their order (currently a test one).
-
/weatherProvides 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.
-
/helpCommunication with the developer on technical issues related to the work of the bot.
-
/help_proCommunication with the restaurant on service issues related to the restaurant or service.
-
/websiteRedirects the user to the official Pivaldi website.
-
/gameStarts a game where the user has to guess the number in one attempt.
-
/statisticsI 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".
-
/anekdotSends a random joke to the user.
-
/secretMy 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.
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.



