matsukaz / hubot-schedule Goto Github PK
View Code? Open in Web Editor NEWA hubot script to schedule a message in both cron-style and datetime-based format pattern
License: MIT License
A hubot script to schedule a message in both cron-style and datetime-based format pattern
License: MIT License
Hi all!
Where hubot-schedule store data of schedule tasks?
When i docker-compose down i loose my schedule tasks(
How fit it?
Thanks for the awesome plugin!
I was wondering what timezone does cron follow? Is it the timezone of the server hubot is running on? or UTC?
It would be cool to be able tot set a timezone with an env var or something :)
Currently, hubot-schedule does support timezone in datetime pattern.
Followings are the result which I run in my local machine that the timezone is set to JST.
Hubot> hubot schedule add "2015-10-16 10:00" Let's release this script!
1632: Schedule created
Hubot> hubot schedule add "2015-10-16 10:00 +00:00" Let's release this script! (with timezone)
1756: Schedule created
Hubot> hubot schedule list
1632: [ Fri Oct 16 2015 10:00:00 GMT+0900 (JST) ] #Shell Let's release this script!
1756: [ Fri Oct 16 2015 19:00:00 GMT+0900 (JST) ] #Shell Let's release this script! (with timezone)
But the cron pattern doesn't support setting timezone yet.
I'm thinking about supporting timezone settings in 2 ways.
env.HUBOT_SCHEDULE_TIMEZONE = JST
This will change the timezone from server time to specified timezone.
Like datetime pattern, setting timezone each time in cron pattern.
Hubot> hubot schedule add "0 10 * * 1-5" hubot image me coffee
5321: Schedule created
Hubot> hubot schedule add "0 10 * * 1-5" "+00:00" hubot image me coffee (with timezone)
5548: Schedule created
Hubot> hubot schedule list
5321: [ 0 10 * * 1-5 ] #Shell hubot image me coffee
5548: [ 0 10 * * 1-5 ] +00:00 #Shell hubot image me coffee (with timezone)
I'm quite busy now, so it may take a while to handle this issue.
Slack OS X app auto-convert quotes to UTF8 quotes as default action.
You need to uncheck Enable spellcheck on your messages
for workaround, but it might be nice idea to support both quotes and UTF8 quotes.
Currently, schedule list is sorted by job id.
Change this to due date (except cron jobs).
Currently, scheduling multiline message is not supported.
I think multiline message is sometimes useful.
For example, like this
hubot schedule add "2016-05-11 10:25" MEETING will start in 5 minutes.
Location: Meeting room 155
Attendees: @Sato, @Tanaka, ...
Note: **Do NOT forget to bring the text.**
multiline message can be achieved like following.
https://github.com/notok/hubot-schedule/tree/support_multiline
If you'd like to make it an option, see this.
https://github.com/notok/hubot-schedule/tree/support_multiline_optional
Please tell me if you want a PR.
Greetings,
I'm using hubot with hubot-slack version 4.5.4. I attempted to upgrade by bot's dependency on hubot-schedule from 0.5.1 to 0.6.1, but during testing, none of the scheduled events show up with @hubot schedule list
.
I downgraded hubot-schedule back to 0.5.1 and things seem to work again.
This is what (some) of the data in the hubot:storage
key in redis looks like:
{
"_private": {
"hubot_schedule": {
"1564": ["0 0 * * *", {
"room": "C1A2BCD3E",
"id": "U0FGHI12J",
"team_id": "T0ABCD1EF",
"name": "ian.ward"
}, " test message!"]
}
}
}
when you create a room specified schedule and restarts hubot, room becomed #undefined .
According to the document, we need to fix the code in order to handle room name instead of room identifier when using hubot-slack v4.
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.