kag-gather 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/kag/bot/bot.rb +11 -0
- data/lib/kag/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDI0ODBmNjhhNDY0OWFjN2Y3MTdhYTQ2NmEzMTJiY2NiMjljY2Q5NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YThhMWJkM2Q1ZTk2YWNiZWZkNmVlYzQyY2E4NzA4MWQ4OTFkYjY1ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGMwNTUwNjBhOGU5ZTkzOGEwODg4MTE3MDM1MDFhZmJiY2U0MDExODIxNjNj
|
10
|
+
Y2UwOTEyMmRjODJhNWQ3ZTE4NTRiODllMGI0OTlkYTU5NGEwN2E1ODYyYmQ4
|
11
|
+
YzYwYzZmZWQ3ZTU5NmNkMzBmYjc5NDBhYzZiOTdhMTM3M2Q3N2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzUwMzQxNThiNmI5NjdlODUxZjZlMzA4OTcxOTIyN2MwMDRiMzE2ZWYzOWRh
|
14
|
+
MThkMzNjZmNiYzQxNzg2YzBkYTM4M2NlN2FhYTA4ZjI3OTUyZTE1YWRmM2Uw
|
15
|
+
ZmJjZDdmZTZjZjkyMjZmYjZiYmUzNWRlMWQ5YzcyZTcyOTZmOTY=
|
data/lib/kag/bot/bot.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'patches'
|
2
2
|
require 'cinch'
|
3
|
+
require 'cinch/plugins/identify'
|
3
4
|
require 'kag/config'
|
4
5
|
require 'kag/data'
|
5
6
|
require 'kag/gather/plugin'
|
@@ -23,9 +24,11 @@ module KAG
|
|
23
24
|
c.port = config[:port].to_i > 0 ? config[:port] : 6667
|
24
25
|
#c.ssl = config[:ssl]
|
25
26
|
c.nick = config[:nick].to_s != "" ? config[:nick] : "KAGatherer"
|
27
|
+
c.user = config[:user].to_s != "" ? config[:user] : c.nick
|
26
28
|
c.realname = config[:realname].to_s != "" ? config[:realname] : "KAG Gatherer"
|
27
29
|
c.messages_per_second = 1
|
28
30
|
c.server_queue_size = 1
|
31
|
+
c.modes = %w(x)
|
29
32
|
c.plugins.plugins = [
|
30
33
|
Cinch::Commands::Help,
|
31
34
|
KAG::Bot::Plugin,
|
@@ -36,6 +39,14 @@ module KAG
|
|
36
39
|
KAG::Help::Plugin,
|
37
40
|
KAG::Stats::Plugin
|
38
41
|
]
|
42
|
+
if config[:auth] and config[:auth][:password]
|
43
|
+
c.plugins.plugins << Cinch::Plugins::Identify
|
44
|
+
c.plugins.options[Cinch::Plugins::Identify] = {
|
45
|
+
:username => config[:auth][:username],
|
46
|
+
:password => config[:auth][:password],
|
47
|
+
:type => :secure_quakenet,
|
48
|
+
}
|
49
|
+
end
|
39
50
|
if config[:sasl]
|
40
51
|
c.sasl.username = config[:sasl][:username]
|
41
52
|
c.sasl.password = config[:sasl][:password]
|
data/lib/kag/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kag-gather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun McCormick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cinch
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.0.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cinch-identify
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.4.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.4.1
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: json
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|