rename string into clean & add settings

This commit is contained in:
Lou 2025-11-25 18:27:54 +01:00
parent 4d309e2e9e
commit 65e09de7e2
10 changed files with 24 additions and 10 deletions

View file

@ -1,5 +1,5 @@
import detector from "./detector.js";
import { cleanMessageContent } from "../utils/strings.js";
import { cleanMessageContent } from "../utils/clean.js";
/*check the regex for "quoi"
trigger if it's at the end of the sentence (tu fais quoi)

View file

@ -1,3 +1,5 @@
import { getSetting } from '../utils/settings.js';
export const TriggerState = {
untriggered: 0,
replied: 1,

View file

@ -1,5 +1,5 @@
import detector from "./detector.js";
import { cleanMessageContent } from "../utils/strings.js";
import { cleanMessageContent } from "../utils/clean.js";
/*check if someone reply to a "quoi" with a "feur" or "quoifeur"
send praise

View file

@ -1,5 +1,5 @@
import detector from "./detector.js";
import { cleanMessageContent } from "../utils/strings.js";
import { cleanMessageContent } from "../utils/clean.js";
//check if the bot is pinged by someone

View file

@ -1,5 +1,5 @@
import detector from "./detector.js";
import { cleanMessageContent } from "../utils/strings.js";
import { cleanMessageContent } from "../utils/clean.js";
/*check if someone reply to a "quoi" with a "quoicoubeh" or "coubeh"
send roasts

View file

@ -1,5 +1,5 @@
import detector from "./detector.js";
import { cleanMessageContent } from "../utils/strings.js";
import { cleanMessageContent } from "../utils/clean.js";
const suffixes = [
", je crois",

View file

@ -2,7 +2,7 @@ import detector from "./detector.js";
import compromise from 'fr-compromise';
import conj from 'conjugation-fr';
import { toInfinitive } from "../data/index.js";
import { cleanMessageContent } from "../utils/strings.js";
import { cleanMessageContent } from "../utils/clean.js";
/*check the pronoun / subject of the question to answer properly by conjugating
exemple : tu fais quoi ? je fais feur