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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5bfd247ff3e811ab845a1cef86f043b93f54a6f30769885547d0ba1601c15ef
4
- data.tar.gz: 72aebecdfaa233cd62e4d36b25c474a319dae5a1fa12d8ea8711536f23cf9549
3
+ metadata.gz: b7785ca7ed0ab47cdae89946225b60fe94c4e5ef21e8df14a1855ed70c262f9e
4
+ data.tar.gz: fbc91574a3557232b40236f750e4c6ad2e7e130f15e3176030ec18cfd519c776
5
5
  SHA512:
6
- metadata.gz: 89c358f811c6c0d17b31fb26e1a8d6234bf170f82bd5a820da5d8474052a42594f1adeafcd6fa387488147559370533a10d73bf50526bdfedb5b948325f78f7d
7
- data.tar.gz: e2eb01bcd75ff2ab9251452c6cfac97b381d1199d5fddc5a146ee451def5e56747b4528e2977fd15e2d3d732a63cac03a1dcaa38a37cecaa6a75758075bdf770
6
+ metadata.gz: 8ba026861ed819cbf511bf92f15781d88558788e4617c0a9e8e6af939907d3d1cde267ff1ad3e61f0f660e9e1c50b7f1d90b03299583c6a14037a23d5617df0f
7
+ data.tar.gz: 710d552cea8daf99b052e842db5120a5e399667d3a7af4391441ea410029d90ab3a316a5d67af93a9f9ffec6195ad05f59b3eb35c07b9a7dfad34eb7a73dba9b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.4.10
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.10
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-10-31 00:00:00.000000000 Z
11
+ date: 2020-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: discordrb