twitch-bot 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/twitch/bot.rb +3 -0
- data/lib/twitch/bot/adapter/irc.rb +1 -0
- data/lib/twitch/bot/client.rb +8 -8
- data/lib/twitch/bot/default_handlers.rb +4 -0
- data/lib/twitch/bot/version.rb +1 -1
- 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: 55f8f1fa119d4344d036c5644cc8544ab4b0f9b9bac3d2d5dad21ccf157f4bed
|
4
|
+
data.tar.gz: d0df1fc16260d45e0187377e3aa7574dad0a85fe57c907b648e943c3c5d9303a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a966f66085b1767a136e11947c316f9ece94893658b8dda98a1e519aadc7d2e720b9bd0dba904e3ee070041f799231ade30be3a78a33d275370dd426fba4cc8
|
7
|
+
data.tar.gz: f7340c7b36d5e2cf6f3e84a64d898013fe0c519361cffc6f6ad8eeacbd8b5c369f539ddfdebea90dabf034eaf648b32026805df27cca02538ae5eafbbd89357f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog Twitch::Bot
|
2
2
|
|
3
|
+
## v2.1.1
|
4
|
+
|
5
|
+
* [FIXED] Fix a few bugs missed by not running tests. We need CI...
|
6
|
+
|
7
|
+
## v2.1.0
|
8
|
+
|
9
|
+
* [NEW] Local development mode
|
10
|
+
* [CHANGED] Substantial refactoring introducing protocol Adapter classes and a central Logger class
|
11
|
+
|
3
12
|
## v2.0.0
|
4
13
|
|
5
14
|
* [BREAKING] The standard text message class is now named
|
data/lib/twitch/bot.rb
CHANGED
data/lib/twitch/bot/client.rb
CHANGED
@@ -78,6 +78,14 @@ module Twitch
|
|
78
78
|
messages_queue << message if messages_queue.last != message
|
79
79
|
end
|
80
80
|
|
81
|
+
def add_moderator(user)
|
82
|
+
channel.add_moderator(user)
|
83
|
+
end
|
84
|
+
|
85
|
+
def remove_moderator(user)
|
86
|
+
channel.remove_moderator(user)
|
87
|
+
end
|
88
|
+
|
81
89
|
def stop
|
82
90
|
dispatch StopEvent.new
|
83
91
|
stop_event_loop
|
@@ -152,14 +160,6 @@ module Twitch
|
|
152
160
|
ENV["BOT_MODE"] == "development"
|
153
161
|
end
|
154
162
|
|
155
|
-
def add_moderator(user)
|
156
|
-
channel.add_moderator(user)
|
157
|
-
end
|
158
|
-
|
159
|
-
def remove_moderator(user)
|
160
|
-
channel.remove_moderator(user)
|
161
|
-
end
|
162
|
-
|
163
163
|
def execute_initialize_block(block)
|
164
164
|
if block.arity == 1
|
165
165
|
block.call self
|
data/lib/twitch/bot/version.rb
CHANGED