Skip to content

Implement timers #5

@pietroalbini

Description

@pietroalbini

Timers are a way to execute tasks repeatedly, at specified intervals. You can use them to send automatically messages to your users, clean up things, and other things. Timers will be executed directly by the workers of the runner.

@botogram.pass_bot
@bot.timer(600)
def an_hour_passed(bot):
    user = 12345  # Your user ID
    bot.send(user, "BONG")
  • Implement basic support, not in the runner (a method which tells what to execute)
  • Implement timers in the runner
  • Document the whole thing

This issue tracks the progress of this feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions