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{}
|
||||
argumentEncountered := false
|
||||
|
||||
regexBuilder.WriteRune('^')
|
||||
regexBuilder.WriteString("^!")
|
||||
words := strings.Split(command.Syntax, " ")
|
||||
for i, word := range words {
|
||||
argument, ok := command.Arguments[word]
|
||||
|
Loading…
Reference in New Issue
Block a user