Added config option

This commit is contained in:
NDevTK
2020-06-26 19:19:51 +01:00
committed by GitHub
parent f0716e8bbb
commit beea8181a1

View File

@@ -5,6 +5,7 @@ import Utils from "./utils";
const utils = new Utils(); const utils = new Utils();
interface SBConfig { interface SBConfig {
timeWithSkips: boolean,
userID: string, userID: string,
sponsorTimes: SBMap<string, any>, sponsorTimes: SBMap<string, any>,
whitelistedChannels: string[], whitelistedChannels: string[],
@@ -123,6 +124,7 @@ var Config: SBObject = {
*/ */
configListeners: [], configListeners: [],
defaults: { defaults: {
timeWithSkips: false,
userID: null, userID: null,
sponsorTimes: new SBMap("sponsorTimes"), sponsorTimes: new SBMap("sponsorTimes"),
whitelistedChannels: [], whitelistedChannels: [],
@@ -406,4 +408,4 @@ function addDefaults() {
// Sync config // Sync config
setupConfig(); setupConfig();
export default Config; export default Config;