chore: remove unused image assets and update API URL in configuration
|
@ -7,7 +7,7 @@
|
|||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "https://gb.pragmatismo.com.br/api",
|
||||
"url": "https://generalbots.online/api",
|
||||
"description": "General Bots Online"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -65,8 +65,7 @@ export class WelcomeDialog extends IGBDialog {
|
|||
async step => {
|
||||
if (
|
||||
GBServer.globals.entryPointDialog !== null &&
|
||||
min.instance.botId === GBConfigService.get('BOT_ID') &&
|
||||
step.context.activity.channelId === 'webchat'
|
||||
min.instance.botId === GBConfigService.get('BOT_ID')
|
||||
) {
|
||||
return step.replaceDialog(GBServer.globals.entryPointDialog);
|
||||
}
|
||||
|
|
|
@ -258,7 +258,8 @@ export class GBDeployer implements IGBDeployer {
|
|||
|
||||
// Makes available bot to the channels and .gbui interfaces.
|
||||
|
||||
await GBServer.globals.minService.mountBot(instance);
|
||||
const min = await GBServer.globals.minService.mountBot(instance);
|
||||
GBServer.globals.minInstances.push(min);
|
||||
|
||||
// Creates remaining objects on the cloud and updates instance information.
|
||||
|
||||
|
|
|
@ -1119,10 +1119,10 @@ export class GBMinService {
|
|||
step.context.activity.locale = 'pt-BR';
|
||||
const sec = new SecService();
|
||||
let member = context.activity.recipient;
|
||||
|
||||
|
||||
if (context.activity.type === 'conversationUpdate') {
|
||||
if (context.activity.membersAdded && context.activity.membersAdded.length > 0 &&
|
||||
context.activity.membersAdded[0].id === context.activity.recipient.id) {
|
||||
context.activity.membersAdded[0].id === context.activity.recipient.id) {
|
||||
GBLogEx.info(min, `Bot added to conversation: ${member.name}`);
|
||||
|
||||
return;
|
||||
|
@ -1209,12 +1209,18 @@ export class GBMinService {
|
|||
await sec.updateConversationReferenceById(userId, conversationReference);
|
||||
|
||||
if (step.context.activity.channelId !== 'msteams') {
|
||||
|
||||
|
||||
const service = new KBService(min.core.sequelize);
|
||||
const data = await service.getFaqBySubjectArray(min.instance.instanceId, 'faq', undefined);
|
||||
await min.conversationalService.sendEvent(min, step, 'play', {
|
||||
playerType: 'bullet',
|
||||
data: data.slice(0, 10)
|
||||
});
|
||||
if (data.length > 0) {
|
||||
await min.conversationalService.sendEvent(min, step, 'play', {
|
||||
playerType: 'bullet',
|
||||
data: data.slice(0, 10)
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1278,12 +1284,8 @@ export class GBMinService {
|
|||
|
||||
if (context.activity.type === 'installationUpdate') {
|
||||
GBLogEx.info(min, `Bot installed on Teams.`);
|
||||
} else if (context.activity.type === 'conversationUpdate' &&
|
||||
context.activity.membersAdded.length > 0) {
|
||||
// Check if a bot or a human participant is being added to the conversation.
|
||||
|
||||
const member = context.activity.membersAdded[0];
|
||||
|
||||
} else if (context.activity.type === 'conversationUpdate' ){
|
||||
|
||||
// Calls onNewSession event on each .gbapp package.
|
||||
|
||||
await CollectionUtil.asyncForEach(appPackages, async e => {
|
||||
|
|
BIN
packages/default.gbui/public/images/generalbots-transparent.png
Normal file
After Width: | Height: | Size: 58 KiB |
|
@ -13,9 +13,9 @@ export class NewUserDialog extends IGBDialog {
|
|||
waterfall: [
|
||||
async step => {
|
||||
await step.context.sendActivity('Please choose your plan:');
|
||||
await step.context.sendActivity('1. Free - $0/month (basic features)');
|
||||
await step.context.sendActivity('2. Personal - $50/month (more features)');
|
||||
await step.context.sendActivity('3. Professional - $150/month (advanced features)');
|
||||
await step.context.sendActivity('1 Free - $0/month (basic features)');
|
||||
await step.context.sendActivity('2 Personal - $50/month (more features)');
|
||||
await step.context.sendActivity('3 Professional - $150/month (advanced features)');
|
||||
return await step.prompt('textPrompt', 'Enter 1, 2 or 3 to select your plan:');
|
||||
},
|
||||
async step => {
|
||||
|
|
|
@ -10,7 +10,7 @@ export const Messages = {
|
|||
validation_enter_valid_botname: 'Please enter a valid Bot Name.',
|
||||
validation_enter_valid_voucher: 'Please enter a valid voucher code.',
|
||||
welcome:
|
||||
"Welcome and let's create your Bot. Also visit: https://gb.pragmatismo.com.br/privacy.html to learn more about our privacy policy.",
|
||||
"Welcome and let's create your Bot. Also visit: https://pragmatismo.com.br/privacy and https://pragmatismo.com.br/terms to learn more about our privacy policy and terms of use.",
|
||||
whats_botname: "What's the Bot name?",
|
||||
thanks_payment: 'Thanks for choosing paying for General Bots.',
|
||||
boleto_mail: 'Boleto will be e-mailed to you.'
|
||||
|
|
|
@ -163,7 +163,16 @@ screen and (min-width: 420px) and (max-width: 1000px) {
|
|||
|
||||
/* Player */
|
||||
.player {
|
||||
background-color: var(--color-player-background);
|
||||
background-color: white;;
|
||||
background-image: url('/themes/default.gbtheme/images/generalbots-2018.ai.svg');
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 90% 90%;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
|
||||
box-shadow: 0 4px 15px rgba(var(--color-shadow), 0.3);
|
||||
border-radius: 0.75rem;
|
||||
border: 7px solid var(--color-border);
|
||||
|
|
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 958 B |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 247 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 1.7 KiB |