twitch-bot 5.0.4 → 5.0.5

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: 55efafd3be859a555199d458dc121cb0443abbb8dbe1d959427400a98b4cace8
4
- data.tar.gz: a249684d91df3240acd1e0aa8278050df4da198177cc11212b0c44c612d3d80c
3
+ metadata.gz: 8a9cd13d5b108b20673a4c971d882ca32538ed59cec9b53bbe96e810c114f72c
4
+ data.tar.gz: 10bf6db842e60d29b8e55ecb907110b31d01d19e625729caedb446ed7f947c83
5
5
  SHA512:
6
- metadata.gz: 06bbeb7d511828bcaf046eb207f4995708f4b663cac42bd1f0e137ee6b0f0f1afc818d83f20dd185c40c37babb3d2d9b3c3dd7ddca9b538cfbd95182fb596ced
7
- data.tar.gz: 96682183d25a717a54fc44e8f020e1c2a94ad35033d904104044636bc4b3249125ba336a0403ade2a1f4a3949c206641d9d98c9440f0f6e17068fab87c1617d1
6
+ metadata.gz: 9f8b1e3f3c9685a624845f45c9da18e81081f2d471ef917f280f715741345c61dce68b9af4941e7d808a950af85027afc651da384adbffa291ea39c5a763611c
7
+ data.tar.gz: 8ec7e264de9418e546ee1f885dc196f7d35541fe0b93da957928937f4030f30f5fad3534d512c7afffb4f63479a6067b4a50ce0e7302ef0e1e91efa2e928be75
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog Twitch::Bot
2
2
 
3
+ ## v5.0.5
4
+
5
+ - [FIX] Catch missing channel object.
6
+
3
7
  ## v5.0.4
4
8
 
5
9
  - [FIX] Handle `nil` values from Redis.
@@ -181,7 +181,7 @@ module Twitch
181
181
  end
182
182
 
183
183
  def max_messages_count
184
- if channel.moderators.include?(config.setting("botname"))
184
+ if channel&.moderators.include?(config.setting("botname"))
185
185
  MODERATOR_MESSAGES_COUNT
186
186
  else
187
187
  USER_MESSAGES_COUNT
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Twitch
4
4
  module Bot
5
- VERSION = "5.0.4"
5
+ VERSION = "5.0.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitch-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.4
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jochen Lillich