Require ! at start of active commands
This commit is contained in:
parent
ad5e2ef72f
commit
d261997d84
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue