rename detector

This commit is contained in:
Lou 2025-11-20 21:56:50 +01:00
parent 17a67aaefa
commit 04f43b188d
7 changed files with 13 additions and 13 deletions

View file

@ -1,4 +1,4 @@
import Detector from "./Detector.js";
import detector from "./detector.js";
import compromise from 'fr-compromise';
import conj from 'conjugation-fr';
import { toInfinitive } from "../data/index.js";
@ -15,7 +15,7 @@ const suffixes = [
'', '', ''
];
export default class withPronounDetector extends Detector {
export default class withPronounDetector extends detector {
async createSpecificReply(message) {
const reference = await message.fetchReference().catch(() => null);
const isSelfTarget = (reference && reference.author.id === message.client.user?.id) ?? false;