Class: Twitch::Bot::Adapter::Terminal
- Inherits:
-
Object
- Object
- Twitch::Bot::Adapter::Terminal
- Defined in:
- lib/twitch/bot/adapter/terminal.rb
Overview
This adapter connects the chat client to the terminal
Instance Method Summary collapse
- #connect ⇒ Object
-
#initialize(client:) ⇒ Terminal
constructor
A new instance of Terminal.
- #join_channel(_channel) ⇒ Object
- #part_channel ⇒ Object
- #read_data ⇒ Object
- #send_data(data) ⇒ Object
- #send_message(text) ⇒ Object
- #shutdown ⇒ Object
Constructor Details
#initialize(client:) ⇒ Terminal
Returns a new instance of Terminal.
8 9 10 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#connect ⇒ Object
12 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 12 def connect; end |
#join_channel(_channel) ⇒ Object
28 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 28 def join_channel(_channel); end |
#part_channel ⇒ Object
30 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 30 def part_channel; end |
#read_data ⇒ Object
16 17 18 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 16 def read_data end |
#send_data(data) ⇒ Object
24 25 26 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 24 def send_data(data) puts data end |
#send_message(text) ⇒ Object
20 21 22 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 20 def (text) send_data(text) end |
#shutdown ⇒ Object
14 |
# File 'lib/twitch/bot/adapter/terminal.rb', line 14 def shutdown; end |