rename string into clean & add settings
This commit is contained in:
parent
4d309e2e9e
commit
65e09de7e2
10 changed files with 24 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { getSetting } from '../utils/settings.js';
|
||||
|
||||
export const TriggerState = {
|
||||
untriggered: 0,
|
||||
replied: 1,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue