Skav
Member
- Mar 2, 2016
- 20
- 2
- 38
Yes but i didn't work, and now its worksi told you put
date_default_timezone_set('Region/City');
in second line.
Yes but i didn't work, and now its worksi told you put
date_default_timezone_set('Region/City');
in second line.
About the 2nd problem, you cannot hide the "Channel "blabla" was renamed to "blabla2" by Bot" notificationYes thanks for your informations, but now the time is not corect, its two hours late, I think the problem come from the following line:
$realTime = date('[Y-m-d] [H:i:s]',$unixTime);
For exemple, when in France there is 10 hours and 10 minutes oclock, on my TS i have 8 hours and 10 minutes..
Edit: i have found this but i don't know if i can apply it and how apply on your files:
http://php.net/manual/fr/function.date-default-timezone-set.php
And second little problem, i have edit the permissions of the bof user name but it won't hide the channel edit..
Edit 2: Ok, i have find a solution for the problem of time, add following command:
date_default_timezone_set('Region/City');
Copy & past it just after:
<?php
require_once("TeamSpeak3/TeamSpeak3.php");
Replace Region and City with yours: http://php.net/manual/en/timezones.php
<17:15:59> Server properties have been edited by "BotBanner"
<17:15:59> Server properties have been edited by "BotBanner"
<17:15:59> Channel "[cspacer0] [2016-04-10] - [17:15]" was renamed to "[cspacer0] [2016-04-10] - [17:16]" by "BotTime"
<17:15:59> " BotTime" disconnected (disconnecting)
plis tuto windows.yes, it works.. install php and you're good to go
Might be useful next time: http://php.net/manual/en/timezones.php
yeah!Replace Region and City with yours: http://php.net/manual/en/timezones.php
Please read this: https://r4p3.net/threads/tstime-and-tstimebig.1577/#post-15223plis tuto windows.
where shoud i put the commandscould you give me more information about the problem?
where did you got stuck?
1-Download phpwhere shoud i put the commands
1-Download php
2- execute php.exe on a terminal
3- execute the script typing the directory of the script like this: php -f c:/TSTime/TSTime.php
please read the post i made about windows execution, theres a link with a tutorial on php's website
Please, read the whole post before asking.. i already posted this: https://r4p3.net/threads/tstime-and-tstimebig.1577/#post-15223can i get link to the tutorial
Yeah..Would you help me ?
I'm trying installar on linux ( debian 7) but do not know how is to help me?
Yeah..
1- Install php: sudo apt-get install php
2- open the file and edit account, password, ip, port, channel ids, timezone: nano TSTime.php or nano TSTimeBig.php
3- execute the script with: php -f TSTime.php or php -f TSTimeBig.php
4- bot will connect, do the changes and leave..
if you want to set a crontab (automatically execute the script each x time, example 1 minute), i already explained that in the 1st page, linux and windows.. :/ please read the whole post.. someone already asked this..