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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27e4374d157a5f3cad0f5c1cc58ffb1e9fc0b9f6ca9b89391509635260bc460a
4
- data.tar.gz: 2775f0952e46afb2af7dbff0a72b388e34f343ed896b3d909ca0b9d069f76ab4
3
+ metadata.gz: 2adca9fb3f7b4a9f7e78544e5727dd1c93ceb908c25c0fcae46532439f69ceab
4
+ data.tar.gz: 120b8d090e1ba937d6ed89c1d3b625f7b6bcb40bc1e4774ed9ab473e89a04c26
5
5
  SHA512:
6
- metadata.gz: 6cf2acfe24299674b69051e0d28ce628cea334840910b5bbd083d73e10d91cdf2d7c96312371ffed448424b769abb86c77a63de05b4a23136d05e92398bf2ff1
7
- data.tar.gz: 1a5830ef4f29e3c331d5534a84837e8d3e29bccf016e478e439aa8727836fe957d20f4865265264aa69116110f9e7ba7cf322869f6738aff5ef365f4d860137d
6
+ metadata.gz: dc26082fafb956166f461d6eb948cd515d8eea35b4cf586dc80b55280128263de6aa01526db469127b0730835843295022f16c6b6b1d417f3ea7711ceebb4d60
7
+ data.tar.gz: 3f13b345fc9b666927d3a9f8536b25ffd20539ae4c093e93549594a7c9a1aad0b25d530d939dc0512a2439f255fd764140ef6b8c577c1d06619a65478cd77391
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.5
1
+ 5.2.6
data/lib/pug.rb CHANGED
@@ -137,7 +137,7 @@ class Pug
137
137
  end
138
138
 
139
139
  def teamsize_key
140
- [pug_key, 'teamsize'].join(':')
140
+ [channel_key, 'teamsize'].join(':')
141
141
  end
142
142
 
143
143
  def redis
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qwtf_discord_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.5
4
+ version: 5.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Johnson