zetabot 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +136 -109
- data/lib/Zeta/admin/autovoice.rb +42 -0
- data/lib/Zeta/admin.rb +2 -1
- data/lib/Zeta/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8db9cc936475a5e7e21340224aa39b92ff76577124d1471f87fd7f8c7c1dc47e
|
4
|
+
data.tar.gz: bd331a8c2bc1e2ea13c9d92bcae1a9941d8a573a3c35e7ea22a47f12105a1227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c357cc89ea106c23fd46062583bd4b1940b0ee507baa001f7847839bdda3c938cdd069f2cd075a37d618f5d9d3cb5f1bfbd57f0c814dc67814548b15085ed1d
|
7
|
+
data.tar.gz: 75fa53a200ac74e00c32ea2042c89aac7e30d18d5cc4540eb328b8fd06e61bb001e0aa1f58c44028986eba4312b8a1b4a387f4319080d0ac036412b4238687b8
|
data/Gemfile.lock
CHANGED
@@ -41,24 +41,23 @@ PATH
|
|
41
41
|
GEM
|
42
42
|
remote: https://rubygems.org/
|
43
43
|
specs:
|
44
|
-
Ascii85 (1.0
|
45
|
-
actionview (
|
46
|
-
activesupport (=
|
44
|
+
Ascii85 (1.1.0)
|
45
|
+
actionview (7.0.3)
|
46
|
+
activesupport (= 7.0.3)
|
47
47
|
builder (~> 3.1)
|
48
48
|
erubi (~> 1.4)
|
49
49
|
rails-dom-testing (~> 2.0)
|
50
50
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
51
|
-
activesupport (
|
51
|
+
activesupport (7.0.3)
|
52
52
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
53
|
-
i18n (>=
|
54
|
-
minitest (
|
55
|
-
tzinfo (~>
|
56
|
-
|
57
|
-
addressable (2.7.0)
|
53
|
+
i18n (>= 1.6, < 2)
|
54
|
+
minitest (>= 5.1)
|
55
|
+
tzinfo (~> 2.0)
|
56
|
+
addressable (2.8.0)
|
58
57
|
public_suffix (>= 2.0.2, < 5.0)
|
59
58
|
afm (0.2.2)
|
60
59
|
ansi (1.5.0)
|
61
|
-
ast (2.4.
|
60
|
+
ast (2.4.2)
|
62
61
|
binding.repl (3.0.0)
|
63
62
|
builder (3.2.4)
|
64
63
|
cd (1.0.1)
|
@@ -66,81 +65,103 @@ GEM
|
|
66
65
|
chronic_duration (0.10.6)
|
67
66
|
numerizer (~> 0.1.1)
|
68
67
|
cinch (2.3.4)
|
69
|
-
cinch-cooldown (1.2.
|
68
|
+
cinch-cooldown (1.2.1)
|
70
69
|
cinch (~> 2)
|
71
70
|
time-lord (~> 1.0, >= 1.0.1)
|
72
71
|
cinch-quotes (0.0.4)
|
73
72
|
cinch (~> 2.0)
|
74
|
-
cinch-toolbox (1.1.
|
73
|
+
cinch-toolbox (1.1.7)
|
75
74
|
nokogiri (~> 1.6)
|
76
|
-
clipboard (1.3.
|
77
|
-
code (0.9.
|
75
|
+
clipboard (1.3.6)
|
76
|
+
code (0.9.3)
|
78
77
|
coderay (~> 1.1)
|
79
|
-
method_source (
|
80
|
-
coderay (1.1.
|
81
|
-
concurrent-ruby (1.1.
|
82
|
-
connection_pool (2.2.
|
83
|
-
crack (0.4.
|
84
|
-
|
85
|
-
crass (1.0.
|
86
|
-
daemons (1.
|
87
|
-
debugging (1.1.
|
78
|
+
method_source (>= 0.9, < 2.0)
|
79
|
+
coderay (1.1.3)
|
80
|
+
concurrent-ruby (1.1.10)
|
81
|
+
connection_pool (2.2.5)
|
82
|
+
crack (0.4.5)
|
83
|
+
rexml
|
84
|
+
crass (1.0.6)
|
85
|
+
daemons (1.4.1)
|
86
|
+
debugging (1.1.2)
|
88
87
|
binding.repl (~> 3.0)
|
89
88
|
paint (>= 0.9, < 3.0)
|
90
89
|
descendants_tracker (0.0.4)
|
91
90
|
thread_safe (~> 0.3, >= 0.3.1)
|
92
91
|
destructor (0.1.0)
|
93
|
-
diff-lcs (1.
|
94
|
-
discourse_api (0.
|
95
|
-
faraday (~> 0
|
96
|
-
faraday_middleware (~> 0
|
92
|
+
diff-lcs (1.5.0)
|
93
|
+
discourse_api (1.0.0)
|
94
|
+
faraday (~> 1.0)
|
95
|
+
faraday_middleware (~> 1.0)
|
97
96
|
rack (>= 1.6)
|
98
|
-
dnsbl-client (1.0.
|
97
|
+
dnsbl-client (1.0.6)
|
99
98
|
domain_name (0.5.20190701)
|
100
99
|
unf (>= 0.0.5, < 1.0.0)
|
101
100
|
dronebl.rb (0.1.0.0)
|
102
101
|
httparty (~> 0.13)
|
103
102
|
nokogiri (~> 1.6)
|
104
|
-
erubi (1.
|
105
|
-
every_day_irb (2.1.
|
103
|
+
erubi (1.10.0)
|
104
|
+
every_day_irb (2.1.1)
|
106
105
|
cd (~> 1.0)
|
107
|
-
fancy_irb (1.
|
106
|
+
fancy_irb (1.4.3)
|
108
107
|
paint (>= 0.9, < 3.0)
|
109
|
-
unicode-display_width (
|
110
|
-
faraday (
|
111
|
-
|
112
|
-
|
113
|
-
faraday (
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
108
|
+
unicode-display_width (>= 1.1)
|
109
|
+
faraday (1.10.0)
|
110
|
+
faraday-em_http (~> 1.0)
|
111
|
+
faraday-em_synchrony (~> 1.0)
|
112
|
+
faraday-excon (~> 1.1)
|
113
|
+
faraday-httpclient (~> 1.0)
|
114
|
+
faraday-multipart (~> 1.0)
|
115
|
+
faraday-net_http (~> 1.0)
|
116
|
+
faraday-net_http_persistent (~> 1.0)
|
117
|
+
faraday-patron (~> 1.0)
|
118
|
+
faraday-rack (~> 1.0)
|
119
|
+
faraday-retry (~> 1.0)
|
120
|
+
ruby2_keywords (>= 0.0.4)
|
121
|
+
faraday-em_http (1.0.0)
|
122
|
+
faraday-em_synchrony (1.0.0)
|
123
|
+
faraday-excon (1.1.0)
|
124
|
+
faraday-httpclient (1.0.1)
|
125
|
+
faraday-multipart (1.0.4)
|
126
|
+
multipart-post (~> 2)
|
127
|
+
faraday-net_http (1.0.1)
|
128
|
+
faraday-net_http_persistent (1.2.0)
|
129
|
+
faraday-patron (1.0.0)
|
130
|
+
faraday-rack (1.0.0)
|
131
|
+
faraday-retry (1.0.3)
|
132
|
+
faraday_middleware (1.2.0)
|
133
|
+
faraday (~> 1.0)
|
134
|
+
ffi (1.15.5)
|
135
|
+
geocoder (1.8.0)
|
136
|
+
gist (6.0.0)
|
137
|
+
github_api (0.19.0)
|
118
138
|
addressable (~> 2.4)
|
119
139
|
descendants_tracker (~> 0.0.4)
|
120
|
-
faraday (
|
140
|
+
faraday (>= 0.8, < 2)
|
121
141
|
hashie (~> 3.5, >= 3.5.2)
|
122
142
|
oauth2 (~> 1.0)
|
123
|
-
haml (5.
|
143
|
+
haml (5.2.2)
|
124
144
|
temple (>= 0.8.0)
|
125
145
|
tilt
|
126
146
|
hashery (2.1.2)
|
127
147
|
hashie (3.6.0)
|
128
148
|
hirb (0.7.3)
|
129
149
|
http-accept (1.7.0)
|
130
|
-
http-cookie (1.0.
|
150
|
+
http-cookie (1.0.5)
|
131
151
|
domain_name (~> 0.5)
|
132
|
-
httparty (0.
|
152
|
+
httparty (0.20.0)
|
133
153
|
mime-types (~> 3.0)
|
134
154
|
multi_xml (>= 0.5.2)
|
135
155
|
humanize-bytes (2.2.0)
|
136
|
-
i18n (1.
|
156
|
+
i18n (1.10.0)
|
137
157
|
concurrent-ruby (~> 1.0)
|
138
158
|
interactive_editor (0.0.11)
|
139
159
|
spoon (>= 0.0.1)
|
160
|
+
io-console (0.5.11)
|
140
161
|
ipaddress (0.8.3)
|
141
|
-
irb (1.
|
142
|
-
reline (>= 0.0
|
143
|
-
irbtools (3.0.
|
162
|
+
irb (1.4.1)
|
163
|
+
reline (>= 0.3.0)
|
164
|
+
irbtools (3.0.5)
|
144
165
|
binding.repl (~> 3.0)
|
145
166
|
clipboard (~> 1.3)
|
146
167
|
code (>= 0.9.2, < 2.0)
|
@@ -151,7 +172,7 @@ GEM
|
|
151
172
|
hirb (~> 0.7, >= 0.7.3)
|
152
173
|
interactive_editor (~> 0.0, >= 0.0.10)
|
153
174
|
irb (>= 0.9.6)
|
154
|
-
methodfinder (~> 2.2)
|
175
|
+
methodfinder (~> 2.2, >= 2.2.2)
|
155
176
|
object_shadow (~> 1.1)
|
156
177
|
ori (~> 0.1.0)
|
157
178
|
os
|
@@ -159,101 +180,107 @@ GEM
|
|
159
180
|
ruby_engine (~> 1.0)
|
160
181
|
ruby_info (~> 1.0)
|
161
182
|
ruby_version (~> 1.0)
|
162
|
-
wirb (~> 2.0)
|
183
|
+
wirb (~> 2.0, >= 2.2.1)
|
163
184
|
iso8601 (0.9.1)
|
164
|
-
jwt (2.
|
185
|
+
jwt (2.4.1)
|
165
186
|
liner (0.2.4)
|
166
|
-
loofah (2.
|
187
|
+
loofah (2.18.0)
|
167
188
|
crass (~> 1.0.2)
|
168
189
|
nokogiri (>= 1.5.9)
|
169
|
-
mechanize (2.
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
net-http-
|
175
|
-
|
176
|
-
|
177
|
-
|
190
|
+
mechanize (2.8.5)
|
191
|
+
addressable (~> 2.8)
|
192
|
+
domain_name (~> 0.5, >= 0.5.20190701)
|
193
|
+
http-cookie (~> 1.0, >= 1.0.3)
|
194
|
+
mime-types (~> 3.0)
|
195
|
+
net-http-digest_auth (~> 1.4, >= 1.4.1)
|
196
|
+
net-http-persistent (>= 2.5.2, < 5.0.dev)
|
197
|
+
nokogiri (~> 1.11, >= 1.11.2)
|
198
|
+
rubyntlm (~> 0.6, >= 0.6.3)
|
199
|
+
webrick (~> 1.7)
|
200
|
+
webrobots (~> 0.1.2)
|
178
201
|
memoizable (0.4.2)
|
179
202
|
thread_safe (~> 0.3, >= 0.3.1)
|
180
|
-
method_source (0.
|
181
|
-
methodfinder (2.2.
|
182
|
-
mime-types (3.
|
203
|
+
method_source (1.0.0)
|
204
|
+
methodfinder (2.2.4)
|
205
|
+
mime-types (3.4.1)
|
183
206
|
mime-types-data (~> 3.2015)
|
184
|
-
mime-types-data (3.
|
185
|
-
mini_portile2 (2.
|
186
|
-
minitest (5.
|
207
|
+
mime-types-data (3.2022.0105)
|
208
|
+
mini_portile2 (2.8.0)
|
209
|
+
minitest (5.15.0)
|
187
210
|
mkfifo (0.1.1)
|
188
|
-
multi_json (1.
|
211
|
+
multi_json (1.15.0)
|
189
212
|
multi_xml (0.6.0)
|
190
|
-
multipart-post (2.
|
213
|
+
multipart-post (2.2.3)
|
191
214
|
net-http-digest_auth (1.4.1)
|
192
|
-
net-http-persistent (
|
215
|
+
net-http-persistent (4.0.1)
|
193
216
|
connection_pool (~> 2.2)
|
194
217
|
net_http_timeout_errors (0.3.5)
|
195
218
|
netrc (0.11.0)
|
196
|
-
nokogiri (1.
|
197
|
-
mini_portile2 (~> 2.
|
198
|
-
|
219
|
+
nokogiri (1.13.6)
|
220
|
+
mini_portile2 (~> 2.8.0)
|
221
|
+
racc (~> 1.4)
|
199
222
|
numerizer (0.1.1)
|
200
|
-
oauth2 (1.4.
|
201
|
-
faraday (>= 0.
|
223
|
+
oauth2 (1.4.9)
|
224
|
+
faraday (>= 0.17.3, < 3.0)
|
202
225
|
jwt (>= 1.0, < 3.0)
|
203
226
|
multi_json (~> 1.3)
|
204
227
|
multi_xml (~> 0.5)
|
205
228
|
rack (>= 1.2, < 3)
|
206
|
-
object_shadow (1.1.
|
207
|
-
oga (
|
229
|
+
object_shadow (1.1.1)
|
230
|
+
oga (3.3)
|
208
231
|
ast
|
209
232
|
ruby-ll (~> 2.1)
|
210
233
|
ori (0.1.0)
|
211
|
-
os (1.
|
212
|
-
paint (2.
|
234
|
+
os (1.1.4)
|
235
|
+
paint (2.2.1)
|
213
236
|
parslet (1.8.2)
|
214
|
-
pdf-reader (2.
|
215
|
-
Ascii85 (~> 1.0
|
237
|
+
pdf-reader (2.10.0)
|
238
|
+
Ascii85 (~> 1.0)
|
216
239
|
afm (~> 0.2.1)
|
217
240
|
hashery (~> 2.0)
|
218
241
|
ruby-rc4
|
219
242
|
ttfunk
|
220
243
|
persist (1.0.0)
|
221
|
-
public_suffix (4.0.
|
222
|
-
|
244
|
+
public_suffix (4.0.7)
|
245
|
+
racc (1.6.0)
|
246
|
+
rack (2.2.3.1)
|
223
247
|
rails-dom-testing (2.0.3)
|
224
248
|
activesupport (>= 4.2.0)
|
225
249
|
nokogiri (>= 1.6)
|
226
|
-
rails-html-sanitizer (1.3
|
250
|
+
rails-html-sanitizer (1.4.3)
|
227
251
|
loofah (~> 2.3)
|
228
252
|
rake (10.5.0)
|
229
|
-
recursive-open-struct (1.1.
|
230
|
-
reline (0.
|
253
|
+
recursive-open-struct (1.1.3)
|
254
|
+
reline (0.3.1)
|
255
|
+
io-console (~> 0.5)
|
231
256
|
rest-client (2.1.0)
|
232
257
|
http-accept (>= 1.7.0, < 2.0)
|
233
258
|
http-cookie (>= 1.0.2, < 2.0)
|
234
259
|
mime-types (>= 1.16, < 4.0)
|
235
260
|
netrc (~> 0.8)
|
236
|
-
|
237
|
-
|
238
|
-
rspec-
|
239
|
-
rspec-
|
240
|
-
|
241
|
-
|
242
|
-
|
261
|
+
rexml (3.2.5)
|
262
|
+
rspec (3.11.0)
|
263
|
+
rspec-core (~> 3.11.0)
|
264
|
+
rspec-expectations (~> 3.11.0)
|
265
|
+
rspec-mocks (~> 3.11.0)
|
266
|
+
rspec-core (3.11.0)
|
267
|
+
rspec-support (~> 3.11.0)
|
268
|
+
rspec-expectations (3.11.0)
|
243
269
|
diff-lcs (>= 1.2.0, < 2.0)
|
244
|
-
rspec-support (~> 3.
|
245
|
-
rspec-mocks (3.
|
270
|
+
rspec-support (~> 3.11.0)
|
271
|
+
rspec-mocks (3.11.1)
|
246
272
|
diff-lcs (>= 1.2.0, < 2.0)
|
247
|
-
rspec-support (~> 3.
|
248
|
-
rspec-support (3.
|
273
|
+
rspec-support (~> 3.11.0)
|
274
|
+
rspec-support (3.11.0)
|
249
275
|
ruby-ll (2.1.2)
|
250
276
|
ansi
|
251
277
|
ast
|
252
278
|
ruby-rc4 (0.1.5)
|
279
|
+
ruby2_keywords (0.0.5)
|
253
280
|
ruby_engine (1.0.1)
|
254
281
|
ruby_info (1.0.1)
|
255
|
-
ruby_version (1.0.
|
256
|
-
|
282
|
+
ruby_version (1.0.2)
|
283
|
+
rubyntlm (0.6.3)
|
257
284
|
signed_multiset (0.2.1)
|
258
285
|
spoon (0.0.6)
|
259
286
|
ffi
|
@@ -262,30 +289,30 @@ GEM
|
|
262
289
|
thread_safe (0.3.6)
|
263
290
|
tilt (2.0.10)
|
264
291
|
time-lord (1.0.1)
|
265
|
-
ttfunk (1.
|
266
|
-
tzinfo (
|
267
|
-
|
292
|
+
ttfunk (1.7.0)
|
293
|
+
tzinfo (2.0.4)
|
294
|
+
concurrent-ruby (~> 1.0)
|
268
295
|
unf (0.1.4)
|
269
296
|
unf_ext
|
270
|
-
unf_ext (0.0.
|
271
|
-
unicode-display_width (1.
|
297
|
+
unf_ext (0.0.8.2)
|
298
|
+
unicode-display_width (2.1.0)
|
272
299
|
unitwise (2.2.0)
|
273
300
|
liner (~> 0.2)
|
274
301
|
memoizable (~> 0.4)
|
275
302
|
parslet (~> 1.5)
|
276
303
|
signed_multiset (~> 0.2)
|
277
|
-
video_info (2
|
304
|
+
video_info (3.0.2)
|
278
305
|
iso8601 (~> 0.9.1)
|
279
306
|
net_http_timeout_errors (~> 0.3.0)
|
280
|
-
oga (~>
|
307
|
+
oga (~> 3.0)
|
308
|
+
webrick (1.7.0)
|
281
309
|
webrobots (0.1.2)
|
282
|
-
wirb (2.2.
|
310
|
+
wirb (2.2.2)
|
283
311
|
paint (>= 0.9, < 3.0)
|
284
312
|
wolfram (0.2.1)
|
285
313
|
nokogiri (>= 1.4.3)
|
286
314
|
wolfram-alpha (0.3.1)
|
287
315
|
nokogiri
|
288
|
-
zeitwerk (2.2.2)
|
289
316
|
|
290
317
|
PLATFORMS
|
291
318
|
ruby
|
@@ -298,4 +325,4 @@ DEPENDENCIES
|
|
298
325
|
zetabot!
|
299
326
|
|
300
327
|
BUNDLED WITH
|
301
|
-
|
328
|
+
2.3.15
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Admin
|
2
|
+
class AutoVoice
|
3
|
+
include Cinch::Plugin
|
4
|
+
include Cinch::Helpers
|
5
|
+
enable_acl()
|
6
|
+
|
7
|
+
# Listeners
|
8
|
+
listen_to :join, method: :autovoice
|
9
|
+
|
10
|
+
match /autovoice (.+)/, method: :autovoice_mode
|
11
|
+
|
12
|
+
def initialize(*args)
|
13
|
+
@auto_voice_state = Array.new
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
17
|
+
def autovoice_mode(msg, mode='status')
|
18
|
+
return unless msg.user.oper?
|
19
|
+
|
20
|
+
if mode == 'on' || mode == 'true'
|
21
|
+
@auto_voice_state << msg.channel.to_s
|
22
|
+
return msg.reply "AutoVoice is now enabled!"
|
23
|
+
elsif mode == 'off' || mode == 'false'
|
24
|
+
@auto_voice_state.delete_if { _1 == msg.channel.to_s }
|
25
|
+
return msg.reply "AutoVoice is now disabled!"
|
26
|
+
end
|
27
|
+
|
28
|
+
msg.reply "AutoVoice is currently: #{@auto_voice_state.include?(msg.channel.to_s) ? 'On' : 'Off'}"
|
29
|
+
end
|
30
|
+
|
31
|
+
# Methods
|
32
|
+
def autovoice(msg)
|
33
|
+
if @auto_voice_state.include?(msg.channel.to_s) && msg.user.authed?
|
34
|
+
Channel(msg.channel).voice(msg.user)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# AutoLoad
|
42
|
+
Bot.config.plugins.plugins.push Admin::AutoVoice
|
data/lib/Zeta/admin.rb
CHANGED
data/lib/Zeta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zetabot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liothen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -556,7 +556,7 @@ dependencies:
|
|
556
556
|
- - ">="
|
557
557
|
- !ruby/object:Gem::Version
|
558
558
|
version: '0'
|
559
|
-
description:
|
559
|
+
description:
|
560
560
|
email:
|
561
561
|
- liothen@flagrun.net
|
562
562
|
executables:
|
@@ -579,6 +579,7 @@ files:
|
|
579
579
|
- lib/Zeta/access.rb
|
580
580
|
- lib/Zeta/admin.rb
|
581
581
|
- lib/Zeta/admin/autojoin.rb
|
582
|
+
- lib/Zeta/admin/autovoice.rb
|
582
583
|
- lib/Zeta/admin/blacklister.rb
|
583
584
|
- lib/Zeta/admin/bot.rb
|
584
585
|
- lib/Zeta/admin/channels.rb
|
@@ -641,7 +642,7 @@ licenses:
|
|
641
642
|
- MIT
|
642
643
|
metadata:
|
643
644
|
allowed_push_host: https://rubygems.org
|
644
|
-
post_install_message:
|
645
|
+
post_install_message:
|
645
646
|
rdoc_options: []
|
646
647
|
require_paths:
|
647
648
|
- lib
|
@@ -656,8 +657,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
656
657
|
- !ruby/object:Gem::Version
|
657
658
|
version: '0'
|
658
659
|
requirements: []
|
659
|
-
rubygems_version: 3.
|
660
|
-
signing_key:
|
660
|
+
rubygems_version: 3.1.6
|
661
|
+
signing_key:
|
661
662
|
specification_version: 4
|
662
663
|
summary: Zeta is a IRC bot written in ruby using the Cinch Framework
|
663
664
|
test_files: []
|