acmfi / acm_bot Goto Github PK
View Code? Open in Web Editor NEWThe brand new bot for ACM
The brand new bot for ACM
El bot debería tener un comando que te mande la lista de precios del armario.
Is your feature request related to a problem? Please describe.
The bot is meant to be on the ACM main group. Since there are a lot of people there everybody could be spamming bot commands and in general it could be a problem.
Describe the solution you'd like
For large commands such as /junta
or even /armario
command, the bot could send a message with an inline button that redirects to the private chat with the bot and sends you the command information.
Describe alternatives you've considered
None.
Additional context
None.
The problem
The bot sends the same document every time you ask for it.
Suggestion
Use an application env variable to store (in execution) the file id sent with ExGram.send_document( ... )
Is your feature request related to a problem? Please describe.
If discourse.acmupm.es will be operative again we are going to need a mechanism to send notifications to everyone about new post, messages...
Describe the solution you'd like
I was thinking about a very basic notification system that sends a message everytime a post or a response is made. The bot could send a message to the principal group with an URL of the post and with mentions of all the people involved. Everything can be made using the discourse API.
Describe alternatives you've considered
@ignaciobll suggest that the bot should open a private chat with the people involved in the discourse post, but that's something above my knowledge.
Additional context
None.
Is your feature request related to a problem? Please describe.
Para no tener que preguntar a nadie o tener que ir al armario a ver los precios, el bot puede los precios de lo que hay en el armario.
Describe the solution you'd like
Lo ideal sería implementar la posibilidad de ver los precios de manera inline, de tal manera que escribiendo @acmupm_bot galletas
, se hiciera una búsqueda entre los productos y mostrar una pequeña lista con los mejores resultados de esa búsqueda.
La lista podría tener un formato tipo:
producto1 0.60€
producto2 1.20€
producto3 0.40€
Además se podrá clicar en cualquiera de ellos para compartir esa información.
Si además se quiere toda la lista al poner @acmupm_bot
sin ningúna búsqueda saldrán las opciones:
Productos del armario
Al clicar en esta opción se mostrará en el chat la lista completa de los precios.
Describe alternatives you've considered
De momento solo se me ha ocurrido esto.
Additional context
Para esto estaría bien tener una base de datos para que sea mucho más sencilla la implementación. Si actualmente se guardan los precios en un excel se podría exportar a csv e introducirlos en una base de datos que consuma el bot.
Esto se puede automatizar mediante scripts también e incluso se puede añadir un comando de administrador en el bot para hacer ese volcado, aunque esto recomiendo que se plantee una vez esté implementado esta funcionalidad.
El bot debería tener un comando para señalar cual sería la próxima actividad de ACM.
Is your feature request related to a problem? Please describe.
Someone may need to talk to someone of the ACM board and he/she will have to ask in the general chat and dodge some trolls.
Describe the solution you'd like
It would be useful to have a /junta
command that shows the aliases (and the roles) of ACM UPM board, in case someone wants to ask something.
Describe alternatives you've considered
None.
Additional context
Thanks to @AshidaSRS for the idea..
Debería tener un nuevo comando que se encargara de avisar por el chat general cuando alguien escribe en el Discourse para así no tener que estar pendiente de los nuevos avisos del discourse todo el rato.
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.