Alligatoras
Administrator
- Mar 31, 2016
- 2,570
- 12
- 2,855
- 381
If you have changed the images, make sure to edit the file with the correct images names!
Learn the required languages in order to make your own one or just modify the one from this thread?
1) Open the file with an editor (Prefered Notepad ++) and edit the first lines with your server's information.my clockbot doesn't work , help
That means your config.php file has an error on line 9. You should open the php file and check that!OnlineBot not woirking:
alltime Error Parse error: syntax error, unexpected ';' in config.php, Line 9
Thanks for Help, all fixedThat means your config.php file has an error on line 9. You should open the php file and check that!
Nice to hear that!Thanks for Help, all fixed
this spam the php and then my server got alot of query loged in... and then they use my ts ID and i cant enter on teamspeak1) Open the file with an editor (Prefered Notepad ++) and edit the first lines with your server's information.
2) Upload it to your VPS server in a desired folder with an FTP Client (px: Filezilla)
3) Open a SSH Client (px: Putty) and connect to your vps as root.
4) Install cron (If you don't have it) by using this command: sudo apt-get install cron
5) As root run this command: sudo crontab -e
6) At the end of the file type this command: * * * * * php /path/to/your/file/time.php
This command will run the clock for ever on your server! YOu should be good with that
Enjoy!!!
my clockbot doesn't work , help
This script, that you asked help the previous time, works with query.this spam the php and then my server got alot of query loged in... and then they use my ts ID and i cant enter on teamspeak
... yes but next problem i run it as cronjob, and after some time the online bot it crashed or stoped ! how can i run it and after it logged out automatically and cronjob start ist again, log out, start again, ect.Nice to hear that!
If you have the time.php file on cronjob, this will work automatically, even if you are on the SSH Console or not. The reason that your bot crashes and stops happens because of flood. You can changed you server setting settings about the flood ban and the flood ban duration to solve this problem!... yes but next problem i run it as cronjob, and after some time the online bot it crashed or stoped ! how can i run it and after it logged out automatically and cronjob start ist again, log out, start again, ect.
I thought you were talking asbout the time bot, but you talk about the online bot. It works the same way though. It connects to your server, watches the online clients, changes the channel and leaves the server!... i think we talk about 2 differents bots there is no Time.php, the cronsjop is starting a onlinebot.php ... and it come every start a new query, so in 10 min i have 10 querys on my teamspeak without logged out ...
i talked about the script "Onlinebot" in the Package it shows in a channel, how many user on my teamspeak-server
######################################################
config.php
<?php
/* Server IP */ $ts3_ip = 'xxx';
/* Queryport */ $ts3_queryport = 10011;
/* Port */ $ts3_port = 9987;
/* Login Query */ $ts3_user = 'xxx';
/* Password Query */ $ts3_pass = 'xxx;
/* Name Bot */ $bot_nickname = 'OnlineBot';
/* Channel to move */ $bot_move = 9;
/* #Sleep "sec" */ $sleep = 60;
/* Server Name "1=On" "0=Off" */ $Server = 0;
/* ServerName */ $server_name = "Online:";
/* Channel Name "1=On" "0=Off" */ $Channel = 1;
/* Channel name*/ $channel_name = "[cspacer4477]User currently online: ";
/* Channel ID */ $channel_id = 9;
?>
onlinebot.php
<?PHP
/**
*
*
*
**/
require("lib/ts3admin.class.php");
include 'config.php';
$tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
if($tsAdmin->getElement('success', $tsAdmin->connect())) {
$tsAdmin->login($ts3_user, $ts3_pass);
$tsAdmin->selectServer($ts3_port);
$tsAdmin->setName($bot_nickname);
$whoami = $tsAdmin->getElement('data', $tsAdmin->whoAmI());
$tsAdmin->clientMove($whoami['client_id'],$bot_move);
while(1) {
$serverInfo = $tsAdmin->getElement('data', $tsAdmin->serverInfo());
$clientsOnline = ($serverInfo['virtualserver_clientsonline'] - $serverInfo['virtualserver_queryclientsonline']);
if($Channel == 1)
{
$tsAdmin->channelEdit($channel_id, array('channel_name' => $channel_name.' '.$clientsOnline));
}
if($Server == 1)
{
$tsAdmin->serverEdit(array('virtualserver_name' => $server_name.' '.$clientsOnline));
}
sleep($sleep);
}
}else{
echo "Connetcion Problem";
}
?>
again, it work but it needs to logged out after worked, because about a cronjob it comes everytime a new query in addition in in 1 hour you have 1000 same query on your teamspeak flodding is not the problem, the bot is query-whitelisted
Everyone of the scripts you want to use requires to have your own vps to upload them an run them - on your own server or a server you rent.ok, but i must start it with a cronjob by my hoster, because i havent php on my server and the only problem is, that the bot is not do the right steps with logged out after usercheck, so it come with every next cronjob new querys on my server without logged out and in 5 min i have server full with 500 and more same querys