mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge 265590b168
into d2c3ecf2f8
This commit is contained in:
commit
6ba922e8a0
@ -631,7 +631,7 @@ export class BotService {
|
|||||||
'No global fallback block defined, sending a message ...',
|
'No global fallback block defined, sending a message ...',
|
||||||
err,
|
err,
|
||||||
);
|
);
|
||||||
const globalFallbackBlock = {
|
const globalFallbackBlock: BlockFull = {
|
||||||
id: 'global-fallback',
|
id: 'global-fallback',
|
||||||
name: 'Global Fallback',
|
name: 'Global Fallback',
|
||||||
message: settings.chatbot_settings.fallback_message,
|
message: settings.chatbot_settings.fallback_message,
|
||||||
@ -645,7 +645,12 @@ export class BotService {
|
|||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
attachedBlock: null,
|
attachedBlock: null,
|
||||||
} as any as BlockFull;
|
trigger_labels: [],
|
||||||
|
nextBlocks: [],
|
||||||
|
category: null,
|
||||||
|
outcomes: [],
|
||||||
|
trigger_channels: [],
|
||||||
|
};
|
||||||
|
|
||||||
const envelope = await this.blockService.processMessage(
|
const envelope = await this.blockService.processMessage(
|
||||||
globalFallbackBlock,
|
globalFallbackBlock,
|
||||||
|
Loading…
Reference in New Issue
Block a user