Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Page 16 of 26 FirstFirst ... 61415161718 ... LastLast
Results 226 to 240 of 377
  1. #226
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    The version 1.0.0-beta12 Build: 17 of the TS3PHPBot has been released.

    primary download location: http://ts3phpbot.urbach-webhosting.d...build-t29.html
    secondary download location: http://forum.teamspeak.com/showpost....44&postcount=1

    Changelog:
    Code:
    =============================================================
                  TeamSpeak 3 PHP BOT - Changelog
    =============================================================
    + Added feature or noticable improvement
    - Bug fix or something removed
    * Changed or Information
    ! Important - Take note!
    =============================================================
    === Version 1.0.0-beta12 build 17
    ! TeamSpeak 3 server beta 26 [Build: 11927] or higher required
    ! PHP 5.2.4 or higher with posix, pcntl, cURL and socket support enabled required
    ! This version is not capable of UTF-8, use US-ASCII, ISO 8859-1 (Latin 1) or ISO 8859-15 (Latin 9) charset only
    - fixed AUTO-VERSION-CHECK plugin malfunction
    - fixed several bugs in the BOT-CHAT plugin
    - fixed WELCOME-MESSAGE "invalid client" error
    + added easter egg
    + added bot chat command !poke
    + added config parameter permanentSticky to plugin STICKY-CHANNEL
    * file ts3phpbot.php obfuscated (only to make it harder to find the easter egg, if you need an human readable version of this file please contact me via pm)
    * changed default Bot intevalTime from 2 seconds to 1 second
    
    === Version 1.0.0-beta11 build 14
    ! TeamSpeak 3 server beta 23 or higher required
    ! PHP 5.2.4 or higher with posix, pcntl and socket support enabled required
    ! This version is not capable of UTF-8, use US-ASCII, ISO 8859-1 (Latin 1) or ISO 8859-15 (Latin 9) charset only
    ! Plugins from version 1.0.0-beta10 or lower are not compatible with version 1.0.0-beta11 [Build: 14] or higher
    - fixed bot now throws a more user friendly error message if one of the main config files contains syntax errors
    - fixed plugins of type Channel can now access daemonConfig, TS3ServerInstance and TS3VirtualServer variables
    - fixed bot did not throw "Strict Standards: Non-static method" errors any more if php error_reporting is set to E_STRICT
    - fixed bot did not throw a warning any more if php config parameter date.timezone has not been set 
    - fixed bot name and version number added to legal notice
    - fixed Bot did not throw E_DEPRECATED warnings any more
    - fixed Undefined bot beahaivor if a jailed client mutes sound or mic
    - fixed bot did not throw "message length exeeded" warning any more, if plugin WELCOME-MESSAGE enabled (Do not make massive use of this or the TeamSpeak 3 build-in Anti Spam module will triggerd)
    - fixed bot did not throw "message length exeeded" warning any more, if plugin ADVERTISING-MESSAGE enabled (Do not make massive use of this or the TeamSpeak 3 build-in Anti Spam module will triggerd)
    - fixed bot did not execute all plugins of type Bot in TS3Bot::doAutoJoin() any more
    + added config check to plugin IDENTITY-SECURITY-LEVEL
    + added config check to plugin MAX-VIRTUALSERVER-SLOTS
    + added config check to plugin MIN-CLIENT-VERSION
    + added config check to plugin RESERVED-SLOTS
    + added core plugin CHANNEL-DEFAULT-PERMS
    + added plugin AUTO-VERSION-CHECK
    + added experimental bot chat
    + added bot chat command !help
    + added bot chat command !version
    + added bot chat command !kick
    + added bot chat command !timeban
    + added bot chat command !ban
    + added bot chat command !move
    + added bot chat command !unstick (requires plugin STICKY-CHANNEL)
    + added bot chat command !stick (requires plugin STICKY-CHANNEL)
    + added bot chat command !reload
    + added build number to bot version
    - removed plugin IDLE-PROTECTION (use i_client_max_idletime instead)
    - removed plugin function ::doFeatureCheck, use ::getConfigDefinitions and ::getConfigSection instead
    - removed obsolate package PEAR
    * changed status of plugin NICKNAME-PROTECTION from optional to core
    * bot version and build number now stored as TS3BotDaemon class constants
    * internal release
    
    === Version 1.0.0-beta10
    ! TeamSpeak 3 server beta 23 or higher required
    ! PHP 5.2.4 or higher with posix, pcntl and socket support enabled required
    ! This version is not capable of UTF-8, use ISO 8859-1 (Latin 1) or ISO 8859-15 (Latin 9) charset only
    + added feature RESERVED-SLOTS
    - fixed AUTO-AFK feature malfunction if observeSoundMute enabled and observeMicMute disabled 
    - fixed PID files now stored correctly
    - fixed daemon now throws an error message if log file path or pid file path not exists 
    - fixed STICKY-CHANNEL feature now remove the sticky flag if the exception list was reloaded
    - fixed STICKY-CHANNEL feature does not throw php error Undefined variable: iniContent any more
    * all features changed to bot plugins
    * bot prepared for user plugins
    * source code cleanup
    
    === Version 1.0.0-beta9-1
    * class System_Daemon updated to version 0.10.3
    * internal release
    
    === Version 1.0.0-beta9
    ! TeamSpeak 3 server beta 23 or higher required
    ! PHP 5.2.4 or higher with posix, pcntl and socket support enabled required
    ! The BETA8 config files are NOT COMPATIBLE with BETA7 or lower
    ! This version is not capable of UTF-8, use ISO 8859-1 (Latin 1) or ISO 8859-15 (Latin 9) charset only
    ! config file splited into 2 files
    + added commandline parameter for feature config reload (to reload the feature config, send POSIX signal SIGUSR1)
    + added config parameter timezone (see http://www.php.net/manual/en/timezones.php for a list of supported timezones) 
    + added feature AUTO-JOIN from old beta4
    + added config parameter observeMicMute to AUTO-AFK feature
    + added config parameter observeSoundMute to AUTO-AFK feature
    + added punishment none to SERVERGROUP-PROTECTION feature
    + added feature config section BOT-CONFIG
    + added config parameter port to BOT-CONFIG
    + added config parameter nickname to BOT-CONFIG
    + added daemon option  MIN-CLIENT-VERSION
    + added daemon option MAX-VIRTUALSERVER-SLOTS
    + added exception list for STICKY-CHANNEL feature
    - removed obsolate config parameter pidfileName 
    - removed obsolate config parameter logfileName
    - removed obsolate config parameter maxExecutionTime
    - removed config check login
    - renamed section DAEMON-CONFIG to CONFIG
    * changed PID files are now stored in [BOT-DIRECTORY]/pids per default
    * changed log files are now stored in [BOT-DIRECTORY]/logs per default 
    * changed IDENTITY-SECURITY-LEVEL feature behavoir
    * moved IDENTITY-SECURITY-LEVEL from feature config to daemon config
    * class System_Daemon updated to version 0.10.2
    * PEAR now included
    * Bot commandline redisign
    * Bot config parameter description revised
    * each time the bot starts a new log file will created with the following naming convention: ts3phpbot_yyyy-dd-mm_hh-nn-ss_port.log 
    * pid and log file names are generated automaticaly
    * Install manual revised
    * startscript revised
    * complete source code redesign
    * internal release
    
    === Version 1.0.0-beta8
    * version skiped
    
    === Version 1.0.0-beta7
    ! TeamSpeak 3 server beta 16 or higher required
    ! PHP 5.2.4 or higher with PEAR, posix, pcntl and socket support enabled required
    - fixed memory leak, occours in bot crash without log entry
    - fixed AUTO-AFK feature not longer resentful to the wrong client
    - fixed STICKY-CHANNEL feature not longer resentful to the wrong client
    - fixed undefined bot behavior if auto-afk channel and sticky-channel are the same
    - fixed incorect display of placeholders in WELCOME-MESSAGE
    - fixed IDLE-PROTECTION does not warn the wrong client anymore
    - fixed memory leak in BAD-NiCKNAMES feature
    - fixed memory leak in BAD-CHANNELNAMES feature
    - fixed incorect display of placeholders in ADVERTISING-MESSAGE
    - fixed placeholder [CLIENT_LASTCONNECTED] now displays an RFC 2822 formatted date
    - removed obsolate config parameter channel from BAD-NICKNAMES
    - changed BAD-NICKNAMES from PERL regular expressions to POSIX regular expressions (see "man 7 regex" for description)
    - changed BAD-CHANNELNAMES from PERL regular expressions to POSIX regular expressions (see "man 7 regex" for description)
    + added placeholder [VIRTUALSERVER_VERSION]
    + added placeholder [VIRTUALSERVER_CREATED]
    + added placeholder [VIRTUALSERVER_COMPLAIN_AUTO_BAN_COUNT]
    + added placeholder [VIRTUALSERVER_COMPLAIN_AUTO_BAN_TIME]
    + added placeholder [VIRTUALSERVER_COMPLAIN_REMOVE_TIME]
    + added placeholder [VIRTUALSERVER_QUERYCLIENTSONLINE]
    + added placeholder [VIRTUALSERVER_CONNECTION_PACKETS_SENT_TOTAL]
    + added placeholder [VIRTUALSERVER_CONNECTION_BYTES_SENT_TOTAL]
    + added placeholder [VIRTUALSERVER_CONNECTION_PACKETS_RECEIVED_TOTAL]
    + added placeholder [VIRTUALSERVER_CONNECTION_BYTES_RECEIVED_TOTAL]
    + added placeholder [CLIENT_CONNECTION_PACKETS_SENT_TOTAL]
    + added placeholder [CLIENT_CONNECTION_BYTES_SENT_TOTAL]
    + added placeholder [CLIENT_CONNECTION_PACKETS_RECEIVED_TOTAL]
    + added placeholder [CLIENT_CONNECTION_BYTES_RECEIVED_TOTAL]
    + added feature IDENTITY-SECURITY-LEVEL
    * exception handling modified
    
    === Version 1.0.0-beta6
    ! TeamSpeak 3 server beta 16 or higher required
    ! PHP 5.2.4 or higher with PEAR, posix, pcntl and socket support enabled required
    ! If you are using teamspeak 3 server beta 15 or higher add the config parameter value hostIP to query_ip_whitelist.txt found in your teamspeak 3 server directory
    ! The bot requires access level 100 (member of group Server Admin Query) to be fully operational
    ! The bot requires a Linux Kernel Version 2.6.x 
    ! Do not use a TeamSpeak3 user that contains whitespaces in his nickname as bot user
    - fixed bot crash results in invalid parameter size error in Advertising message
    + added config parameter logfilePath
    + added config parameter pidfilePath
    + added placeholder [CLIENT_LASTCONNECTED]
    + added placeholder [CLIENT_UNREADMESSAGES]
    + added placeholder [CLIENT_UNIQUE_IDENTIFIER]
    * exception handling modified
    
    === Version 1.0.0-beta5
    ! TeamSpeak 3 server beta 16 or higher required
    ! PHP 5.2.4 or higher with PEAR, posix, pcntl and socket support enabled required
    ! If you are using teamspeak 3 server beta 15 or higher add the config parameter value hostIP to query_ip_whitelist.txt found in your teamspeak 3 server directory
    ! The bot requires access level 100 (member of group Server Admin Query) to be fully operational
    ! The bot requires a Linux Kernel Version 2.6.x 
    ! Do not use a TeamSpeak3 user that contains whitespaces in his nickname as bot user
    - punishment feature move removed
    - fixed bot crach results in bad client id error
    - fixed bot crach results in bad server id error
    - removed unneeded feature bot-auto-join
    + start script for multiple server instances added
    + start scrpit for single server instance added
    + config parameter logfileName added to bot config
    + config parameter pidfileName added to bot config
    + Advertising message feature added
    + sticky channel feature added
    + bad-nickname feature now supports perl regular expressions 
    + bad-channelname feature now supports perl regular expressions
    + bot CLI redesign
    * all class files moved to class directory
    * class autoload function added
    
    === Version 1.0.0-beta4
    ! TeamSpeak 3 server beta 16 or higher required
    ! PHP 5.2.09 or higher with PEAR, posix, pcntl and socket support enabled required
    ! If you are using teamspeak 3 server beta 15 or higher add the config parameter value hostIP to query_ip_whitelist.txt found in your teamspeak 3 server directory
    ! The bot requires access level 100 (member of group Server Admin Query) to be fully operational
    + Exception handling added
    + Config parameter logVerbosity=debug now displays the source code line where the error was thrown
    + Config parameter channel now supports either a channel name or a channel id
    + Config parameter punishment now supports value move (except of features SERVERGROUP-PROTECTION and IDLE-PROTECTION)
    + Feature SERVERADMIN-PROTECTION renamed to SERVERGROUP-PROTECTION
    + Feature SERVERGROUP-PROTECTION not longer adds a client to all protected server groups
    + IDLE-PROTECTION added
    + Welcome message added
    + added clearlog, dumplog and status command to bot CLI
    - removed config parameter logFileLocation, the log are now stored in /var/log/TS3PHPBot.log
    - removed unneeded config parameter maxInputTime
    - SERVERGROUP-PROTECTION config parameter file renamed to iniFile
    - File serveradmin_clients.txt renamed to serveradmin_clients.ini
    - The bot will now rejoin the TeamSpeak server if the host system wakes up from suspend mode 
    - Bot does not punish themself any more
    - Bot does not punish other query clients any more
    - Channel Names are now automaticaly escaped
    - bot now displays a error message if an required PHP extension was not installed
    - bot now checks your TeamSpeak 3 server version to be compatible with the script
    * TeamSpeak 3 connection backand changed to TS3 PHP Framework v1.0.22b designed by Sven 'ScP' Paulsen (Copyright (c) 2010 by Planet TeamSpeak)
    * Complete source code redesign
    * INSTALL file now in english
    
    === Version 1.0.0-beta3
    * version skiped
    
    === Version 1.0.0-beta2
    ! PHP 5.2.09 or higher with posix, pcntl and socket support enabled required
    ! If you are using teamspeak 3 server beta 15 or higher add the config parameter value hostIP to query_ip_whitelist.txt found in your teamspeak 3 server directory
    ! The bot requires access level 100 (member of group Server Admin Query) to be fully operational
    ! The bot requires Teamspeak 3 Server beta 12 or higher
    ! The bot requires a Linux Kernel Version 2.6.x 
    + added restart command to bot CLI
    + Anti-Recording feature now supports punishment move 
    - Required class PEAR::System_Daemon is now included
    * source code cleanup
    
    === Version 1.0.0-beta1
    * first release
    Last edited by faralsimbor; August 7th, 2010 at 02:20 PM.

  2. #227
    Join Date
    May 2010
    Location
    UK
    Posts
    12
    Hey faralsimbor,

    I saw your tool and then saw that it was not windows compatible, so I set off with the hope of running it off my own ubuntu server install.

    I would like to know if what I want to achieve is possible with this tool, to run the bot off a linux server and have him sit on a windows dedicated server by giving him the root serveradmin details.

    Currently I'm just being met with EMERG: [GLOBAL] log file directory does not exists when trying to run the bot.

    Any help will be appreciated,

    Rob

  3. #228
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    first of all check the config parameter logfilePath and pidfilePath to contain a existing directory. Then take care that your pid and log file direactorys are read and writeable by the bot.

    e.g.
    Code:
    chown daemon:daemon /opt/ts3phpbot/* -R
    Note: Do not run the bot from /home/[USER]/ts3phpbot use /opt/ts3phpbot instead.
    Last edited by florian_fr40; March 29th, 2012 at 09:24 AM.

  4. #229
    Join Date
    May 2010
    Location
    UK
    Posts
    12
    Very helpful Faral! Thank you for the quick response too.

    So can I do what I wanted to? I.e. Run this linux bot and have him connect to our windows server as a client or w/e?

    Just working around last few bugs bit by bit (not having curl installed etc), so hopefully ill have it up and running soon.
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  5. #230
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    Jep, that could be possible, simply change the parameter hostIP and queryPort to fit your external TeamSpeak3 server. (both are found in daemon.ini).

    Take care that your windows server accept incomming query port connections from external ips.

    curl is only need if you've the AUTO-VERSION-CHECK plugin enabled.
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  6. #231
    Join Date
    May 2010
    Location
    UK
    Posts
    12
    Looks good

    Got this in log:

    2010-08-08 16:03:54.656250|INFO |VirtualServer | 1| query client connected 'serveradmin from XX.XXX.XXX.132:47611'(id:1)

    2010-08-08 16:03:56.406250|INFO |VirtualServer | 1| query client disconnected 'Server Security'(id:1) reason 'reasonmsg=connection lost'

    Turns out my BOT is banned for a while, so I'm just trying to work around it. But atleast it's accessing the outside world which is good right? In the TS3BOT log I had an addon check and all were disabled and then had the unhandled exception flood ban message.

    I saw in your first post that you mentioned disabling the serveryquery protocol, did you mean the logging side of it? If so I done that by editing the windows virtual server and removing logging of serverquery.

    Cheers for your help so far,

    Rob
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  7. #232
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    hehe, add the bot ip to the file query_ip_whitelist.txt found in your TeamSpeak 3 server directory (If not found create it) and than restart your TeamSpeak 3 server.

    Quote Originally Posted by rexehuk View Post
    I saw in your first post that you mentioned disabling the serveryquery protocol, did you mean the logging side of it? If so I done that by editing the windows virtual server and removing logging of serverquery.

    Cheers for your help so far,

    Rob
    yep, i mean the TeamSpeak 3 server log feature.
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  8. #233
    Join Date
    May 2010
    Location
    UK
    Posts
    12
    Cheers again, that will hopefully be the final hurdle. I can't test it now due to us having a large game in an hour or so time. I'm worried that it will connect and begin killing off the humans.

    Once running, is there an interface to use running on the machine via web browser? Or how else do you interact with the bot... sorry if this is a silly question as I am very new to linux.

  9. #234
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    Normaly you don't need to interact with the bot. Whatever if you want to do so you must enable the experimental plugin Bot-Chat and than you can open a private text message with the command !help (this will tell you all available chat commands).

    If you want to change the bot beavoir you must edit either the config file or the text file that belong to the plugin you want to change. And then reload the bot.

    Note: Don't forget to edit the text files (found in [BOT-DIR]/text)! Ohterwise you might get an unhappy supprise, next time you connect to your TeamSpeak 3 server.
    And please DO NOT use a Windows text editor to edit a bot config file.
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  10. #235
    Join Date
    May 2010
    Location
    UK
    Posts
    12
    I have him running and it says Joined AFK in the log, that is good right? He is however invisible... is that normal?

    Also, he is here for sure, just messaging clients when they join... very cool script. Thank you for all your help, I look forward to new versions.
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  11. #236
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  12. #237
    Join Date
    January 2010
    Location
    need not to know
    Posts
    26
    faralisambor i added two new commands to the chat-admin plugin

    once the command !addgroup to add the given clientID to the given groupID
    and other the !remgroup to delete the given clinetID from the given groupID.

    woul'd be cool if you could add it in the next release and maybe extend it a bit

    i am working on the following reply.

    Client { Clientname } has been added to Servergroup ( { servergroupname} )

    and here the code :

    Code:
    case '!addgroup':
    	if ((!array_key_exists('clid', $params)) || (!array_key_exists('gid', $params))) {
    		throw new Exception('invalid parameter count');
    	}
    	$clientNode = $TS3VirtualServer->clientGetById($params['clid']);
    	$clientNode->addServerGroup($params['gid']);
    	array_push($msgArray, 'client ' . $clientNode['client_nickname'] . ' (' . $clientNode['clid'] . ') has been added to the Servergroup ');		
    	self::logNotice(str_pad('[BOT-CHAT]', 27, ' ', STR_PAD_RIGHT) . '[COMMAND EXECUTION] command "!addgroup" executed by ' . $invokerNode['client_nickname'] . '(' . $invokerNode['client_unique_identifier']->toString() . ')');			
    break;
    case '!remgroup':
    	if ((!array_key_exists('clid', $params)) || (!array_key_exists('gid', $params))) {
    		throw new Exception('invalid parameter count');
    	}
    	$clientNode = $TS3VirtualServer->clientGetById($params['clid']);
    	$clientNode->remServerGroup($params['gid']);
    	array_push($msgArray, 'client ' . $clientNode['client_nickname'] . ' (' . $clientNode['clid'] . ') has been deleted from the Servergroup ');		
    	self::logNotice(str_pad('[BOT-CHAT]', 27, ' ', STR_PAD_RIGHT) . '[COMMAND EXECUTION] command "!remgroup" executed by ' . $invokerNode['client_nickname'] . '(' . $invokerNode['client_unique_identifier']->toString() . ')');			
    break;

  13. #238
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    marked for next release, but need to be modifed to work with servergroup-protection plugin.
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

  14. #239
    Join Date
    January 2010
    Location
    need not to know
    Posts
    26
    its working with the servergroup protection plugin ^^
    the bot will not add him if the id is not in the servergroup_client.txt ^^
    i tested it


    EDIT: Ok the bot adds the user , removes him and will punish him when a punishment is activated ^^
    ^^ but thats ok for me so i know that my admins cant add any other users to the protected groups.



    PS: Do know a way to check for protected user without adding all functions from the ClientServergroupProtection.php again ^^

  15. #240
    Join Date
    January 2010
    Location
    Germany
    Posts
    252
    Yea, but i want to let the bot add a client to an protected server group, even if the client not in servergroup_client.txt.

    I think i'll add a command like "!makeGroupDB" to manage the servergroup_client.txt rewrite. (to make the changes permanent)
    Allso I'll modify your commands to add the client to $featrueConfig['SERVERGROUP-PROTECTION']['content'] . to temporarly add the client to the allowed members.
    Last edited by florian_fr40; March 29th, 2012 at 09:25 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Release] TS3PHPBot-Plugin
    By Neytiri86 in forum Tools / Web Based
    Replies: 0
    Last Post: August 25th, 2010, 12:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •