Input modifier can still generate text when stopping
This commit is contained in:
parent
a32cefaf9b
commit
12a3686885
2 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ const modifier = (text) => {
|
|||
const args = commandMatcher[2] ? commandMatcher[2].trim().split(' ') : []
|
||||
state.message = `Got command '${command}' with args ${JSON.stringify(args)}`
|
||||
stop = true
|
||||
text = null
|
||||
} else {
|
||||
delete state.message
|
||||
}
|
||||
|
|
Reference in a new issue