golem-telegram-bot/shared.php

16 lines
175 B
PHP
Raw Normal View History

<?php
/*
* Logs text to file
*/
function botlog($text)
{
if ($file = fopen(LOGFILE, 'a'))
{
fwrite($file, $text);
fclose($file);
}
}
?>