NCEAS / awards-bot

Award management bot for Arctic Data Center management
6 stars 8 forks source link

Notify of correspondences via email and Slack #29

Closed dmullen17 closed 5 years ago

dmullen17 commented 5 years ago

This particular code likely won't be added to this repository, but I'm creating this issue so I don't forget. Set up a bot similar to the submissions bot that notifies the members of #awardsbot on correspondences.

mbjones commented 5 years ago

Given that the submissions bot is already interacting with RT, I think it would make the most sense to modify it and have it check the additional RT queue, rather than setting up a separate bot.

jagoldstein commented 5 years ago

But if possible, we definitely would prefer to have these notifications about replies to award fulfillment emails segregated from notifications about updates, submissions, and other emails to support@arcticdata.io which come to the #arcticbot channel in Slack.

mbjones commented 5 years ago

Yeah, the bot could send to different places. But only one bot is needed to sort through the incoming RT queues.

dmullen17 commented 5 years ago

Sounds good to me

dmullen17 commented 5 years ago

Starting to work on this now. I'm not sure it makes sense for the submissions bot to check the arcticAwards queue. The awards bot also interacts with RT by creating tickets - so it shouldn't be difficult for it to check for correspondences.

The downside is the awards bot runs once every 24 hours while the submissions bot runs once every 5 minutes.

dmullen17 commented 5 years ago

Discussed this on the ADC call. Modifying the submissions-bot to check the additional queue is actually fairly difficult given how the functions are written (accessing system variables rather than using arguments). We came to a consensus that keeping the code separate and releasing a minor update (1.1.0) of the awards bot that checks the RT queue makes sense.

jagoldstein commented 5 years ago

In addition to notifying us in Slack, these messages should also come to our nceas.ucsb.edu email addresses.

jagoldstein commented 5 years ago

Thomas set us up to receive emails, so we are closing this issue for now.