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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 164c42943de0925e50ab65b93855cd0676a9e095f3fa8433b4ae51c500a11288
4
- data.tar.gz: 520c37a37cb8f3be79d5833f80a09a6e8e49d73fb903d641986c83aef410e8ef
3
+ metadata.gz: 8db9cc936475a5e7e21340224aa39b92ff76577124d1471f87fd7f8c7c1dc47e
4
+ data.tar.gz: bd331a8c2bc1e2ea13c9d92bcae1a9941d8a573a3c35e7ea22a47f12105a1227
5
5
  SHA512:
6
- metadata.gz: c1b4888a42c4f177b829669bb6efd7df2371e9e9af06d7210b41bd6bf1212389f89abaef11ae10e65448d7f6fff993c31c3bb241edc327e0059dd792e718c1a0
7
- data.tar.gz: 6ec520577624e2d306efad46632cc81fd3ea996b4a29476ff576c476fa158fa631205d7c0556f79c0ecc175a6e9a6cc493f1a7296443ec6ab8b6183d22c8dc79
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.3)
45
- actionview (6.0.2)
46
- activesupport (= 6.0.2)
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 (6.0.2)
51
+ activesupport (7.0.3)
52
52
  concurrent-ruby (~> 1.0, >= 1.0.2)
53
- i18n (>= 0.7, < 2)
54
- minitest (~> 5.1)
55
- tzinfo (~> 1.1)
56
- zeitwerk (~> 2.2)
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.0)
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.0)
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.6)
73
+ cinch-toolbox (1.1.7)
75
74
  nokogiri (~> 1.6)
76
- clipboard (1.3.3)
77
- code (0.9.2)
75
+ clipboard (1.3.6)
76
+ code (0.9.3)
78
77
  coderay (~> 1.1)
79
- method_source (~> 0.9)
80
- coderay (1.1.2)
81
- concurrent-ruby (1.1.5)
82
- connection_pool (2.2.2)
83
- crack (0.4.3)
84
- safe_yaml (~> 1.0.0)
85
- crass (1.0.5)
86
- daemons (1.3.1)
87
- debugging (1.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.3)
94
- discourse_api (0.38.0)
95
- faraday (~> 0.9)
96
- faraday_middleware (~> 0.10)
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.4)
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.9.0)
105
- every_day_irb (2.1.0)
103
+ erubi (1.10.0)
104
+ every_day_irb (2.1.1)
106
105
  cd (~> 1.0)
107
- fancy_irb (1.2.1)
106
+ fancy_irb (1.4.3)
108
107
  paint (>= 0.9, < 3.0)
109
- unicode-display_width (~> 1.1)
110
- faraday (0.17.1)
111
- multipart-post (>= 1.2, < 3)
112
- faraday_middleware (0.13.1)
113
- faraday (>= 0.7.4, < 1.0)
114
- ffi (1.11.3)
115
- geocoder (1.5.2)
116
- gist (5.0.0)
117
- github_api (0.18.2)
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 (~> 0.8)
140
+ faraday (>= 0.8, < 2)
121
141
  hashie (~> 3.5, >= 3.5.2)
122
142
  oauth2 (~> 1.0)
123
- haml (5.1.2)
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.3)
150
+ http-cookie (1.0.5)
131
151
  domain_name (~> 0.5)
132
- httparty (0.17.1)
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.7.0)
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.2.0)
142
- reline (>= 0.0.1)
143
- irbtools (3.0.1)
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.2.1)
185
+ jwt (2.4.1)
165
186
  liner (0.2.4)
166
- loofah (2.4.0)
187
+ loofah (2.18.0)
167
188
  crass (~> 1.0.2)
168
189
  nokogiri (>= 1.5.9)
169
- mechanize (2.7.6)
170
- domain_name (~> 0.5, >= 0.5.1)
171
- http-cookie (~> 1.0)
172
- mime-types (>= 1.17.2)
173
- net-http-digest_auth (~> 1.1, >= 1.1.1)
174
- net-http-persistent (>= 2.5.2)
175
- nokogiri (~> 1.6)
176
- ntlm-http (~> 0.1, >= 0.1.1)
177
- webrobots (>= 0.0.9, < 0.2)
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.9.2)
181
- methodfinder (2.2.1)
182
- mime-types (3.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.2019.1009)
185
- mini_portile2 (2.4.0)
186
- minitest (5.13.0)
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.14.1)
211
+ multi_json (1.15.0)
189
212
  multi_xml (0.6.0)
190
- multipart-post (2.1.1)
213
+ multipart-post (2.2.3)
191
214
  net-http-digest_auth (1.4.1)
192
- net-http-persistent (3.1.0)
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.10.7)
197
- mini_portile2 (~> 2.4.0)
198
- ntlm-http (0.1.1)
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.2)
201
- faraday (>= 0.8, < 2.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.0)
207
- oga (2.15)
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.0.1)
212
- paint (2.1.1)
234
+ os (1.1.4)
235
+ paint (2.2.1)
213
236
  parslet (1.8.2)
214
- pdf-reader (2.4.0)
215
- Ascii85 (~> 1.0.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.1)
222
- rack (2.0.7)
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.0)
250
+ rails-html-sanitizer (1.4.3)
227
251
  loofah (~> 2.3)
228
252
  rake (10.5.0)
229
- recursive-open-struct (1.1.0)
230
- reline (0.0.7)
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
- rspec (3.9.0)
237
- rspec-core (~> 3.9.0)
238
- rspec-expectations (~> 3.9.0)
239
- rspec-mocks (~> 3.9.0)
240
- rspec-core (3.9.0)
241
- rspec-support (~> 3.9.0)
242
- rspec-expectations (3.9.0)
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.9.0)
245
- rspec-mocks (3.9.0)
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.9.0)
248
- rspec-support (3.9.0)
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.1)
256
- safe_yaml (1.0.5)
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.5.1)
266
- tzinfo (1.2.5)
267
- thread_safe (~> 0.1)
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.7.6)
271
- unicode-display_width (1.6.0)
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.7)
304
+ video_info (3.0.2)
278
305
  iso8601 (~> 0.9.1)
279
306
  net_http_timeout_errors (~> 0.3.0)
280
- oga (~> 2.7)
307
+ oga (~> 3.0)
308
+ webrick (1.7.0)
281
309
  webrobots (0.1.2)
282
- wirb (2.2.0)
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
- 1.17.2
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
@@ -8,4 +8,5 @@ require 'Zeta/admin/users'
8
8
  require 'Zeta/admin/autojoin'
9
9
  require 'Zeta/admin/ignore'
10
10
  require 'Zeta/admin/bot'
11
- require 'Zeta/admin/blacklister'
11
+ require 'Zeta/admin/blacklister'
12
+ require 'Zeta/admin/autovoice'
data/lib/Zeta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zeta
2
- VERSION = '2.0.7'
2
+ VERSION = '2.0.8'
3
3
  end
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.7
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: 2019-12-15 00:00:00.000000000 Z
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.0.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: []