20 lines
422 B
Python
20 lines
422 B
Python
from asyncio.constants import SENDFILE_FALLBACK_READBUFFER_SIZE
|
|
|
|
|
|
class Nlg:
|
|
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]
|
|
|
|
|