import { Message, TextChannel, PermissionFlagsBits } from 'discord.js'; import { WebhookService } from './WebhookService'; import { logger } from '../utils/logger'; export class MimicService { public static async handleMessage(message: Message) { if (message.author.bot) return; if (!(message.channel instanceof TextChannel)) return; let content = message.content; let modified = false; // Feature 1: Big Emoji // If message is exactly one custom discord emoji, we enlarge it. const customEmojiRegex = /^$/i; const match = content.match(customEmojiRegex); if (match) { const emojiId = match[1]; const isAnimated = content.startsWith('