Git Product home page Git Product logo

scienziati_bot's People

Contributors

andreaidini avatar pandry avatar

Watchers

 avatar  avatar  avatar  avatar

scienziati_bot's Issues

String to a resources files

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

Save for later

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]

TODO List

  • Forwarding to channel - Takes a comment and forwards to an hardcoded channel the message and a link to the message replied to
  • Save referred message- makes the bot stateful, requires a change in the DB structure
  • Print logs about the actions the bot takes
  • Save for later - saves a message from the group to get it later on

Add configuration file and arguments

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:

  • JSON
  • TOML
  • YAML
  • INI

Forwarding to channel

Forwarding to channel - Takes a comment and forwards to an hardcoded channel the message and a link to the message replied to

Closed lists

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.

Create sub-category

A subcategory should be joind by an individual
Once that someone calls the parent category, all the subcategories should be called

Avoid list repetition

A check needs to be done, to not call the same list twice...
Duplicate shall be removed

Save referred message

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

Translate messages strings

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

Message on user enter the group

The bot should send a message when a user enters the group, saying welcome and inviting the user to subscribe to some lists

Strings from database

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.....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.