Class: Elephrame::Bots::Periodic
- Includes:
- Scheduler
- Defined in:
- lib/elephrame/rest/bots.rb
Overview
a bot that runs commands based off of an interval or a cron string
Constant Summary
Constants inherited from BaseBot
BaseBot::FNGabLink, BaseBot::NoBotRegex
Instance Attribute Summary
Attributes included from Scheduler
Attributes inherited from BaseBot
#client, #failed, #max_retries, #strip_html, #username
Instance Method Summary collapse
-
#initialize(intv) ⇒ Elephrame::Bots::Periodic
constructor
creates a new Periodic bot.
Methods included from Scheduler
#run_scheduled, #setup_scheduler
Methods inherited from BaseBot
backup_method, #fetch_account_id, #fetch_list_id, #find_ancestor, #no_bot?, #post
Constructor Details
#initialize(intv) ⇒ Elephrame::Bots::Periodic
creates a new Periodic bot
'00 12 * * *' (every day at 12:00)
'00 00 25 12 *' (midnight on christmas)
24 25 26 27 28 |
# File 'lib/elephrame/rest/bots.rb', line 24 def initialize intv super() setup_scheduler intv end |