From 2930dff68391c683c6c2ffbaa202058b9789fc5a Mon Sep 17 00:00:00 2001 From: Ashish <51633862+ashishjh-bst@users.noreply.github.com> Date: Wed, 22 Jan 2025 01:43:45 +0530 Subject: [PATCH] fixed reputation regex (#1827) Co-authored-by: Ashish --- reputation/plugin_bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reputation/plugin_bot.go b/reputation/plugin_bot.go index 83b86f33e..4700af4d0 100644 --- a/reputation/plugin_bot.go +++ b/reputation/plugin_bot.go @@ -33,7 +33,7 @@ func (p *Plugin) BotInit() { eventsystem.AddHandlerAsyncLastLegacy(p, handleMessageCreate, eventsystem.EventMessageCreate) } -var thanksRegex = regexp.MustCompile(`(?i)( |\n|^)?(thanks?|danks|ty|thx|\+rep|\+ ?\<\@[0-9]*\>)( |\pP|\n|$)`) +var thanksRegex = regexp.MustCompile(`(?i)( |\n|^)(thanks?|danks|ty|thx|\+rep|\+ ?\<\@[0-9]*\>)( |\pP|\n|$)`) func createRepDisabledError(g *dcmd.GuildContextData) string { return fmt.Sprintf("**The reputation system is disabled for this server.** Enable it at: <%s/reputation>.", web.ManageServerURL(g.GS.ID))