swinton / probot-ooo Goto Github PK
View Code? Open in Web Editor NEW๐ Respond with an auto-responder when you are OOO
License: ISC License
๐ Respond with an auto-responder when you are OOO
License: ISC License
In this file, the bot checks for the original comment to still exist. I'd love this to also check the dates in that comment in case the OOO was extended (or reduced).
Right now I would need to completely delete my original comment since it checks off the Comment's ID. I may want to keep my comment, but extend my date instead.
I'm stuck in a situation where I tested the bot first (away till Dec 1st) and then set it to the right away date (which was just a few days). But there seems to be no way to turn off ooobot. Even if I set /ooo away today until tomorrow
, I was hoping it would clear out by then but it does not. This is related to #7.
How does one turn off an ooo that is already in place?
The bot seems simple enough to use, but I am still unsure how to set OOO time. For example, if I comment with "/ooo 9/15 until 10/2", does the range of days include 10/2, or does it only go through 10/1? Can I substitute "until" with "through" or "to"? What other keywords are supported? Will an empty call to "/ooo" cancel the autoresponder?
Currently we expect a start and end date for OOO events. It would be great to have smart defaults for certain keywords, like tomorrow
, so you could simply write:
/ooo tomorrow
I would be nice to honor single-day OOOs without needing to specify a range.
For example, this works:
/ooo from 6/19 to 6/19
But this does not:
/ooo on 6/19
I used the same sherlockjs
parser in my Services spreadsheet-updating Action (internal to GitHub) and, when parsing such a command, it does parse out a startDate
but not an endDate
. So, basically, if you ended up in that situation, I would suggest filling in the default value of endDate
as being at "23:59:59.999Z
" on the same UTC date as startDate
.
Installed the bot on all of the repositories of this organization- https://github.com/ALPHAVIO
Commented on an issue of one of the repositories but there seems to be no reply from the OOO bot.
Comments- ALPHAVIO/WordNook#21
Is there any issue with the comment format ? Tried to do it in a couple of ways..
Hi again ๐ If someone pings multiple people who are OOO in the same comment, right now two comments are posted:
It'd be โจ if there was just one comment, and it changed to be something like:
Letting you know,
@userone
,@usertwo
&@userthree
are all out of office.
Name Return date @userone
January 2nd @usertwo
Febraury 16th @userthree
March 2nd
Would be cool to add a reason to the ooo
command, e.g. /ooo 1/1 until 1/31 for :palm_tree: vacation
.
So the bot would respond with:
`:wave: Hey @${context.payload.comment.user.login}...\n\nLetting you know, \`@${ooo.sender}\` is [currently OOO until ${moment(ooo.endDate).format("dddd, MMMM Do YYYY")}](${ooo.commentHtmlUrl}) for ${ooo.reason}. :heart:`
Rendered:
๐ Hey @stoe
Letting you know,
@swinton
is currently OOO until Wednesday, January 31st 2018 for ๐ด vacation. โค๏ธ
:wave: Hey @stoe
Letting you know, `@swinton` is [currently OOO until Wednesday, January 31st 2018](#) for :palm_tree: vacation. :heart:
๐
I noticed that if someone who is OOO @-mentions themselves, the bot will still pick it up and let them know resulting in a message:
๐ Hey @JasonEtco...
Letting you know, @JasonEtco is currently OOO until Saturday, March 24th 2018. โค๏ธ
This is obviously a pretty specific edge-case, but it'd be โจ if there was a check for the comment author === the OOO person.
I did not receive an automatic confirmation in response to ropensci/drake#102 (comment) or ropensci/drake#102 (comment). Is that because my OOO time does not begin for another couple days?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.