Require ! at start of active commands
This commit is contained in:
parent
ad5e2ef72f
commit
d261997d84
@ -41,7 +41,7 @@ func (pc *ParsedCommand) parseCommandSyntax(command maubot.Command) error {
|
|||||||
swBuilder := &strings.Builder{}
|
swBuilder := &strings.Builder{}
|
||||||
argumentEncountered := false
|
argumentEncountered := false
|
||||||
|
|
||||||
regexBuilder.WriteRune('^')
|
regexBuilder.WriteString("^!")
|
||||||
words := strings.Split(command.Syntax, " ")
|
words := strings.Split(command.Syntax, " ")
|
||||||
for i, word := range words {
|
for i, word := range words {
|
||||||
argument, ok := command.Arguments[word]
|
argument, ok := command.Arguments[word]
|
||||||
|
Loading…
Reference in New Issue
Block a user