Skip to main content

Crontab implementation for Errbot

Project description

It is extention for plugin of Errbot to implement poller llike crontab.

Version in PyPI python versions License Requirements Status



$ pip install errcron
$ pip install git+



from errcron import CrontabMixin

class ClockTimer(CrontabMixin, BotPlugin):
    CRONTAB = [
        '@hourly .post_hourly',
        '0 8 * * * .post_morning_call @attakei'

    def activate(self):
        # some expression

    def post_hourly(self, polled_time):
        user =  self.build_identifier('#general')
        return self.send(user, 'Just {} o-clock!!'.format(polled_time.strftime('%H')))

    def post_morning_call(self, polled_time, identity):
        user =  self.build_identifier(identity)
        return self.send(user, 'Good morning!')
  1. Extend your plugin by CrontabMixin
  2. Define crontab
  3. In activate, activate crontab too
  4. Run

Latest changes

version 0.4.4

  • Fix for latest crontab-parser
  • Fix test targets in Travis-CI

version 0.4.3

  • Add python 3.6 for test target (compatible)
  • Can import as from errcron import CrontabMixin


Errbot is available as open source software and released under the GPL v3 license.

See full license file.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for errcron, version 0.4.4
Filename, size File type Python version Upload date Hashes
Filename, size errcron-0.4.4-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size errcron-0.4.4.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page