From 0e1d91a76a92157747b22d179b5cab2b191d1958 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sat, 14 Dec 2024 11:46:25 -0500 Subject: [PATCH] robot: revise hte invocations Require a nonzero amount of space between the syntactic marker and the prompt. Fixes #93. --- privmsg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/privmsg.go b/privmsg.go index 365d464..3543eef 100644 --- a/privmsg.go +++ b/privmsg.go @@ -435,14 +435,14 @@ var twitchAny = []twitchCommand{ name: "contact", }, { - parse: regexp.MustCompile(`^(?i:say|generate)\s*(?i:something)?\s*(?i:starting)?\s*(?i:with)?\s*(?.*)`), + parse: regexp.MustCompile(`^(?i:say|generate)\s*(?i:something)?\s*(?i:starting)?\s*(?i:with)?\s+(?.*)`), fn: command.Speak, name: "speak", }, { // NOTE(zeph): This command MUST be after the normal speak command, // because it would capture the correct spelling otherwise. - parse: regexp.MustCompile(`^(?i:a*s[say]*|e*g[gen]*[er]*[ae]*[te]*)\s*(?.*)`), + parse: regexp.MustCompile(`^(?i:a*s[say]*|e*g[gen]*[er]*[ae]*[te]*)\s+(?.*)`), fn: command.Hte, name: "hte", },