twitch-bot 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twitch/bot/client.rb +3 -4
- data/lib/twitch/bot/version.rb +1 -1
- data/spec/twitch/bot/message/user_message_spec.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04ed5b85125452e5c58a1d4c48d308ca7d72000f09ae9768773287b242d91bf
|
4
|
+
data.tar.gz: a9251b16f1f8d67f8e3fb8f5ce8608628cb7649306adbbb60d6afa1119ced08d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b831153426b24bb9af05ec085fe567c41d169e559560394a5867e95371074319c6ed1d9ea7551d52c8f74e5e6ed5ef901334e427234f19e80a1a48a24faaac9d
|
7
|
+
data.tar.gz: 2fb72af43444bf1ec0eeb978690150da15c9b8a1527db16423da0bde6e4a98a06df2ea2bf0834563ec00da839289960cb7ba9557733e7ab3ee3bb1283c9b14d8
|
data/lib/twitch/bot/client.rb
CHANGED
@@ -100,7 +100,7 @@ module Twitch
|
|
100
100
|
connect
|
101
101
|
input_thread.join
|
102
102
|
messages_thread.join
|
103
|
-
logger.
|
103
|
+
logger.info "Client ended."
|
104
104
|
end
|
105
105
|
|
106
106
|
def join(channel)
|
@@ -185,9 +185,7 @@ module Twitch
|
|
185
185
|
def start_input_thread
|
186
186
|
@input_thread = Thread.start do
|
187
187
|
while running
|
188
|
-
|
189
|
-
logger.debug "> #{line}"
|
190
|
-
irc_message = IrcMessage.new(line)
|
188
|
+
irc_message = IrcMessage.new(read_socket)
|
191
189
|
trigger(Twitch::Bot::MessageParser.new(irc_message).message)
|
192
190
|
end
|
193
191
|
|
@@ -202,6 +200,7 @@ module Twitch
|
|
202
200
|
while line.empty?
|
203
201
|
line = socket.gets&.chomp
|
204
202
|
end
|
203
|
+
logger.debug "> #{line}"
|
205
204
|
line
|
206
205
|
end
|
207
206
|
|
data/lib/twitch/bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitch-bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jochen Lillich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|