qwtf_discord_bot 5.4.11 → 5.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/qwtf_discord_bot/qwtf_discord_bot_pug.rb +14 -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: 4b277234b785000212e913859cac63c94fc2c125bf6c2723ed5b7df6ba7419a7
|
|
4
|
+
data.tar.gz: b55f4861185865fb3b7bb8ceb19ddad26ebaef334aa02cc7e7504e0b6bf74a20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db1415cd7144dbf88b0343cabf2d05daed1fc8da377a25c2d32117d7d84be9f7cb4fdbd96d16c5084a2abf00d78d7318baaff8accd96a6723657867fdcfb7422
|
|
7
|
+
data.tar.gz: 5af029b8abd9cf20438ae815ca4e6234b23c0d2279c3884bc0d267d31e06f7a91de523b0276719a7a37e6c373d14795b39e2e5b6774d84956828490834d5fc47
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.4.
|
|
1
|
+
5.4.12
|
|
@@ -320,6 +320,13 @@ class QwtfDiscordBotPug # :nodoc:
|
|
|
320
320
|
)
|
|
321
321
|
end
|
|
322
322
|
|
|
323
|
+
if !pug.full?
|
|
324
|
+
return send_embedded_message(
|
|
325
|
+
description: "Can't report unless PUG is full",
|
|
326
|
+
channel: event.channel
|
|
327
|
+
)
|
|
328
|
+
end
|
|
329
|
+
|
|
323
330
|
unless args.any?
|
|
324
331
|
return send_embedded_message(
|
|
325
332
|
description: "Specify winning team; e.g. `!win 1`",
|
|
@@ -381,6 +388,13 @@ class QwtfDiscordBotPug # :nodoc:
|
|
|
381
388
|
)
|
|
382
389
|
end
|
|
383
390
|
|
|
391
|
+
if !pug.full?
|
|
392
|
+
return send_embedded_message(
|
|
393
|
+
description: "Can't report unless PUG is full",
|
|
394
|
+
channel: event.channel
|
|
395
|
+
)
|
|
396
|
+
end
|
|
397
|
+
|
|
384
398
|
if pug.actual_teams.count < 2
|
|
385
399
|
return send_embedded_message(
|
|
386
400
|
description: "There must be at least two teams with players to submit a result",
|