Skip to content

Commit

Permalink
Merge pull request #91 from esamarathon/therun-boolean
Browse files Browse the repository at this point in the history
allow therun.gg to be turned off in the config
  • Loading branch information
zoton2 authored Dec 8, 2023
2 parents 5c4cdb1 + ed843b4 commit 85d9bb5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
16 changes: 15 additions & 1 deletion configschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,19 @@
"enabled",
"apiUrl"
]
},
"therungg": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true
}
},
"required": [
"enabled"
]
}
},
"required": [
Expand All @@ -729,6 +742,7 @@
"offsite",
"server",
"discord",
"streamlabsCharity"
"streamlabsCharity",
"therungg"
]
}
2 changes: 1 addition & 1 deletion src/extension/therungg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ function connect(): void {
});
}

if (nodecg().bundleConfig.event.thisEvent === 1) {
if (nodecg().bundleConfig.event.thisEvent === 1 && nodecg().bundleConfig.therungg.enabled) {
connect();
}
3 changes: 3 additions & 0 deletions src/types/schemas/configschema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export interface Configschema {
enabled: boolean;
apiUrl: string;
};
therungg: {
enabled: boolean;
};
}
export interface BidwarBias {
bidId: number;
Expand Down

0 comments on commit 85d9bb5

Please sign in to comment.