mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
attempt fix defaultbot detection
This commit is contained in:
@@ -405,7 +405,6 @@ class Client {
|
||||
const viewerPath = findKey(nextData, viewerKeyName);
|
||||
const botNamePath = findKey(nextData, botNameKeyName);
|
||||
const defaultBotPath = findKey(nextData, defaultBotKeyName);
|
||||
console.log(`DefaultBot found at: ${defaultBotPath.join('.')}`)
|
||||
|
||||
let viewer = null;
|
||||
if (viewerPath) {
|
||||
@@ -426,6 +425,13 @@ class Client {
|
||||
//console.log(logObjectStructure(nextData, 0, 2));
|
||||
}
|
||||
|
||||
if (defaultBotPath) {
|
||||
console.log(`'${defaultBotKeyName}' key: ${defaultBotPath.join('.')}`);
|
||||
} else {
|
||||
console.log(`ERROR: '${defaultBotKeyName}' key not found.`);
|
||||
//console.log(logObjectStructure(nextData, 0, 2));
|
||||
}
|
||||
|
||||
this.formkey = extractFormKey(r.data);
|
||||
this.viewer = viewer;
|
||||
|
||||
|
Reference in New Issue
Block a user