Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discourse command(s) #12

Open
Alfedi opened this issue May 13, 2019 · 2 comments
Open

Discourse command(s) #12

Alfedi opened this issue May 13, 2019 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Alfedi
Copy link
Contributor

Alfedi commented May 13, 2019

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.

@Alfedi Alfedi added the help wanted Extra attention is needed label May 13, 2019
@ignaciobll
Copy link

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:

  • New post (Group notification and private notification)
  • New mention/response (Private notification)
  • New badge (Private notification, maybe with exceptions to be determined)

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

New post

  • Post Title
  • Post URL
  • Publisher? (To be discussed)

New mention/response

  • Post Title
  • Post URL/Message URL
  • Who mentioned/responded
  • To whom

New badge

  • Badge Title
  • Badge description
  • Awarded

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants