mirror of
https://github.com/icewind1991/mx-puppet-steam.git
synced 2026-06-03 17:44:09 +02:00
fix bbcode fallback
This commit is contained in:
parent
18d411e324
commit
afcf0383e5
3 changed files with 5 additions and 5 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
|
@ -3106,8 +3106,9 @@
|
||||||
"integrity": "sha512-d+tjnr3wwDkbrKFxjYZ0uK4CSF09oJwCmlGH8SdOlTDkbtBPuNhPKY0XzZxQVltZF6/JkEYj+uz+kBr6UrY7BQ=="
|
"integrity": "sha512-d+tjnr3wwDkbrKFxjYZ0uK4CSF09oJwCmlGH8SdOlTDkbtBPuNhPKY0XzZxQVltZF6/JkEYj+uz+kBr6UrY7BQ=="
|
||||||
},
|
},
|
||||||
"steam-user": {
|
"steam-user": {
|
||||||
"version": "github:icewind1991/node-steam-user#60c6728fdf06d728f3a44ab03e106fc3fb096fb4",
|
"version": "4.19.0",
|
||||||
"from": "github:icewind1991/node-steam-user#60c6728",
|
"resolved": "https://registry.npmjs.org/steam-user/-/steam-user-4.19.0.tgz",
|
||||||
|
"integrity": "sha512-NeSeI4o4AKklvXLZBB/vePagh+wXJJ1iohosQIP5YUwktAKn29J/O9D6WCC9ewAaS5ZqQ4GuVm2PemrSKy8LBQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@bbob/parser": "^2.2.0",
|
"@bbob/parser": "^2.2.0",
|
||||||
"@doctormckay/stdlib": "^1.11.1",
|
"@doctormckay/stdlib": "^1.11.1",
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
"js-yaml": "^3.14.1",
|
"js-yaml": "^3.14.1",
|
||||||
"mx-puppet-bridge": "0.1.0-1",
|
"mx-puppet-bridge": "0.1.0-1",
|
||||||
"node-steam-user": "0.0.3",
|
"node-steam-user": "0.0.3",
|
||||||
"steam-user": "github:icewind1991/node-steam-user#60c6728",
|
"steam-user": "4.19.0",
|
||||||
"steamcommunity": "3.42.0",
|
"steamcommunity": "3.42.0",
|
||||||
"steamid": "1.1.3",
|
"steamid": "1.1.3",
|
||||||
"stream-buffers": "^3.0.2",
|
"stream-buffers": "^3.0.2",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import UPNG from "@pdf-lib/upng";
|
||||||
const GIFEncoder = require("gif-encoder");
|
const GIFEncoder = require("gif-encoder");
|
||||||
import {WritableStreamBuffer} from 'stream-buffers';
|
import {WritableStreamBuffer} from 'stream-buffers';
|
||||||
import {Util} from "mx-puppet-bridge";
|
import {Util} from "mx-puppet-bridge";
|
||||||
import * as SteamID from "steamid";
|
|
||||||
|
|
||||||
function isBBCode(field: BBCodeField): field is BBCodeNode {
|
function isBBCode(field: BBCodeField): field is BBCodeNode {
|
||||||
return field['tag'] !== undefined;
|
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}`
|
body: `You were invited to play ${game.appinfo.common.name}`
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {kind: "text", body: `[${node.tag}]`};
|
return {kind: "text", body: message.message_no_bbcode};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue