qwtf_discord_bot 5.4.10 → 5.4.11
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 +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7785ca7ed0ab47cdae89946225b60fe94c4e5ef21e8df14a1855ed70c262f9e
|
4
|
+
data.tar.gz: fbc91574a3557232b40236f750e4c6ad2e7e130f15e3176030ec18cfd519c776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba026861ed819cbf511bf92f15781d88558788e4617c0a9e8e6af939907d3d1cde267ff1ad3e61f0f660e9e1c50b7f1d90b03299583c6a14037a23d5617df0f
|
7
|
+
data.tar.gz: 710d552cea8daf99b052e842db5120a5e399667d3a7af4391441ea410029d90ab3a316a5d67af93a9f9ffec6195ad05f59b3eb35c07b9a7dfad34eb7a73dba9b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.4.
|
1
|
+
5.4.11
|
@@ -352,7 +352,7 @@ class QwtfDiscordBotPug # :nodoc:
|
|
352
352
|
teams.merge({ name => { players: players, result: result } })
|
353
353
|
end
|
354
354
|
|
355
|
-
post_results(
|
355
|
+
id = post_results(
|
356
356
|
{
|
357
357
|
match: {
|
358
358
|
map: pug.game_map,
|
@@ -363,10 +363,10 @@ class QwtfDiscordBotPug # :nodoc:
|
|
363
363
|
}
|
364
364
|
}
|
365
365
|
}.to_json
|
366
|
-
)
|
366
|
+
).body
|
367
367
|
|
368
368
|
send_embedded_message(
|
369
|
-
description: "#{TEAM_NAMES[winning_team_no]} wins. [Ratings](http://ratings.fortressone.org)",
|
369
|
+
description: "#{TEAM_NAMES[winning_team_no]} wins game ##{id}. [Ratings](http://ratings.fortressone.org)",
|
370
370
|
channel: e.channel
|
371
371
|
)
|
372
372
|
end
|
@@ -396,7 +396,7 @@ class QwtfDiscordBotPug # :nodoc:
|
|
396
396
|
teams.merge({ name => { players: players, result: 0 } })
|
397
397
|
end
|
398
398
|
|
399
|
-
post_results(
|
399
|
+
id = post_results(
|
400
400
|
{
|
401
401
|
match: {
|
402
402
|
map: pug.game_map,
|
@@ -407,10 +407,10 @@ class QwtfDiscordBotPug # :nodoc:
|
|
407
407
|
}
|
408
408
|
}
|
409
409
|
}.to_json
|
410
|
-
)
|
410
|
+
).body
|
411
411
|
|
412
412
|
send_embedded_message(
|
413
|
-
description: "Match drawn. [Ratings](http://ratings.fortressone.org)",
|
413
|
+
description: "Match ##{id} drawn. [Ratings](http://ratings.fortressone.org)",
|
414
414
|
channel: e.channel
|
415
415
|
)
|
416
416
|
end
|
@@ -628,8 +628,8 @@ class QwtfDiscordBotPug # :nodoc:
|
|
628
628
|
|
629
629
|
def status(pug:, event:, message_obj: nil)
|
630
630
|
footer = [
|
631
|
-
pug.game_map,
|
632
|
-
"#{pug.player_slots} joined"
|
631
|
+
pug.game_map || "No map selected",
|
632
|
+
"#{pug.player_slots} joined",
|
633
633
|
].compact.join(MSG_SNIPPET_DELIMITER)
|
634
634
|
|
635
635
|
send_embedded_message(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qwtf_discord_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheldon Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: discordrb
|