Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler #55

Open
NanoSector opened this issue Jan 4, 2015 · 3 comments
Open

Scheduler #55

NanoSector opened this issue Jan 4, 2015 · 3 comments

Comments

@NanoSector
Copy link
Contributor

Perhaps it would be nice if functions could be executed on a certain interval. E.g. get the latest Github commits every hour and display them. Or clean up logs every day.

The principle would be the same as the Listener structure, except it's triggered in a different way.

I don't have ideas how a scheduler in PHP would work, so if this is agreed on that's something to work out.

@TimTims
Copy link
Collaborator

TimTims commented Jan 4, 2015

I'll take a look when I have some time, shouldn't be too hard

@oliveratgithub
Copy link

+1 I could really need something like this for my implementation of the IRC-Bot ;)

@NanoSector
Copy link
Contributor Author

Okay. You can just hook into the main loop. We could use something similar to Listeners, the new log system makes use of this.

Do the modules themselves need to do the actual interval work, or can we make the bot handle the intervals themselves?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants