acmfi / acm_bot

The brand new bot for ACM
5 stars 0 forks source link

Discourse command(s) #12

Open Alfedi opened 5 years ago

Alfedi commented 5 years ago

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.

ignaciobll commented 5 years ago

I suggested a private chat notification in order to prevent notification flood on a group chat.

If we want to notify some things, we first need to identify those things. We can classify notifications in two classes: groups notification (general, unsolicited) and private notifications (subscribed, solicited). Let's enumerate them:

Now, let's identify some key components of those messages:

New post

New mention/response

New badge

What to do next?

  1. Where to find that info (on Discourse API, as cited by @Alfedi)
  2. How we (the bot) can be notified when these events happen (probable on the API again)
  3. Data model to store this info (who accepts being notified, members id, group id)
  4. Once we have all this info, Telegram API to send it to the world.

I'll be gathering every info that I found. Also, I would appreciate some comments if agree/disagree.

ignaciobll commented 5 years ago
  1. Pending...
  2. This is a good start to receive notifications https://meta.discourse.org/t/setting-up-webhooks/49045
  3. Pending...
  4. Pending...