Class: Elephrame::Bots::Interact
- Includes:
- AllInteractions, Streaming
- Defined in:
- lib/elephrame/streaming/bots.rb
Overview
a bot that can respond to all interactions
Call on_fave, on_follow, on_reply, or on_boost with a block before calling run. Otherwise bot will do nothing.
Constant Summary
Constants inherited from BaseBot
BaseBot::FNGabLink, BaseBot::NoBotRegex
Instance Attribute Summary
Attributes included from AllInteractions
#on_boost, #on_fave, #on_follow
Attributes included from Reply
Attributes included from Streaming
Attributes inherited from BaseBot
#client, #failed, #max_retries, #strip_html, #username
Instance Method Summary collapse
-
#initialize ⇒ Interact
constructor
A new instance of Interact.
Methods included from AllInteractions
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 ⇒ Interact
Returns a new instance of Interact.
17 18 19 20 21 |
# File 'lib/elephrame/streaming/bots.rb', line 17 def initialize super() setup_streaming end |