Create chatfunctions.php