fix bbcode fallback

This commit is contained in:
Robin Appelman 2020-12-29 21:23:05 +01:00
commit afcf0383e5
3 changed files with 5 additions and 5 deletions

5
package-lock.json generated
View file

@ -3106,8 +3106,9 @@
"integrity": "sha512-d+tjnr3wwDkbrKFxjYZ0uK4CSF09oJwCmlGH8SdOlTDkbtBPuNhPKY0XzZxQVltZF6/JkEYj+uz+kBr6UrY7BQ=="
},
"steam-user": {
"version": "github:icewind1991/node-steam-user#60c6728fdf06d728f3a44ab03e106fc3fb096fb4",
"from": "github:icewind1991/node-steam-user#60c6728",
"version": "4.19.0",
"resolved": "https://registry.npmjs.org/steam-user/-/steam-user-4.19.0.tgz",
"integrity": "sha512-NeSeI4o4AKklvXLZBB/vePagh+wXJJ1iohosQIP5YUwktAKn29J/O9D6WCC9ewAaS5ZqQ4GuVm2PemrSKy8LBQ==",
"requires": {
"@bbob/parser": "^2.2.0",
"@doctormckay/stdlib": "^1.11.1",

View file

@ -18,7 +18,7 @@
"js-yaml": "^3.14.1",
"mx-puppet-bridge": "0.1.0-1",
"node-steam-user": "0.0.3",
"steam-user": "github:icewind1991/node-steam-user#60c6728",
"steam-user": "4.19.0",
"steamcommunity": "3.42.0",
"steamid": "1.1.3",
"stream-buffers": "^3.0.2",

View file

@ -5,7 +5,6 @@ import UPNG from "@pdf-lib/upng";
const GIFEncoder = require("gif-encoder");
import {WritableStreamBuffer} from 'stream-buffers';
import {Util} from "mx-puppet-bridge";
import * as SteamID from "steamid";
function isBBCode(field: BBCodeField): field is BBCodeNode {
return field['tag'] !== undefined;
@ -84,7 +83,7 @@ async function formatBBCode(steam: Steam, puppetId: number, node: BBCodeNode, me
body: `You were invited to play ${game.appinfo.common.name}`
};
} else {
return {kind: "text", body: `[${node.tag}]`};
return {kind: "text", body: message.message_no_bbcode};
}
}