new(all): WebDav support for all bots.

This commit is contained in:
Rodrigo Rodriguez 2024-08-31 16:26:54 -03:00
parent 2ae256d036
commit 222a4f3201
9 changed files with 35666 additions and 13 deletions

View file

@ -90,18 +90,24 @@ export class GBConfigService {
case 'STORAGE_NAME':
value = null;
break;
case 'WEBDAV_USERNAME':
value = null;
break;
case 'WEBDAV_PASSWORD':
value = null;
break;
case 'CLOUD_USERNAME':
value = undefined;
break;
case 'CLOUD_PASSWORD':
value = undefined;
break;
case 'STORAGE_LIBRARY':
value = `${process.env.HOME}/gbpackages`;
break;
case 'BOT_ID':
value = 'default';
break;
case 'CLOUD_PASSWORD':
value = undefined;
break;
case 'CLOUD_SUBSCRIPTIONID':
value = undefined;
break;

View file

@ -1648,7 +1648,6 @@ export class GBMinService {
if (GBServer.globals.server.apiServer) {
GBServer.globals.server.apiServer.close(cb => {
resolve(true);
GBLogEx.info(0, 'Reloading General Bots API...');
});
} else {
resolve(true);

View file

@ -57,6 +57,17 @@
/* filter: opacity(0); Problem in recent Chrome 68+ */
}
</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>
<body style="background-color: lightgrey;">

View file

@ -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. "

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
name,value
Answer Mode,document
1 name value
2 Answer Mode document

View file

@ -47,10 +47,10 @@ Twitter Access Token,
Twitter Access Token Secret,
Twitter Consumer Key,
Twitter Consumer Key Secret,
Website, https:/github.com/GeneralBots
Website,
Welcome Article,
WhatsApp Admins,
WhatsApp Group ID,
WhatsApp Group Shortcuts,
WebDav Username,admin
WebDav Password,&y5F9$B.1*Q6
WebDav Username,
WebDav Password,
1 name value
47 Twitter Access Token Secret
48 Twitter Consumer Key
49 Twitter Consumer Key Secret
50 Website https:/github.com/GeneralBots
51 Welcome Article
52 WhatsApp Admins
53 WhatsApp Group ID
54 WhatsApp Group Shortcuts
55 WebDav Username admin
56 WebDav Password &y5F9$B.1*Q6