twitch_chatter 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twitch_chatter/bot.rb +2 -0
- data/lib/twitch_chatter/models/message.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13a1b1aa40ce8a4bf039e642e6e8f57c5f3a7b23e8e626bdc959828d9230c467
|
4
|
+
data.tar.gz: d5bd2dde71a133d4d0ebbe8affb73af0329285686d15918949137ea022d4bc12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c66ee50f1572f03216b483ea7fa438ddfc498570bacda7ffabc50980fde4884259c6ba8660670d8aba35a9a55423b88ac4a6a44fb600fc36172499547f57177
|
7
|
+
data.tar.gz: 1586180e0ca61c74ee5b42c52ef5afe80f9ab962eb77646298b175e1747233bbb7c14a622e82fa91e3f7b2375aec2efa1f2f4288e28ab2d38f8792255a66d4cd
|
data/lib/twitch_chatter/bot.rb
CHANGED
@@ -56,6 +56,12 @@ module Twitch
|
|
56
56
|
|
57
57
|
LINK = %r{(https?://[^\s]+)}
|
58
58
|
# @return [Array<String>] List of links mentioned in the message
|
59
|
+
# @example
|
60
|
+
# bot.join(:twitchgaming) do |message|
|
61
|
+
# if message.links.any?
|
62
|
+
# puts "Links: #{message.links.join(", ")}"
|
63
|
+
# end
|
64
|
+
# end
|
59
65
|
def links
|
60
66
|
return @links if @links
|
61
67
|
|