how to install php code or javascript on ts server!?!?

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
As the creator says "This script requires at least version 0.9.10-e1fdee3 of sinusbot". Do you own a compatible version?
 

Night Wolf

Active Member
Feb 18, 2016
25
1
75
As the creator says "This script requires at least version 0.9.10-e1fdee3 of sinusbot". Do you own a compatible version?
No I do not have sinusbot and I do not know what these bot
i'm newcomer plz help me :(
 

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
There is no way to use this script without the version 0.9.10-e1fdee3 of SinusBot. You could use this script if you still want the clock.
 

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
Let's say your file is called "myBot.php". Use the following command in order to start in in a screen.
Code:
screen -A -m -d -S myBot php myBot.php
 

Sempz

Member
May 14, 2016
23
2
35
https://r4p3.net/threads/tstime-and-tstimebig.1577/

In order to run this you need to download TeamSpeak php framework: https://www.planetteamspeak.com/downloads/
Or you can git clone or download the zip file from my github repository
https://github.com/Agusanz/TSTime

if you already have all that stuff, you can run it with
php -f TSTime.php

If you want to setup a cron for this just add this to crontab -e
*/1 * * * * php -f /home/agusanz/TSTime/TSTime.php > /dev/null


Otherwise u can create a bash file inside of that folder and use
*/1 * * * * /home/agusanz/TSTime/./TSTime.sh > /dev/null
Code:
#!/bin/bash
TSTime=`ps ax | grep TSTime.php | grep -v grep | wc -l`
if [ $TSTime -eq 1 ]
then
  exit
else
  cd /home/agusanz/TSTime;
  nohup php -f TSTime.php &> TSTime.log
fi
 

Sempz

Member
May 14, 2016
23
2
35
Let's say your file is called "myBot.php". Use the following command in order to start in in a screen.
Code:
screen -A -m -d -S myBot php myBot.php
He want to know how to execute the script to do the function...
 

Norvik

Retired Staff
Contributor
Jul 18, 2015
635
588
157
Press the download button on his github.
VszIcJE.png

Extract the zip file and upload one of the two TimeBot folders to your server.
7H2o1P6.png

Edit the config.php file and then use the following command to start the bot.
Code:
./botstart.sh start
You might have to set chmod 777 for the .sh file before you can start it.
 

Night Wolf

Active Member
Feb 18, 2016
25
1
75
Press the download button on his github.
VszIcJE.png

Extract the zip file and upload one of the two TimeBot folders to your server.
7H2o1P6.png

Edit the config.php file and then use the following command to start the bot.
Code:
./botstart.sh start
You might have to set chmod 777 for the .sh file before you can start it.
ok but this command "./botstart.sh start" Where do I import؟

excuse me:(
 

Night Wolf

Active Member
Feb 18, 2016
25
1
75
my friend but i do not have ssh command for team speak server
excuse me:( i am noob
I was embarrassed
 

Night Wolf

Active Member
Feb 18, 2016
25
1
75
i have vps windows and I did not understand
ok tanx and I will not disturb very tanx excuse me i am noob very tanx
 
Top