@ebenos/framework
Advanced tools
Comparing version 4.0.0-alpha.24 to 4.0.0-alpha.25
@@ -26,3 +26,3 @@ "use strict"; | ||
if (action) { | ||
return action(user, message); | ||
return action(user, message.text); | ||
} | ||
@@ -29,0 +29,0 @@ if (nlp) { |
@@ -5,13 +5,13 @@ import User from '../models/User'; | ||
export declare function addAction<U extends User<any>>(module: Module<U>, action: (user: U, ...args: any[]) => Promise<any>): void; | ||
export declare function addPostbackRule<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'string' | 'object'): string | { | ||
export declare function addPostbackRule<U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'string' | 'object'): string | { | ||
type: string; | ||
}; | ||
export declare function addTextRule<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, rule: RegExp | RegExp[]): void; | ||
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'string'): string; | ||
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'object'): { | ||
export declare function addTextRule<U extends User<any>>(module: Module<U>, action: (user: U, payload?: string, ...args: any[]) => Promise<any>, rule: RegExp | RegExp[]): void; | ||
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'string'): string; | ||
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'object'): { | ||
type: string; | ||
}; | ||
export declare function createPayload<T extends Record<string, any>, U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'object', payloadData: T): { | ||
export declare function createPayload<T extends Record<string, any>, U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'object', payloadData: T): { | ||
type: string; | ||
} & T; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@ebenos/framework", | ||
"version": "4.0.0-alpha.24", | ||
"version": "4.0.0-alpha.25", | ||
"description": "A module-based NodeJS chatbot framework.", | ||
@@ -46,3 +46,3 @@ "main": "./build/index.js", | ||
], | ||
"gitHead": "7fa5f50d7720a9dea64c84fe5862b2414bdd1ff0" | ||
"gitHead": "b74eb534ca88f234bf761162214d9b55cb2b809c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105014