2022-05-18 12:33:50 +02:00
|
|
|
from asyncio.constants import SENDFILE_FALLBACK_READBUFFER_SIZE
|
|
|
|
|
|
|
|
|
2022-04-13 13:23:47 +02:00
|
|
|
class Nlg:
|
2022-05-18 12:33:50 +02:00
|
|
|
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]
|
|
|
|
|
|
|
|
|