CodeForPoznan / codeforpoznan.pl_v3

Other
8 stars 45 forks source link

Create slackbot to automate making attendance lists #312

Open OtisRed opened 4 years ago

OtisRed commented 4 years ago

Subject of the issue:

It would be nice to automate making attendance lists which are now put by hand.

Technical solution:

  1. create a slackbot posting every week
  2. Make the slackbot monitor reactions under its post
  3. which extract slack nicks from reactions under the post
  4. and sends it to the endpoint we use for adding participants to hacknights
OtisRed commented 3 years ago

UX

  1. UX matter: yes
  2. Kind of input: learn if it makes sense
  3. Prioryty: postpone
OtisRed commented 3 years ago

Problem of saying things by not saying things https://blog.prototypr.io/ux-guide-password-reset-user-flow-bfa35a16e527

OtisRed commented 3 years ago

Initially we have opted for the first solution, second turns out to be impossible unless we use github autorization to log to the user account. Thierd option is way too futuristic for now.

arturtamborski commented 3 years ago

Some resources for the bot :) Slack introduced new api client and a framework(!) for easier bot creation, which is very neat :) Please be aware that most of the information you find in google older than 2018 is outdated for our use case (assuming we would use the new libs).

https://slack.dev/bolt-python/concepts https://api.slack.com/start/building/bolt-python https://api.slack.com/scopes/reactions:read https://api.slack.com/messaging/webhooks https://medium.com/glasswall-engineering/how-to-create-a-slack-bot-using-aws-lambda-in-1-hour-1dbc1b6f021c

:)