qwtf_discord_bot 5.2.5 → 5.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/pug.rb +1 -1
- data/lib/qwtf_discord_bot/qwtf_discord_bot_pug.rb +2 -0
- 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: 2adca9fb3f7b4a9f7e78544e5727dd1c93ceb908c25c0fcae46532439f69ceab
|
4
|
+
data.tar.gz: 120b8d090e1ba937d6ed89c1d3b625f7b6bcb40bc1e4774ed9ab473e89a04c26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc26082fafb956166f461d6eb948cd515d8eea35b4cf586dc80b55280128263de6aa01526db469127b0730835843295022f16c6b6b1d417f3ea7711ceebb4d60
|
7
|
+
data.tar.gz: 3f13b345fc9b666927d3a9f8536b25ffd20539ae4c093e93549594a7c9a1aad0b25d530d939dc0512a2439f255fd764140ef6b8c577c1d06619a65478cd77391
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.2.
|
1
|
+
5.2.6
|
data/lib/pug.rb
CHANGED
@@ -41,6 +41,8 @@ class QwtfDiscordBotPug # :nodoc:
|
|
41
41
|
|
42
42
|
bot.command :teamsize do |event, *args|
|
43
43
|
setup_pug(event) do |e, pug|
|
44
|
+
return send_msg("Team size is #{pug.teamsize}", e.channel) unless args.any?
|
45
|
+
|
44
46
|
new_teamsize = args[0].to_i
|
45
47
|
return send_msg('Team size should be a number higher than 0', e.channel) unless new_teamsize > 0
|
46
48
|
|