["", "import", " ", "re", "\n\n//just for the test\n\n", "def", " ", "match", "", "(", "", "text", "", ")", "", ":", "\n ", "replies", " ", "=", " ", "{", "\n ", "'k'", "", ":", " ", "'not k, ok! at least that :angry:'", "", ",", "\n ", "'hi'", "", ":", " ", "'Hey there!'", "", ",", "\n ", "'hey'", "", ":", " ", "'Hey, what'", "", "s", " ", "up", "", "?", "", "',\n '", "", "bye", "", "': '", "", "Goodbye", " ", ":", "", "simple_smile", "", ":", "", "',\n '", "", "jk", "", "': '", "", "You", "", "'re joking?'", "", ",", "\n ", "'no'", "", ":", " ", "'NOOO??'", "\n ", "}", "\n\n ", "if", " ", "len", "", "(", "", "re", "", ".", "", "findall", "", "(", "", "'^nosways(.*?)'", "", ",", " ", "text", "", ")", "", ")", " ", ">", " ", "0", "", ":", "\n ", "print", "", "(", "", "str", "", "(", "", "re", "", ".", "", "findall", "", "(", "", "'^nosways(.+)'", "", ",", " ", "text", "", ")", "", ")", "", ")", "\n ", "return", " ", "str", "", "(", "", "'yes way '", " ", "+", " ", "re", "", ".", "", "findall", "", "(", "", "'^nosways(.+)'", "", ",", " ", "text", "", ")", "", "[", "", "0", "", "]", "", ")", "\n\n ", "commands", " ", "=", " ", "{", "\n ", "'current replies'", "", ":", " ", "str", "", "(", "", "'```'", " ", "+", " ", "str", "", "(", "", "replies", "", ")", " ", "+", " ", "'```'", "", ")", "\n ", "}", "\n ", "if", " ", "text", "", ".", "", "lower", "", "(", "", ")", " ", "in", " ", "list", "", "(", "", "replies", "", ".", "", "keys", "", "(", "", ")", "", ")", "", ":", "\n ", "return", " ", "replies", "", "[", "", "text", "", ".", "", "lower", "", "(", "", ")", "", "]", "\n ", "elif", " ", "text", "", ".", "", "lower", "", "(", "", ")", " ", "in", " ", "list", " ", "(", "", "commands", "", ".", "", "keys", "", "(", "", ")", "", ")", "", ":", "\n ", "return", " ", "commands", "", "[", "", "text", "", ".", "", "lower", "", "(", "", ")", "", "]", "\n"]