new(all): WebDav support for all bots.
This commit is contained in:
parent
2ae256d036
commit
222a4f3201
9 changed files with 35666 additions and 13 deletions
|
@ -90,18 +90,24 @@ export class GBConfigService {
|
||||||
case 'STORAGE_NAME':
|
case 'STORAGE_NAME':
|
||||||
value = null;
|
value = null;
|
||||||
break;
|
break;
|
||||||
|
case 'WEBDAV_USERNAME':
|
||||||
|
value = null;
|
||||||
|
break;
|
||||||
|
case 'WEBDAV_PASSWORD':
|
||||||
|
value = null;
|
||||||
|
break;
|
||||||
case 'CLOUD_USERNAME':
|
case 'CLOUD_USERNAME':
|
||||||
value = undefined;
|
value = undefined;
|
||||||
break;
|
break;
|
||||||
|
case 'CLOUD_PASSWORD':
|
||||||
|
value = undefined;
|
||||||
|
break;
|
||||||
case 'STORAGE_LIBRARY':
|
case 'STORAGE_LIBRARY':
|
||||||
value = `${process.env.HOME}/gbpackages`;
|
value = `${process.env.HOME}/gbpackages`;
|
||||||
break;
|
break;
|
||||||
case 'BOT_ID':
|
case 'BOT_ID':
|
||||||
value = 'default';
|
value = 'default';
|
||||||
break;
|
break;
|
||||||
case 'CLOUD_PASSWORD':
|
|
||||||
value = undefined;
|
|
||||||
break;
|
|
||||||
case 'CLOUD_SUBSCRIPTIONID':
|
case 'CLOUD_SUBSCRIPTIONID':
|
||||||
value = undefined;
|
value = undefined;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1648,7 +1648,6 @@ export class GBMinService {
|
||||||
if (GBServer.globals.server.apiServer) {
|
if (GBServer.globals.server.apiServer) {
|
||||||
GBServer.globals.server.apiServer.close(cb => {
|
GBServer.globals.server.apiServer.close(cb => {
|
||||||
resolve(true);
|
resolve(true);
|
||||||
GBLogEx.info(0, 'Reloading General Bots API...');
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
resolve(true);
|
resolve(true);
|
||||||
|
|
|
@ -57,6 +57,17 @@
|
||||||
/* filter: opacity(0); Problem in recent Chrome 68+ */
|
/* filter: opacity(0); Problem in recent Chrome 68+ */
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// Focus the input field after rendering
|
||||||
|
setTimeout(() => {
|
||||||
|
const input = document.querySelector('.webchat-input');
|
||||||
|
if (input) {
|
||||||
|
input.focus();
|
||||||
|
}
|
||||||
|
}, 3000); // Adjust timing as needed
|
||||||
|
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="background-color: lightgrey;">
|
<body style="background-color: lightgrey;">
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
TALK "Qual o número do processo? "
|
|
||||||
HEAR processo
|
|
||||||
text = GET "processo.pdf"
|
|
||||||
text = "Com base neste documento, responda as dúvidas da pessoa: \n\n" + text
|
|
||||||
SET CONTEXT text
|
|
||||||
TALK "Processo ${processo} carregado. Pode me perguntar qualquer coisa do processo ou me peça um resumo da forma que você precisar. "
|
|
BIN
templates/ai-search.gbai/ai-search.gbkb/docs/BH7_UkEngSoft_A.pdf
Normal file
BIN
templates/ai-search.gbai/ai-search.gbkb/docs/BH7_UkEngSoft_A.pdf
Normal file
Binary file not shown.
35641
templates/ai-search.gbai/ai-search.gbkb/docs/BHL7SFD_UsaEngUsr_A.pdf
Normal file
35641
templates/ai-search.gbai/ai-search.gbkb/docs/BHL7SFD_UsaEngUsr_A.pdf
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
2
templates/ai-search.gbai/ai-search.gbot/config.csv
Normal file
2
templates/ai-search.gbai/ai-search.gbot/config.csv
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
name,value
|
||||||
|
Answer Mode,document
|
|
|
@ -47,10 +47,10 @@ Twitter Access Token,
|
||||||
Twitter Access Token Secret,
|
Twitter Access Token Secret,
|
||||||
Twitter Consumer Key,
|
Twitter Consumer Key,
|
||||||
Twitter Consumer Key Secret,
|
Twitter Consumer Key Secret,
|
||||||
Website, https:/github.com/GeneralBots
|
Website,
|
||||||
Welcome Article,
|
Welcome Article,
|
||||||
WhatsApp Admins,
|
WhatsApp Admins,
|
||||||
WhatsApp Group ID,
|
WhatsApp Group ID,
|
||||||
WhatsApp Group Shortcuts,
|
WhatsApp Group Shortcuts,
|
||||||
WebDav Username,admin
|
WebDav Username,
|
||||||
WebDav Password,&y5F9$B.1*Q6
|
WebDav Password,
|
|
Loading…
Add table
Reference in a new issue