Class: Elephrame::Bots::Reply

Inherits:
BaseBot
  • Object
show all
Includes:
Reply, Streaming
Defined in:
lib/elephrame/streaming/bots.rb

Overview

a bot that only replies when mentioned

run accepts a block, but also supports use of on_reply (See Elephrame::AllInteractions for more details)

Constant Summary

Constants inherited from BaseBot

BaseBot::FNGabLink, BaseBot::NoBotRegex

Instance Attribute Summary

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 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

#initializeReply

Returns a new instance of Reply.



35
36
37
38
39
# File 'lib/elephrame/streaming/bots.rb', line 35

def initialize
  super()
  
  setup_streaming
end