Class: Elephrame::Bots::Watcher
- Includes:
- Reply, Streaming, TimelineWatcher
- Defined in:
- lib/elephrame/streaming/bots.rb
Overview
A bot that watches timelines or lists
Constant Summary
Constants inherited from BaseBot
Instance Attribute Summary
Attributes included from TimelineWatcher
Attributes included from Reply
Attributes included from Streaming
Attributes inherited from BaseBot
#client, #failed, #max_retries, #strip_html, #username
Instance Method Summary collapse
-
#initialize(tl, name = nil) ⇒ Elephrame::Bots::Watcher
constructor
Creates a new Watcher bot.
Methods included from TimelineWatcher
Methods included from Reply
#reply, #reply_with_mentions, #run_reply
Methods included from Streaming
Methods inherited from BaseBot
backup_method, #fetch_account_id, #fetch_list_id, #find_ancestor, #no_bot?, #post
Constructor Details
#initialize(tl, name = nil) ⇒ Elephrame::Bots::Watcher
Creates a new Watcher bot
87 88 89 90 91 92 |
# File 'lib/elephrame/streaming/bots.rb', line 87 def initialize tl, name = nil super() setup_streaming setup_watcher tl, name end |