Skip to content

Commit f20e583

Browse files
Moved AI settings to the bot user level
1 parent dd3fb9e commit f20e583

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

electron/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const twitchLogin = async () => {
188188
config.botUsers = {};
189189
}
190190

191-
config.botUsers[twitchAuth.username] = twitchAuth;
191+
config.botUsers[twitchAuth.username] = {...twitchAuth, aiSettings: {}};
192192

193193
config.accessToken = twitchAuth.accessToken;
194194
config.refreshToken = twitchAuth.refreshToken;
@@ -208,9 +208,8 @@ const twitchLoginBotUser = async () => {
208208
config.botUsers = {};
209209
}
210210

211-
config.botUsers[twitchAuth.username] = twitchAuth;
211+
config.botUsers[twitchAuth.username] = {...twitchAuth, aiSettings: {}};
212212

213-
console.log("USER CREATED: " + JSON.stringify(config.botUsers[twitchAuth.username]));
214213
fs.writeFileSync(CONFIG_FILE, Buffer.from(JSON.stringify(config, null, 5)));
215214
} catch (e) {
216215
console.error("Twitch logon failed: " + e);

0 commit comments

Comments
 (0)