You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-07-02 22:36:54 +02:00
infinite context problem solved, add question type
This commit is contained in:
@ -227,9 +227,9 @@ class Command(ABC):
|
||||
for pattern in obj.getPatterns():
|
||||
if match := re.search(re.compile(Command.compilePattern(pattern)), string):
|
||||
return {
|
||||
'cmd': obj,
|
||||
'params': {**match.groupdict(), 'string':string,},
|
||||
}
|
||||
'cmd': obj,
|
||||
'params': {**match.groupdict(), 'string':string,},
|
||||
}
|
||||
# return Question-Answer system if command not found
|
||||
return {
|
||||
'cmd': Command.QA,
|
||||
|
Reference in New Issue
Block a user