twitchbot 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d0c016d500046220ef061dc024c9a98f201c59cc89e9536f09752b3f82df330
4
- data.tar.gz: c1228859476211eaf4f8d4b4ac099fd56e21c181474c3a557a68b3daf6790c79
3
+ metadata.gz: 73ff8be2e967f4d87b57fa8a15a6ae19004f52802e3a6bd1bc0bafb8534cf0ac
4
+ data.tar.gz: e4153bf44b0f38959c2d2db066427c0fa0592364e197fb5873e24a5d2308959b
5
5
  SHA512:
6
- metadata.gz: 7f7cbee9b6ed3575acc0e9d77b0dbb40c426e6529f9cb829c41bea583793c00d085e26fc399f72c284bb61dea7a166f17be1ca39acff8cca1baaf3745a781010
7
- data.tar.gz: a93d6c30bc1d1630b96cf1a92bcbd34d79f5432a868306d08ab9c9e17779496f746bdf01e90783aeccd3eeaef4fc11e545fdcf215629609448c77ce7dd744219
6
+ metadata.gz: 1d168dc8c78643ce419486162319a12efd4ee10d92dbb0dc078b3612468f0e97a45fe71005d171cad60bff88659e8396cf07980f7a5920f456a717ec55e1c77a
7
+ data.tar.gz: 8110b32bba87f218e79cd87f3dd6e1f8298e76e1416e5e7238177c1db56482699b3debaa2ff0524f29b96f751af3fe64a6c2fb6519ea6ea24df0ddb67a24c01a
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Twitchbot
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
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.3
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-27 00:00:00.000000000 Z
11
+ date: 2019-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler