rename detector
This commit is contained in:
parent
17a67aaefa
commit
04f43b188d
7 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue