qwtf_discord_bot 5.1.5 → 5.1.6
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/README.md +2 -1
- data/VERSION +1 -1
- data/lib/event_decorator.rb +4 -0
- data/lib/qwtf_discord_bot/qwtf_discord_bot_pug.rb +3 -2
- 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: be9d7e86ba5a7b1a38b2ad8f12d34295a3882e871d535f01c1d8fb1ada700129
|
4
|
+
data.tar.gz: 1fad670f56fe547f42b5f6b4a14e0769a8195080125536c64b480d29f6bf4f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e6e67d9588c6806545133f3d37c473445b594c515d9621fdd2c6b95bad20e21af356756c949cff72445533611a2205b67989f8b58ae6b61da40a2dac20a7454
|
7
|
+
data.tar.gz: c7a8dcbeadf3074650526f3c8849db414dd6690699412182e9970fbdc893f2fb13be9f1997487af5329b785d548d7e4e93f9175d31f24ed7092e2b27ab531e0b
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.1.
|
1
|
+
5.1.6
|
data/lib/event_decorator.rb
CHANGED
@@ -127,13 +127,14 @@ class QwtfDiscordBotPug # :nodoc:
|
|
127
127
|
|
128
128
|
mention = args[0]
|
129
129
|
user_id = mention[3..-2].to_i
|
130
|
+
display_name = e.display_name_for(user_id)
|
130
131
|
|
131
132
|
if !pug.joined_players.include?(user_id)
|
132
|
-
message = "#{
|
133
|
+
message = "#{display_name} isn't in the PUG"
|
133
134
|
send_and_log_message(message, e.channel)
|
134
135
|
else
|
135
136
|
pug.leave(user_id)
|
136
|
-
message = "#{
|
137
|
+
message = "#{display_name} is kicked from the PUG | #{pug.player_slots} remain"
|
137
138
|
send_and_log_message(message, e.channel)
|
138
139
|
|
139
140
|
if pug.empty?
|