steamutils 1.2.38 → 1.2.39
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.
- package/SteamClient.js +2 -0
- package/package.json +1 -1
package/SteamClient.js
CHANGED
|
@@ -1131,6 +1131,7 @@ function SteamClient({
|
|
|
1131
1131
|
const personas = await getPersonas([steamId])
|
|
1132
1132
|
const player_name = personas.find(p => p.id == steamId)?.player_name || ''
|
|
1133
1133
|
const invite = [`Invited you to play a game!`, `Đã mời bạn chơi một trò chơi!`].includes(data.message_no_bbcode || data.message)
|
|
1134
|
+
const emotion = (data.message_no_bbcode || '').split(' ').find(m => m.startsWith(':') && m.endsWith(':'))
|
|
1134
1135
|
|
|
1135
1136
|
callEvent(events.friendMessage, {
|
|
1136
1137
|
player_name,
|
|
@@ -1139,6 +1140,7 @@ function SteamClient({
|
|
|
1139
1140
|
steamId,
|
|
1140
1141
|
timestamp,
|
|
1141
1142
|
from_limited_account: data.from_limited_account,
|
|
1143
|
+
emotion,
|
|
1142
1144
|
})
|
|
1143
1145
|
|
|
1144
1146
|
});
|