Skip to content

Commit

Permalink
fixed reputation regex (#1827)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashish <ashishjh-bst@users.noreply.github.com>
  • Loading branch information
ashishjh-bst and ashishjh-bst authored Jan 21, 2025
1 parent 24dba81 commit 2930dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reputation/plugin_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2930dff

Please sign in to comment.