explaination to all trigger
This commit is contained in:
parent
fe3fd9b1b6
commit
9142e440d5
6 changed files with 32 additions and 8 deletions
|
|
@ -4,6 +4,10 @@ import conj from 'conjugation-fr';
|
|||
import { toInfinitive } from "../data.js"; // check path ??
|
||||
import { cleanMessageContent } from "../utils/strings.js";
|
||||
|
||||
/*check the pronoun / subject of the question to answer properly by conjugating
|
||||
exemple : tu fais quoi ? je fais feur
|
||||
*/
|
||||
|
||||
const suffixes = [
|
||||
', mon gars',
|
||||
', mec',
|
||||
|
|
@ -13,9 +17,6 @@ const suffixes = [
|
|||
''
|
||||
];
|
||||
|
||||
// check the pronoun of the question to answer properly
|
||||
// exemple : tu fais quoi ? je fais feur
|
||||
|
||||
export default class withPronounDetector extends Detector {
|
||||
async createSpecificReply(message) {
|
||||
const reference = await message.fetchReference().catch(() => null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue