Activation Bot

niks

Member
Joined
Jan 30, 2017
Messages
40
Reaction score
5
Points
40
What exactly does this do ?

---- Automatically Merged Double Post ----

Just add's $ts3_VirtualServer->clientGetByUid("$uid")->addServerGroup(10) server group 10 as in activated and that's all ? :D
 
Last edited:

Ignitas

Member
Joined
Jul 6, 2016
Messages
4
Reaction score
2
Points
38
Would be nice to use this for create a new server!If u can do this i would appreciate it
 

elkhayder

New Member
Joined
Jun 14, 2017
Messages
5
Reaction score
1
Points
18
Would be nice to use this for create a new server!If u can do this i would appreciate it
Yes i will create a script for servers creation inchaallah <3

What exactly does this do ?

---- Automatically Merged Double Post ----

Just add's $ts3_VirtualServer->clientGetByUid("$uid")->addServerGroup(10) server group 10 as in activated and that's all ? :D
Yes but i have add some steps as verification step and it's will automatcly uid after some upgrades :) inchaallah <3
 

Norvik

Retired Staff
Contributor
Joined
Jul 18, 2015
Messages
635
Reaction score
588
Points
157
Why are there functions in the config file? Your assign_rand_value function actually made me laugh lmao. Why wouldn't you just return a random chair of a string that contains all letters from a to z?
PHP:
$chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
return $chars[rand(0, strlen($chars)-1)];


Thanks for sharing tho.
 

elkhayder

New Member
Joined
Jun 14, 2017
Messages
5
Reaction score
1
Points
18
Why are there functions in the config file? Your assign_rand_value function actually made me laugh lmao. Why wouldn't you just return a random chair of a string that contains all letters from a to z?
PHP:
$chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
return $chars[rand(0, strlen($chars)-1)];


Thanks for sharing tho.
Because it's choose more than one number or letter, and my php level it's not to good to make it choose one :(
 

Cgamez

New Member
Joined
Apr 17, 2018
Messages
10
Reaction score
10
Points
18
PHP:
$client = $ts3_VirtualServer->clientGetByUid("$uid");
$Client = $ts3_VirtualServer->clientGetByUid("$uid");
Just noticed that and closed the window instantly... Please bro, it really hurts to see something like that!
 

niks

Member
Joined
Jan 30, 2017
Messages
40
Reaction score
5
Points
40
PHP:
$client = $ts3_VirtualServer->clientGetByUid("$uid");
$Client = $ts3_VirtualServer->clientGetByUid("$uid");
Just noticed that and closed the window instantly... Please bro, it really hurts to see something like that!
LMAOO

Just noticed as well
 

Peaceh

Member
Joined
May 28, 2017
Messages
3
Reaction score
0
Points
51
On Xampp work perfectly but as soon as i upload on my website stop working.

error log
[13-May-2018 23:56:58 UTC] PHP Fatal error: Uncaught TeamSpeak3_Transport_Exception: Connection refused in /home/peacehc1/public_html/TeamSpeak3/Transport/TCP.php:52
Stack trace:
#0 /home/peacehc1/public_html/TeamSpeak3/Transport/TCP.php(111): TeamSpeak3_Transport_TCP->connect()
#1 /home/peacehc1/public_html/TeamSpeak3/Adapter/ServerQuery.php(73): TeamSpeak3_Transport_TCP->readLine()
#2 /home/peacehc1/public_html/TeamSpeak3/Adapter/Abstract.php(57): TeamSpeak3_Adapter_ServerQuery->syn()
#3 /home/peacehc1/public_html/TeamSpeak3/TeamSpeak3.php(327): TeamSpeak3_Adapter_Abstract->__construct(Array)
#4 /home/peacehc1/public_html/step1.php(15): TeamSpeak3::factory(Object(TeamSpeak3_Helper_Uri))
#5 {main}
thrown in /home/peacehc1/public_html/TeamSpeak3/Transport/TCP.php on line 52

Anyone have an idea why? :confused:
 

walross99

Some random Guy
Joined
Jul 29, 2016
Messages
42
Reaction score
14
Points
40
On Xampp work perfectly but as soon as i upload on my website stop working.

error log
[13-May-2018 23:56:58 UTC] PHP Fatal error: Uncaught TeamSpeak3_Transport_Exception: Connection refused in /home/peacehc1/public_html/TeamSpeak3/Transport/TCP.php:52
Stack trace:
#0 /home/peacehc1/public_html/TeamSpeak3/Transport/TCP.php(111): TeamSpeak3_Transport_TCP->connect()
#1 /home/peacehc1/public_html/TeamSpeak3/Adapter/ServerQuery.php(73): TeamSpeak3_Transport_TCP->readLine()
#2 /home/peacehc1/public_html/TeamSpeak3/Adapter/Abstract.php(57): TeamSpeak3_Adapter_ServerQuery->syn()
#3 /home/peacehc1/public_html/TeamSpeak3/TeamSpeak3.php(327): TeamSpeak3_Adapter_Abstract->__construct(Array)
#4 /home/peacehc1/public_html/step1.php(15): TeamSpeak3::factory(Object(TeamSpeak3_Helper_Uri))
#5 {main}
thrown in /home/peacehc1/public_html/TeamSpeak3/Transport/TCP.php on line 52

Anyone have an idea why? :confused:
It says "connection refused". Check the config and make sure the query may access the server's Queryport.
 

kalle

high minded
Contributor
Joined
Oct 28, 2015
Messages
411
Reaction score
253
Points
178
Whitelist ip of webhost or check config for mistakes.
 

Bluscream

Retired Staff
Contributor
Joined
May 8, 2015
Messages
967
Reaction score
934
Points
211
It says "connection refused". Check the config and make sure the query may access the server's Queryport.
Check if your query port is open and 10011
 
Last edited:

elkhayder

New Member
Joined
Jun 14, 2017
Messages
5
Reaction score
1
Points
18
It says "connection refused". Check the config and make sure the query may access the server's Queryport.
You may have to whitelist the ip of your host in teamspeak server and allow the connection
 

Ignitas

Member
Joined
Jul 6, 2016
Messages
4
Reaction score
2
Points
38
Hello, could you add an whitelist method to the bot?? like only the ips that i add have perms to use that. It would be very nice if u do that
 

elkhayder

New Member
Joined
Jun 14, 2017
Messages
5
Reaction score
1
Points
18
Hello, could you add an whitelist method to the bot?? like only the ips that i add have perms to use that. It would be very nice if u do that
<do u want me to add a serevrgroup or ip ??
 
Top