From 4f6c38085929347a2c223da41dfb15eb22a9cf4e Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 13 Oct 2026 13:04:21 +0900 Subject: [PATCH] 1.0.6 RC9 --- index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 373dc6b..ce5aa4a 100644 --- a/index.ts +++ b/index.ts @@ -42,7 +42,7 @@ export const MAX_INBOUND_LENGTH = 400; // Factorio renders these, so a Discord user could spoof a colour, an item link, // or a fake speaker line. Whitelist the real tags rather than matching \[.*\], -// which would also eat innocent text like "array[0]" or "[lol]". +// which would also eat innocent text like 'array[0]' or '[lol]'. const RICH_TEXT_RE = new RegExp( String.raw`\[/?(?:color|font|item|entity|technology|recipe|fluid|tile|virtual-signal` + String.raw`|gps|img|specialisation|achievement|train|planet|space-location|quality)(?:=[^\]]*)?\]`, @@ -133,4 +133,7 @@ export const plugin: lib.PluginDeclaration = { ChatEvent, ChatFromDiscordEvent, ], + features: [ + 'ScriptCommands', + ], };