Added chat function (wip)

@timia2109 replace --[[ user var ]] with user var, --[[ code to get messages ]] with code to get messages DAFUQ