Skip to content

Commit

Permalink
Fix phishing trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Jul 8, 2024
1 parent 64ec7b7 commit 16d2691
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/database/BadWord.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import ChatTriggeredFeature from './ChatTriggeredFeature.js';
import TypeChecker from '../settings/TypeChecker.js';
import {channelMention} from 'discord.js';
import Punishment from './Punishment.js';
import {EMBED_FIELD_LIMIT} from '../util/apiLimits.js';
import colors from '../util/colors.js';
import ChatFeatureEmbed from '../embeds/ChatFeatureEmbed.js';

Expand Down
2 changes: 1 addition & 1 deletion src/database/triggers/PhishingTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class PhishingTrigger extends Trigger {

test(content) {
// Split domain and min similarity (e.g. discord.com(gg):0.5)
let [domain, similarity] = String(this.trigger.content).split(':');
let [domain, similarity] = String(this.content).split(':');
similarity = parseFloat(similarity) || 0.5;
domain = domain.toLowerCase();
// Split domain into "main part", extension and alternative extensions
Expand Down

0 comments on commit 16d2691

Please sign in to comment.