scienza / scienziati_bot Goto Github PK
View Code? Open in Web Editor NEWpython bot
python bot
Some messages (like the empty list one) are still in English
We should move all the strings to a "resources" file
Or a "strings.resource" file
Just comment with file names in case
its probably gonna take a while
saves a message from the group to get it later on
theorical usage:
/save - in reply to a message
It will then compare in /savedmessages in a paginated mode
{bot text message}
[saved message 1]
[saved message 2]
[close] [next]
Get a user bio via command instead of inline query
Also, inline query has a cache, so the result is not always correct
The bot should send a message containing the stack trace before dying
Add configuration file and/or arguments
Passes the configs (like the admin list, bot token etc...) from env. variable (for docker), argument or configuration file.
Need to choose the config file format.
Poposes:
Forwarding to channel - Takes a comment and forwards to an hardcoded channel the message and a link to the message replied to
A closed list shoud be implemented.
In such list people can only be added by administrators.
An example would be a "admin" list, invoked to require the attention of the administrators.
A subcategory should be joind by an individual
Once that someone calls the parent category, all the subcategories should be called
A check needs to be done, to not call the same list twice...
Duplicate shall be removed
Acqually, the code quality sucks from every prospective
makes the bot stateful, requires a change in the DB structure
Usecase:
saves the bot's biography message in DB
if user doesn't reply to it, aborst new bio action
Telegram includes the possibility to get a user's locale.
We should translate the strings in english to allow a greater audience, maybe
Requires #22 first
The bot should send a message when a user enters the group, saying welcome and inviting the user to subscribe to some lists
Print logs about the actions the bot takes
The strings of the bot should be taken from the database.
A new table should be made.
A discussion about the table's structure should be made.
The table should provide a message both in english and in italian.
example:
ID | Key | Locale | Value |
---|---|---|---|
uint | welcome_message | it_IT | Ciao..... |
The bot replies to online query, it should be avoided.
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.