fix(basic.gblib): Startup duplicated messages removed.
This commit is contained in:
parent
f62e68f522
commit
fcc8ce5a8b
2 changed files with 7 additions and 22 deletions
|
@ -265,24 +265,6 @@ export class SystemKeywords {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Finds a value or multi-value results in a tabular file.
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* rows = FIND "file.xlsx", "A2=active" WHEN NOT FOUND TALK ""
|
|
||||||
* i = 1
|
|
||||||
* do while i < ubound(row)
|
|
||||||
* row = rows[i]
|
|
||||||
* send sms to "+" + row.mobile, "Hello " + row.namee + "! "
|
|
||||||
* loop
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public async findWithExit(file: string, talk, ...args): Promise<any> {
|
|
||||||
this.find(file, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds a value or multi-value results in a tabular file.
|
* Finds a value or multi-value results in a tabular file.
|
||||||
*
|
*
|
||||||
|
@ -354,7 +336,7 @@ export class SystemKeywords {
|
||||||
|
|
||||||
// Filter results action.
|
// Filter results action.
|
||||||
|
|
||||||
if (result && result.toLowerCase() === value.toLowerCase()) {
|
if (result && result.toLowerCase().trim() === value.toLowerCase().trim()) {
|
||||||
let row = {};
|
let row = {};
|
||||||
const xlRow = results.text[foundIndex];
|
const xlRow = results.text[foundIndex];
|
||||||
for (let colIndex = 0; colIndex < xlRow.length; colIndex++) {
|
for (let colIndex = 0; colIndex < xlRow.length; colIndex++) {
|
||||||
|
|
|
@ -817,8 +817,11 @@ export class GBMinService {
|
||||||
GBLog.info(`User>: text:${context.activity.text} (type: ${context.activity.type}, name: ${context.activity.name}, channelId: ${context.activity.channelId}, value: ${context.activity.value})`);
|
GBLog.info(`User>: text:${context.activity.text} (type: ${context.activity.type}, name: ${context.activity.name}, channelId: ${context.activity.channelId}, value: ${context.activity.value})`);
|
||||||
|
|
||||||
// Answer to specific BOT Framework event conversationUpdate to auto start dialogs.
|
// Answer to specific BOT Framework event conversationUpdate to auto start dialogs.
|
||||||
|
// Skips if the bot is talking.
|
||||||
|
|
||||||
if (context.activity.type === 'conversationUpdate' && context.activity.membersAdded.length > 0) {
|
if (context.activity.type === 'conversationUpdate' &&
|
||||||
|
context.activity.membersAdded.length > 0 &&
|
||||||
|
context.activity.membersAdded[0].id.indexOf(min.botId) == -1) {
|
||||||
|
|
||||||
// Check if a bot or a human participant is being added to the conversation.
|
// Check if a bot or a human participant is being added to the conversation.
|
||||||
|
|
||||||
|
@ -1111,7 +1114,7 @@ export class GBMinService {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
step.context.activity['text'] = text;
|
step.context.activity['text'] = text;
|
||||||
step.context.activity['originalText']= originalText;
|
step.context.activity['originalText'] = originalText;
|
||||||
|
|
||||||
GBLog.info(`Final text ready for NLP/Search/.gbapp: ${text}.`);
|
GBLog.info(`Final text ready for NLP/Search/.gbapp: ${text}.`);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue