Some stats about me...
...plus private repositories that I am working on ๐
An Italian Telegram Bot in Python to retrieve participants for the organization of a football game.
Home Page: https://t.me/PartitelleBot
License: GNU General Public License v3.0
Currently, on pull request, the destination branch is redeployed whereas it is the source branch that should be deployed
When reaching the target number, a new handler is added to the queue to notify participants if everybody has paid. Currently this mechanism is not working.
Let people start a new game, reach the target number: the reminder should arrive two hours after the date and the time of the match, but no alert is arriving
Currently, both the application and the db are hosted on Heroku.
After the last announcement where Heroku declares to stop offering free tier plans from November 28th, it is needed to migrate PartitelleBot hosting and its database to a new platform.
These are the options currently considered:
When starting this project, the idea was to keep the code simple in a unique main.py
file.
Given the many possibilities of this project, a lot of business logic has been added and today the maintenance of the code is of course getting harder and harder.
This implies that a refactor is needed: the main file has to be reduced with the minimal logic concerning the startup of the bot, its handlers registrations plus the new events listening.
All of the remaining logic can be organized in separate folders respecting the Separation of Concerns.
An example of possible folders:
queries/
: for all the queries that interact with the dbhandlers/
: with all the behaviours that must be triggered by users messages (MessageHandler
)commands/
: for the behaviours that must be triggered by telegram commands (CommandHandler
)utils/
: any support method used in the codeCurrently, I am using this GitHub Action which just establishes a connection with Render and deploys a new instance.
There are two problems:
If you add, propose or remove yourself and delete your message before the bot retrieves your username, it crashes
See above
Currently, no tests have been written, but they should be added in order to make the software more robust at changes
Wrong default date computation - normally it should compute the first available wednesday on the calendar
By starting a new match right after midnight
Since this computation is based on the current timestamp at the moment of starting a new match, this is a problem probably related to the shifted timezone (the bug occurred in Italy)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.