Class: Elephrame::Bots::Interact

Inherits:
BaseBot
  • Object
show all
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

#on_reply

Attributes included from Streaming

#streamer

Attributes inherited from BaseBot

#client, #failed, #max_retries, #strip_html, #username

Instance Method Summary collapse

Methods included from AllInteractions

#run_interact

Methods included from Reply

#reply, #reply_with_mentions, #run_reply

Methods included from Streaming

#setup_streaming

Methods inherited from BaseBot

backup_method, #fetch_account_id, #fetch_list_id, #find_ancestor, #no_bot?, #post

Constructor Details

#initializeInteract

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