trailminator #1

Merged
s434624 merged 6 commits from trailminator into master 2022-05-18 12:39:33 +02:00
3 changed files with 23 additions and 2 deletions
Showing only changes of commit 6535d5d752 - Show all commits

BIN
requirements-analysis.pdf Normal file

Binary file not shown.

View File

@ -1,2 +1,5 @@
class Dp: class Dp:
pass def __init__(self):
self.actions = {
"name": ['imie', 'imię']
}

View File

@ -1,2 +1,20 @@
from asyncio.constants import SENDFILE_FALLBACK_READBUFFER_SIZE
class Nlg: class Nlg:
pass def __init__(self):
self.reactions = {
"name": "Mam na imie Trailminator."
}
def detect_action(self, message):
for k, v in self.actions:
if any(m in v for m in message):
return k
def generate_action(self, action):
return self.reactions[action]