Require ! at start of active commands

This commit is contained in:
Tulir Asokan 2018-06-21 22:08:33 +03:00
parent ad5e2ef72f
commit d261997d84

View file

@ -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]