intuit / benten

Chatbot Development Framework (with Slack integration for Jira and Jenkins)
MIT License
135 stars 57 forks source link

Implement new ScheduledAction function similar to ActionHandler #19

Open DivakarUngatla opened 5 years ago

DivakarUngatla commented 5 years ago

Implement a ScheduledAction similar to ActionHandler.

While ActionHandler is triggered by a conversation from the chatbot ScheduledAction will be trigged by a cron expression provided to it. For example when a class is annotated with @ScheduleAction(), it would be invoked as specified by the cron expression.

tarungulati1988 commented 5 years ago

@DivakarUngatla I'd like to take a stab at this. My understanding is that i need to implement an annotation that wraps the @Scheduled annotation of spring along with the same implementation for ActionHandler

DivakarUngatla commented 5 years ago

@tarungulati1988 Yes you are right. ActionHandlers help handle a conversation from slack. The intent of ActionScheduler would be to trigger Actions on a timely basis rather than from a slack bot/chat bot.