kag-gather 1.4.9 → 1.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/kag/bans/report.rb +1 -1
- data/lib/kag/bot/plugin.rb +10 -0
- data/lib/kag/gather/plugin.rb +8 -15
- data/lib/kag/help/book.rb +1 -1
- data/lib/kag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmI1NTU5YjI5NDI1MTRjYWQ3MTNlYmQ0NjVmNTJjOTBjYWFlYjE1Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjdjZWE0ODJkNTkxN2MzODI2ZTAxNGQ3NWExMmQzYmE1MTBjYTIxOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWQxZjAwMjk1NmVhMDQzNTEyNTdhMjM5OTRmZjJlYWU1N2IwZGQxYjk3Zjc2
|
10
|
+
ODA4YmJkZGJiOGNhNWUxZDI5MjJhYjY2N2RlMWI2MWIxNDYxMjU1MzIwZjE2
|
11
|
+
YzQ2NjU0ZmMxY2NmZTgxNjZmZDUwNzlmOTA5ZWMxMjg4N2IwMDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTc4MGYyNDViNmYyOTlmM2I3NjM5NzIyZDhkNDdkMzZlMTc2MTIzNWZiMmUw
|
14
|
+
M2JiMjIwNDI5MzVkZGYzNjhhMTFlOTIyYWQwNzk0MTVjODI0NzkyNTg3ZDNh
|
15
|
+
MDZjZjQ0OTE3ZDJkNWYzZTVmNjgwN2I2ZGUxOTZjZjI4MDQ1MzU=
|
data/lib/kag/bans/report.rb
CHANGED
data/lib/kag/bot/plugin.rb
CHANGED
@@ -51,6 +51,16 @@ module KAG
|
|
51
51
|
m.reply "Configuration reloaded."
|
52
52
|
end
|
53
53
|
end
|
54
|
+
|
55
|
+
command :version,{},
|
56
|
+
summary: "Show the version of the bot",
|
57
|
+
admin: true
|
58
|
+
def version(m)
|
59
|
+
if is_admin(m.user)
|
60
|
+
require 'kag/version'
|
61
|
+
m.reply "KAG Gather - version "+KAG::VERSION.to_s+" by splittingred - https://github.com/splittingred/kag-gather"
|
62
|
+
end
|
63
|
+
end
|
54
64
|
end
|
55
65
|
end
|
56
66
|
end
|
data/lib/kag/gather/plugin.rb
CHANGED
@@ -36,22 +36,15 @@ module KAG
|
|
36
36
|
#end
|
37
37
|
|
38
38
|
listen_to :leaving, :method => :on_leaving
|
39
|
-
def on_leaving(m,
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
sub = match.remove_player(user)
|
46
|
-
if sub
|
47
|
-
m.channel.msg sub[:msg]
|
48
|
-
end
|
49
|
-
elsif @queue.has_player?(user)
|
50
|
-
remove_user_from_queue(user)
|
51
|
-
end
|
52
|
-
else
|
53
|
-
reply m,"User #{nick} not found"
|
39
|
+
def on_leaving(m,user)
|
40
|
+
match = get_match_in(user)
|
41
|
+
if match
|
42
|
+
sub = match.remove_player(user)
|
43
|
+
if sub
|
44
|
+
m.channel.msg sub[:msg]
|
54
45
|
end
|
46
|
+
elsif @queue.has_player?(user)
|
47
|
+
remove_user_from_queue(user)
|
55
48
|
end
|
56
49
|
end
|
57
50
|
|
data/lib/kag/help/book.rb
CHANGED
data/lib/kag/version.rb
CHANGED