twitchbot 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/twitchbot/message.rb +8 -0
- data/lib/twitchbot/version.rb +1 -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: 73ff8be2e967f4d87b57fa8a15a6ae19004f52802e3a6bd1bc0bafb8534cf0ac
|
|
4
|
+
data.tar.gz: e4153bf44b0f38959c2d2db066427c0fa0592364e197fb5873e24a5d2308959b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d168dc8c78643ce419486162319a12efd4ee10d92dbb0dc078b3612468f0e97a45fe71005d171cad60bff88659e8396cf07980f7a5920f456a717ec55e1c77a
|
|
7
|
+
data.tar.gz: 8110b32bba87f218e79cd87f3dd6e1f8298e76e1416e5e7238177c1db56482699b3debaa2ff0524f29b96f751af3fe64a6c2fb6519ea6ea24df0ddb67a24c01a
|
data/lib/twitchbot/message.rb
CHANGED
|
@@ -56,6 +56,14 @@ module Twitchbot
|
|
|
56
56
|
/badges=(?<badges>[a-zA-Z\/,0-9\-]+)/ =~ @tags
|
|
57
57
|
@user.update_badges badges || ''
|
|
58
58
|
end
|
|
59
|
+
|
|
60
|
+
# Grab broadcaster status even though twitch doesn't inject it in the tags
|
|
61
|
+
# in a whisper
|
|
62
|
+
if whisper?
|
|
63
|
+
if @user.name.downcase.eql? @handler.bot.channel.name.downcase
|
|
64
|
+
@user.update_badges 'broadcaster/1'
|
|
65
|
+
end
|
|
66
|
+
end
|
|
59
67
|
end
|
|
60
68
|
|
|
61
69
|
# Method to determine if the IRC message includes any tags from the +:twitch.tv/tags+ capability
|
data/lib/twitchbot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twitchbot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charles Ray Shisler III
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-11-
|
|
11
|
+
date: 2019-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|