diff --git a/plugins/mayi/cani.go b/plugins/mayi/cani.go index 53da384..3c3f225 100644 --- a/plugins/mayi/cani.go +++ b/plugins/mayi/cani.go @@ -13,7 +13,7 @@ type MayIPlugin struct { c *config.Config } -var regex = regexp.MustCompile(`(?i)(may|can) (?P\S+) (?P.+)`) +var regex = regexp.MustCompile(`(?i)^(may|can) (?P\S+) (?P.+)`) func New(b bot.Bot) *MayIPlugin { m := &MayIPlugin{