Skip to content

Commit 73dbfc0

Browse files
authored
Merge pull request #3519 from crowbartools/v5
5.66.6 Release
2 parents 30d3b08 + a5448c8 commit 73dbfc0

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/bump-version-on-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Bump dev version on release
33
on:
44
release:
55
types: [released]
6+
workflow_dispatch:
67

78
jobs:
89
bumpversion:
@@ -13,6 +14,7 @@ jobs:
1314
uses: actions/checkout@v5
1415
with:
1516
ref: v5
17+
token: ${{ secrets.ZUNDER_TOKEN }}
1618

1719
- name: Setup Nodejs
1820
uses: actions/setup-node@v5

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebotv5",
3-
"version": "5.66.5",
3+
"version": "5.66.6",
44
"description": "Powerful all-in-one bot for Twitch streamers.",
55
"main": "build/main.js",
66
"scripts": {

src/backend/pronouns/pronoun-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ class FirebotPronounManager {
5151
}
5252
}
5353

54-
async getUserPronouns(username: string, fallback: string = "they/them"): Promise<UserPronoun | undefined> {
54+
async getUserPronouns(username: string, fallback: string = undefined): Promise<UserPronoun | undefined> {
5555
if (!!username?.length) {
56-
const cachedPronouns = this._userPronounCache.get<UserPronoun>(username);
56+
const cachedPronouns = this._userPronounCache.get<UserPronoun>(username);
5757

5858
if (cachedPronouns) {
5959
return cachedPronouns;
@@ -87,7 +87,7 @@ class FirebotPronounManager {
8787
: undefined;
8888
};
8989

90-
async getUserFriendlyPronounString(username: string, fallback: string = "they/them", type: "subject" | "object" | "both" = "both") {
90+
async getUserFriendlyPronounString(username: string, fallback: string = undefined, type: "subject" | "object" | "both" = "both") {
9191
const pronouns = await this.getUserPronouns(username, fallback);
9292

9393
if (pronouns) {

src/backend/variables/builtin/user/pronouns.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,18 @@ const model : ReplaceVariable = {
4343
}
4444

4545
const fallbackParts = (fallback ?? "").split("/");
46+
let fallbackPart = fallback;
4647
let type: "subject" | "object" | "both";
4748

4849
switch (pronounNumber) {
4950
case 1:
5051
type = "subject";
51-
fallback = fallbackParts[0];
52+
fallbackPart = fallbackParts[0];
5253
break;
5354

5455
case 2:
5556
type = "object";
56-
fallback = fallbackParts[1] ?? fallbackParts[0];
57+
fallbackPart = fallbackParts[1] ?? fallbackParts[0];
5758
break;
5859

5960
default:
@@ -65,7 +66,7 @@ const model : ReplaceVariable = {
6566

6667
return !!pronoun?.length
6768
? pronoun
68-
: fallback;
69+
: fallbackPart;
6970
}
7071
};
7172
export default model;

0 commit comments

Comments
 (0)