Dalexhd

xbot

May 9th, 2018
815
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 86.39 KB | None | 0 0
  1. <?php
  2.     /********************************
  3.  
  4.     Author: Tymoteusz `Razor Meister` Bartnik
  5.  
  6.     Contact: [email protected]
  7.  
  8.     TS3: xbot-ts3.pl
  9.    
  10.     Graphics: Maja, Adamek
  11.  
  12.     Config File
  13.  
  14.     ********************************/
  15.  
  16.  
  17. $config['general'] = array
  18. (
  19.     'connection_ts3' => array
  20.     (
  21.         /**************************************************************************************
  22.  
  23.            ENG [MAIN LOGIN TO TEAMSPEAK3 SERVER]       #       PL [GŁÓWNE LOGOWANIE DO TS3]
  24.  
  25.         **************************************************************************************/
  26.  
  27.  
  28.         // ENG [TeamSpeak3 Server IP Adress]   #   PL [Adres IP serwera]
  29.             'IP'            => '127.0.0.1',
  30.        
  31.         // ENG [TeamSpeak3 Server Query Port]   #   PL [Port Query serwera]
  32.             'query_port'        => '10011',
  33.  
  34.         // ENG [TeamSpeak3 Server Port]   #   PL [Port serwera]
  35.             'port'          => '9988',
  36.  
  37.         // ENG [TeamSpeak3 Server Query Login]   #   PL [Login Query serwera]
  38.             'login'         => 'serveradmin',
  39.  
  40.         // ENG [TeamSpeak3 Server Query Password]   #   PL [Haslo Query serwera]
  41.             'password'      => 'haslo_query',
  42.     ),
  43.  
  44.     'connection_database' => array
  45.     (
  46.         /**************************************************************************************
  47.  
  48.            ENG [MAIN LOGIN TO DATABASE]       #       PL [GŁÓWNE LOGOWANIE DO BAZY DANYCH]
  49.  
  50.         **************************************************************************************/
  51.        
  52.        
  53.         // ENG [Database IP]   #   PL [Adres IP bazy danych]
  54.             'db_ip'         => '127.0.0.1',
  55.  
  56.         // ENG [Database user]   #   PL [Użytkownik bazy danych]
  57.             'db_user'       => 'root',
  58.  
  59.         // ENG [Database password]   #   PL [Hasło do bazy danych]
  60.             'db_password'       => 'haslo_db',
  61.  
  62.         // ENG [Database name]   #   PL [Nazwa bazy danych]
  63.             'db_name'       => 'xbot',
  64.     ),
  65.  
  66.     'instances_settings' => array
  67.     (
  68.         /**************************************************************************************
  69.  
  70.            ENG [MAIN INSTANCES SETTINGS]       #       PL [GŁÓWNE USTAWIENIA INSTANCJI]
  71.  
  72.         **************************************************************************************/
  73.        
  74.         'settings' => array
  75.         (
  76.             // ENG [Show links to profile]  #  PL [Pokazuj linki do profilu]
  77.             'show_links' => array('enabled' => true, 'link' => 'http://panel.xbot-ts3.pl/website/?profile&dbid='),
  78.         ),
  79.  
  80.         'instances' => array
  81.         (
  82.             '1' => array    //Aktualizator
  83.             (
  84.                 'enabled' => true,
  85.                 'database_enabled' => true,
  86.                 'bot_name' => 'XBOT ▪ Aktualizator',
  87.                 'default_channel' => 136,
  88.             ),
  89.  
  90.             '2' => array    //Administrator
  91.             (
  92.                 'enabled' => true,
  93.                 'database_enabled' => true,
  94.                 'bot_name' => 'XBOT ▪ Administrator',
  95.                 'default_channel' => 136,
  96.             ),
  97.  
  98.             '3' => array    //Database
  99.             (
  100.                 'enabled' => true,
  101.                 'database_enabled' => true,
  102.                 'bot_name' => 'XBOT ▪ Database',
  103.                 'default_channel' => 136,
  104.             ),
  105.  
  106.             '4' => array    //Channels Guard
  107.             (
  108.                 'enabled' => true,
  109.                 'database_enabled' => true,
  110.                 'bot_name' => 'XBOT ▪ Channels guard',
  111.                 'default_channel' => 136,
  112.             ),
  113.  
  114.             '5' => array    //Commander
  115.             (
  116.                 'enabled' => true,
  117.                 'database_enabled' => true,
  118.                 'bot_name' => 'XBOT ▪ Commander',
  119.                 'default_channel' => 136,
  120.  
  121.                 // ENG [Set individual ts3 login and password]   #   PL [Ustaw indywidualny login i hasło do ts3]
  122.                 'individual_login' => array
  123.                 (
  124.                     'enabled' => false,
  125.                     'login' => '',
  126.                     'password' => '',
  127.                 ),
  128.             ),
  129.  
  130.             '6' => array    //LiveHelp
  131.             (
  132.                 'enabled' => true,
  133.                 'database_enabled' => true,
  134.                 'bot_name' => 'XBOT ▪ LiveHelp',
  135.                 'default_channel' => 136,
  136.  
  137.                 // ENG [Set individual ts3 login and password]   #   PL [Ustaw indywidualny login i hasło do ts3]
  138.                 'individual_login' => array
  139.                 (
  140.                     'enabled' => true,
  141.                     'login' => 'lh',
  142.                     'password' => '',
  143.                 ),
  144.             ),
  145.         ),
  146.     ),
  147. );
  148.  
  149.  
  150.  
  151. $config['instance']['1']['logs_system'] = array
  152. (
  153.     /****************************************************************************
  154.  
  155.                ENG [LOGS SYSTEM]       #       PL [SYSTEM LOGÓW]
  156.  
  157.     ****************************************************************************/
  158.  
  159.  
  160.     'logs' => array
  161.     (
  162.         // ENG [Turn on/off logs system (true or false)]   #   PL [Włączenie lub wyłączenie systemu logów]
  163.             'enabled' => true,  
  164.  
  165.         // ENG [Days, after which, log files will be deleted]   #   PL [Czas w dniach, po których pliki logów zostana usunięte]
  166.             'delete_interval' => '3',
  167.     ),
  168. );
  169.  
  170.  
  171.  
  172. $config['instance']['1']['options'] = array
  173. (
  174.     /****************************************************************************
  175.  
  176.             ENG [INSTANCE OPTIONS]       #       PL [OPCJE INSTANCJI]
  177.  
  178.     ****************************************************************************/
  179.  
  180.  
  181.     // ENG [Folder for functions containing all events and plugins]   #   PL [Folder w którym sa wszystkie eventy i pluginy]
  182.         'folder'    => 'first_instance',
  183.  
  184.     // ENG [Bot interval in seconds]  #  PL [Interwal bota w sekundach]
  185.         'bot_interval'  => 1,
  186.  
  187.     // ENG ['events_plugins' or 'commands' (default 'events_plugins')]  #  PL ['events_plugins' lub 'commands' (domyślnie 'events_plugins')]
  188.         'function_type' => 'events_plugins',
  189.        
  190.     // ENG [Black list type, 'ban' | 'kick']  #  PL [Typ black listy, 'ban' - banowanie | 'kick' - kickowanie z serwera]
  191.         'black_list_type' => 'kick',
  192. );
  193.  
  194.  
  195.  
  196. $config['instance']['1']['functions'] = array
  197. (
  198.  
  199.  
  200.     /**************************************
  201.  
  202.         ENG [PLUGINS]   #   PL [PLUGINY]
  203.  
  204.     **************************************/
  205.  
  206.  
  207.     'plugins' => true,
  208.  
  209.    
  210.     // ENG [Informing admins about upcoming meeting]    #    PL [Informowanie administracji o zbliżajacym się spotkaniu]
  211.     'admins_meeting' => array
  212.     (
  213.         'enabled' => false,
  214.         'info' => array
  215.         (
  216.             'admins_server_groups' => array(6,35,168),  //all admins server groups
  217.             'channel_id' => 62,                 //meeting channel id
  218.             'channel_name' => '[cspacer3] [x]',     //[x] - meeting date (in format: dd.mm.yyyy hh:mm for example 18.02.2017 18:00) !important you must have channel with that name
  219.             'information_before' => true,               //informing admins `time_to_meeting` seconds before meeting
  220.             'time_to_meeting' => 900,               //in seconds
  221.             'move_admins' => true,                  //move admins to meeting channel on time
  222.         ),
  223.     ),
  224.  
  225.  
  226.     // ENG [Nicknames security]    #    PL [Ochrona nicków]
  227.     'nicks_security' => array
  228.     (
  229.         'enabled' => true,
  230.         'ignored_groups' => array(415,431,467,475,468,449), //ignored groups
  231.         'file' => 'include/cache/nicks_security.txt',   //bad phrases separated by ,(comma) without spaces, enters etc
  232.     ),
  233.  
  234.  
  235.     // ENG [Server groups limit]    #    PL [Limit grup serwera]
  236.     'groups_limit' => array
  237.     (
  238.         'enabled' => false,
  239.         'ignored_groups' => array(),    //ignored groups which will not be check
  240.         'info' => array
  241.         (
  242.             /****************************************
  243.            
  244.                 '1' => array                    //growing number, for example 1, 2, 3...
  245.                 (
  246.                     'checking_groups' => array(52,53,54,55,56), //checking server groups
  247.                     'limit' => 1,                   //limit of checking groups
  248.                 ),
  249.                
  250.             ****************************************/
  251.        
  252.             '1' => array
  253.             (
  254.                 'checking_groups' => array(52,53,54,55,56), //checking server groups
  255.                 'limit' => 1,                   //limit of checking groups
  256.             ),
  257.             '2' => array
  258.             (
  259.                 'checking_groups' => array(10,11,12,13,14,15,16,17,18,19,20,21),    //checking server groups
  260.                 'limit' => 2,                   //limit of checking groups
  261.             ),
  262.         ),     
  263.     ),
  264.  
  265.  
  266.     // ENG [Move specified groups to channel from specified channel]  #  PL [Przenoszenie użytkowników z określoną grupą z kanału na kanał]
  267.     'move_groups' => array
  268.     (
  269.         'enabled' => false,
  270.         'if_client_on_channel' => array(8), //All channels from which bot must move clients | Wszystkie kanały, z których bot ma movać
  271.         'info' => array
  272.         (
  273.             /*************************
  274.  
  275.             0 => array  //growing number: 0,1,2 etc.
  276.             (
  277.                 'is_on_channel' => 50,  //form which channel bot must move people
  278.                 'move_to_channel' => 25,    //to which channel bot must move people
  279.                 'groups' => array(14,13),   //groups which will be checking
  280.             ),
  281.  
  282.             *************************/
  283.  
  284.             0 => array
  285.             (
  286.                 'is_on_channel' => 8,
  287.                 'move_to_channel' => 830,
  288.                 'groups' => array(10,11),
  289.             ),
  290.             1 => array
  291.             (
  292.                 'is_on_channel' => 8,
  293.                 'move_to_channel' => 10,
  294.                 'groups' => array(12,13),
  295.             ),
  296.         ),
  297.     ),
  298.  
  299.    
  300.     //  ENG [Animated icon]  #  PL [Animowana ikonka]
  301.     'animated_icon' => array
  302.     (
  303.         'enabled' => true,
  304.         'info' => array
  305.         (
  306.             /*************************************************
  307.            
  308.                 id => array
  309.                 (
  310.                     'type' => 'servergroup' OR 'cldbid' //If servergroup, id = sgid || if cldbid, id = client database id
  311.                     'icons' =>  array(-2072408170,968796862,1023685817,-1634246665,1726830382),
  312.                 ),
  313.            
  314.             *************************************************/
  315.        
  316.             450 => array
  317.             (
  318.                 'type' => 'servergroup',
  319.                 'icons' =>  array(-2072408170,968796862,1023685817,-1634246665,1726830382),
  320.             ),
  321.             1 => array
  322.             (
  323.                 'type' => 'cldbid',
  324.                 'icons' =>  array(-2072408170,968796862,1023685817,-1634246665,1726830382),
  325.             ),
  326.         ),
  327.     ),
  328.  
  329.  
  330.     /**************************************
  331.  
  332.          ENG [EVENTS]   #   PL [EVENTY]
  333.  
  334.     **************************************/
  335.  
  336.  
  337.     'events' => true,
  338.  
  339.  
  340.     // ENG [Online users]  #  PL [Użytkownicy online]
  341.     'online_users' => array
  342.     (
  343.         'enabled' => true,
  344.         'channel_id' => 25755,
  345.         'ignored_groups' => array(437,449),
  346.         'channel_name' => '» Online: [ONLINE]', //[ONLINE] - online users
  347.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  348.     ),
  349.  
  350.  
  351.     // ENG [Record amount of clients online]  #  PL [Rekordowa ilośc użytkowników online]
  352.     'record_online' => array
  353.     (
  354.         'enabled' => true,
  355.         'channel_id' => 25761,
  356.         'channel_name' => '» Rekord Serwera: [RECORD]', //[RECORD] - record online users
  357.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 20),
  358.     ),
  359.  
  360.  
  361.     // ENG [List of admins online]  #  PL [Lista adminów online]
  362.     'admin_list_online' => array
  363.     (
  364.         'enabled' => true,
  365.         'channel_id' => 25850,
  366.         'admins_server_groups' => array(415,431,467,475),
  367.         'ignored_groups' => array(462),
  368.         'channel_name' => '[spacer][»] Centrum Pomocy adminów: [ONLINE]',             //[ONLINE] - Admins online
  369.         'top_description' => 'Lista Administracji online',
  370.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  371.     ),
  372.  
  373.  
  374.     // ENG [Admin list]  #  PL [Lista adminów]
  375.     'admin_list' => array
  376.     (
  377.         'enabled' => true,
  378.         'min_idle_time' => 5*60,    //minimal client idle time to be away (in seconds)
  379.         'admins_count' => true,     //enable admins count in description
  380.         'info' => array
  381.         (
  382.             25760 => array  //channel id
  383.             (
  384.                 'admins_server_groups' => array(415,431,467,475),  
  385.                 'ignored_groups' => array(462),
  386.                 'top_description' => '[img]https://i.imgur.com/onCuRVU.png[/img]',
  387.                 'icons_enabled' => false,       //Convert rang name to icon
  388.                 'icons' => array
  389.                 (
  390.                     /*************************
  391.  
  392.                     group_id => 'url_to_image',
  393.  
  394.                     ************************/
  395.  
  396.                     6 => 'http://185.24.216.226/owner.png',
  397.                     35 => 'http://surf-ts3.pl/IMAGE/manager.png',
  398.                 ),
  399.             ),
  400.             25844 => array
  401.             (
  402.                 'admins_server_groups' => array(439,447),  
  403.                 'ignored_groups' => array(),
  404.                 'top_description' => 'Administracja V2',
  405.                 'icons_enabled' => false,       //Convert rang name to icon
  406.                 'icons' => array
  407.                 (
  408.                     /*************************
  409.  
  410.                     group_id => 'url_to_image',
  411.  
  412.                     ************************/
  413.  
  414.                     6 => 'http://185.24.216.226/owner.png',
  415.                     35 => 'http://surf-ts3.pl/IMAGE/manager.png',
  416.                 ),
  417.             ),
  418.         ),
  419.        
  420.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  421.     ), 
  422.  
  423.  
  424.     // ENG [Change channel name]  #  PL [Zmiana nazwy kanalu]
  425.     'change_channel' => array
  426.     (
  427.         'enabled' => true,  
  428.         'channel_id' => 25876,
  429.         'channel_name' => array
  430.         (
  431.             '[cspacer] Dziękujemy, że jesteś z nami',
  432.             '[cspacer] Nasze IP się nie zmienia',
  433.             '[cspacer] Witamy na serwerze XBot-ts3.pl',
  434.         ), 
  435.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 45),
  436.     ),
  437.  
  438.  
  439.     // ENG [Multifunction]  #  PL [Wielofunkcyjnośc]
  440.     'multi_function' => array
  441.     (
  442.         'enabled' => true,
  443.         'content' => array
  444.         (
  445.             'total_ping' => array     // ENG [server total ping in channel name]  #  PL [ping serwera w nazwie kanalu]
  446.             (
  447.                 'enabled' => true,
  448.                 'channel_id' => 25768,
  449.                 'channel_name' => '» Średni ping wynosi: [PING]',         // [PING] = ping
  450.                 'integer' => true,                      // true or false (ping in integer)
  451.             ),
  452.             'packet_loss' => array    // ENG [server packet loss in channel name]  #  PL [packet loss serwera w nazwie kanalu]
  453.             (
  454.                 'enabled' => true,
  455.                 'channel_id' => 25769,
  456.                 'channel_name' => '» Packetloss wynosi: [PACKETLOSS]%',    // [PACKETLOSS] = packetloss
  457.                 'integer' => true,                      // true or false (packetloss in integer)
  458.             ),
  459.             'channels_count' => array // ENG [channels count in channel name]  #  PL [ilosc kanalów w nazwie kanalu]
  460.             (
  461.                 'enabled' => true,
  462.                 'channel_id' => 25770,
  463.                 'channel_name' => '» Kanałów ogółem: [CHANNELS]',  // [CHANNELS] = channels count
  464.             ),
  465.             'bytes_upload' => array // ENG [bytes upload on server in channel name]  #  PL [ilość danych wysłanych przez serwer]
  466.             (
  467.                 'enabled' => true,
  468.                 'channel_id' => 25772,
  469.                 'channel_name' => '» Danych wysłanych: [UPLOAD]',     // [UPLOAD] = bytes upload
  470.             ),
  471.             'bytes_download' => array // ENG [bytes download on server in channel name]  #  PL [ilość danych pobranych przez serwer]
  472.             (
  473.                 'enabled' => true,
  474.                 'channel_id' => 25771,
  475.                 'channel_name' => '» Danych pobranych: [DOWNLOAD]',    // [DWONLOAD] = bytes download
  476.             ),
  477.         ), 
  478.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  479.     ),
  480.  
  481.  
  482.     // ENG [Support channels]  #  PL [Kanały pomocy]
  483.     'support_channels' => array
  484.     (
  485.         'enabled' => true,
  486.         'content' => array
  487.         (
  488.             'time_open' => array        //Channels open at a specific time
  489.             (
  490.                 '0' => array                                             // growing number for example 1, 2, 3...
  491.                 (
  492.                     'channelId' => 25852,                                       // channel id              
  493.                     'time_open' => '09:00',                                     // time of opening             
  494.                     'time_close' => '23:50',                                     // time of closing            
  495.                     'channel_name_open' => '[»] Centrum Pomocy TS3 [ON]',       // channel name when opened   
  496.                     'channel_name_close' => '[»] Centrum Pomocy TS3 [OFF]',     // channel name when closed
  497.                     'needed_join_power' => 1500,                        //when close
  498.                     'change_maxfamily_clients' => false,                            // close family channels too       
  499.                 ),
  500.             ),
  501.  
  502.             'open_when_admin' => array  //Channels open when admin from server group is online
  503.             (
  504.                 /*************************
  505.  
  506.                 ###
  507.                 #   open when admin from groups online: 'admin' => array(server_groups separated by comma),
  508.                 ###
  509.  
  510.                 ###
  511.                 #   open when client online: 'admin' => client_database_id,
  512.                 ###
  513.  
  514.                 *************************/
  515.  
  516.                 '0' => array                                             // growing number for example 1, 2, 3...
  517.                 (
  518.                     'channelId' => 0,                                       // channel id              
  519.                     'admin' => 1,              
  520.                     'channel_name_open' => '[»] Centrum Pomocy XBot [ON]',      // channel name when opened   
  521.                     'channel_name_close' => '[»] Centrum Pomocy XBot [OFF]',     // channel name when closed
  522.                     'needed_join_power' => 200,                     //when close
  523.                     'change_maxfamily_clients' => false,                             // close family channels too      
  524.                 ),
  525.             ),
  526.  
  527.         ),
  528.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 10),
  529.     ),
  530.  
  531.  
  532.     // ENG [Get vip channel]  #  PL [Otrzymywanie kanału vip]
  533.     'get_vip_channel' => array  // Db must be on
  534.     (
  535.         'enabled' => true,
  536.         'if_client_on_channel' => array(25856, 25858),      // all checking channels id
  537.  
  538.         'info' => array
  539.         (
  540.             'VIP' => array  //Zone name for example 'VIP' | 'GOLD'
  541.             (
  542.                 'if_on_channel' => 25856,
  543.                 'server_group_copy' => 461,         // server group to copy
  544.                 'channel_group_id' => 71,           // default channel admin group
  545.                 'subchannels' => 5,             // how many subchannels
  546.                 'subchannels_red' => true,      // true - max cleints = 0 | false - max clients = unlimited
  547.                 'online_from_server_group' => true, // create channel with information about clients from server group
  548.                 'get_server_group' => true,     // create channel add/del server group
  549.                 'after_channel' => 25917,           // the first channel for example spacer
  550.        
  551.                 'spacer_between' => array
  552.                 (
  553.                     'enabled' => true,
  554.                     'spacer_name' => '[*spacerVIP[NUM]]___',
  555.                     'join_needed' => 150,
  556.                     'modify_needed' => 100,
  557.                 ),
  558.                 'main_channel' => '[lspacer] [[NUM]] ViP',  // [NUM] - vip channel number  
  559.                 'empty_topic' => '#WOLNY',          // Topic in empty channel (remember it)
  560.             ),
  561.             'Diamond' => array //Zone name for example 'VIP' | 'GOLD'
  562.             (
  563.                 'if_on_channel' => 25858,
  564.                 'server_group_copy' => 463,         // server group to copy
  565.                 'channel_group_id' => 71,           // default channel admin group
  566.                 'subchannels' => 15,                // how many subchannels
  567.                 'subchannels_red' => true,      // true - max cleints = 0 | false - max clients = unlimited
  568.                 'online_from_server_group' => true, // create channel with information about clients from server group
  569.                 'get_server_group' => true,     // create channel add/del server group
  570.                 'after_channel' => 25789,           // the first channel for example spacer
  571.                
  572.                 'spacer_between' => array
  573.                 (
  574.                     'enabled' => true,
  575.                     'spacer_name' => '[*spacerDiamond[NUM]]---',
  576.                     'join_needed' => 150,
  577.                     'modify_needed' => 100,
  578.                 ),
  579.                 'main_channel' => '[lspacer] [[NUM]] Diamond',  // [NUM] - vip channel number  
  580.                 'empty_topic' => '#WOLNY_D',            // Topic in empty channel (remember it)
  581.             ),
  582.         ),
  583.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  584.     ),
  585.  
  586.    
  587.     // ENG [Get vip channel spacer]  #  PL [Otrzymywanie kanału vip na spacerach]
  588.     'get_vip_channel_spacer' => array   // Db must be on
  589.     (
  590.         'enabled' => true,
  591.         'if_client_on_channel' => array(26016),         // all checking channels id
  592.  
  593.         'info' => array
  594.         (
  595.             'Premium' => array  //Zone name for example 'VIP' | 'GOLD'
  596.             (
  597.                 'if_on_channel' => 26016,
  598.                 'server_group_copy' => 463,         // server group to copy
  599.                 'channel_group_id' => 71,           // default channel admin group
  600.                 'after_channel' => 25822,           // the first channel for example spacer
  601.                 'online_from_server_group_name' => '[rspacer] [SERVER_GROUP]: [ONLINE]/[MAX]',  // [SERVER_GROUP] - group name, [ONLINE],
  602.            
  603.                 'spacers' => array
  604.                 (
  605.                     /*************************************
  606.                    
  607.                         '1' => array    // Growing number
  608.                         (
  609.                             'name' => '[cspacer] [[NUM]] Premium',  // [NUM] - vip channel number
  610.                             'subchannels' => 0,
  611.                             'subchannels_red' => true,  // true - max clients = 0 | false - max clients = unlimited
  612.                         ),
  613.                        
  614.                         add `'get_group_spacer' => true` if get group must be a spacer
  615.                         add `'online_group_spacer' => true` if online from group must be a spacer
  616.                        
  617.                         add `'get_group_subchannel' => true` if get group must be in the subchannel
  618.                         add `'online_group_subchannel' => true` if online from group must be in the subchannel
  619.                    
  620.                     *************************************/
  621.                
  622.                     '1' => array    // Main channel
  623.                     (
  624.                         'name' => '[cspacer] [[NUM]] Premium',  // [NUM] - vip channel number
  625.                         'subchannels' => 0,
  626.                         'subchannels_red' => true,  // true - max clients = 0 | false - max clients = unlimited
  627.                     ),
  628.                     '2' => array    // Main channel
  629.                     (
  630.                         'name' => '[rspacer[NUM]] Online z:',   // [NUM] - vip channel number
  631.                         'subchannels' => 0,
  632.                         'subchannels_red' => true,  // true - max clients = 0 | false - max clients = unlimited
  633.                         'online_group_spacer' => true,
  634.                     ),
  635.                     '3' => array    // Main channel
  636.                     (
  637.                         'name' => '[rspacer[NUM]] Nadaj grupe', // [NUM] - vip channel number
  638.                         'subchannels' => 0,
  639.                         'subchannels_red' => true,  // true - max clients = 0 | false - max clients = unlimited
  640.                         'get_group_spacer' => true,
  641.                     ),
  642.                     '4' => array
  643.                     (
  644.                         'name' => '[lspacerzarzad[NUM]]Zarząd',    // [NUM] - vip channel number
  645.                         'subchannels' => 3,
  646.                         'subchannels_red' => true,  // true - max clients = 0 | false - max clients = unlimited
  647.                        
  648.                         'online_group_subchannel' => true,
  649.                         'get_group_subchannel' => true,
  650.                     ),
  651.                     '5' => array
  652.                     (
  653.                         'name' => '[lspacerkanaly[NUM]]Kanały',    // [NUM] - vip channel number
  654.                         'subchannels' => 4,
  655.                         'subchannels_red' => false, // true - max clients = 0 | false - max clients = unlimited
  656.                     ),
  657.                 ),
  658.                 'spacer_between' => array
  659.                 (
  660.                     'enabled' => true,
  661.                     'spacer_name' => '[*spacerPremium[NUM]]___',
  662.                     'join_needed' => 150,
  663.                     'modify_needed' => 100,
  664.                 ),
  665.             ),
  666.         ),
  667.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  668.     ),
  669.  
  670.     // ENG [Information on channel about twitch/youtube channel]  #  PL [Informacje o kanale twitch/youtube]
  671.     'twitch_yt' => array
  672.     (
  673.         'enabled' => true,
  674.         'info' => array
  675.         (
  676.             'twitch_enabled' => true,
  677.             'twitch_api_key' => 'oaocbf2zpmv6807kp9jcxkwmcjvq5a', // you can change it if you want https://www.twitch.tv/settings/connections
  678.             'twitch' => array
  679.             (
  680.                 'izakooo' => array  //Twitch channel name
  681.                 (
  682.                     'channel_id' => 25769,
  683.                     'channel_name' => 'izakooo [STATUS_TWITCH]',    //[STATUS_TWITCH] - on live or no
  684.                 ),
  685.             ),
  686.             'youtube_enabled' => true,
  687.             'youtube_api_key' => 'AIzaSyAEQeDyRwJxVHw_m8wCD-P7oT_ufy4waX0',
  688.             'youtube' => array
  689.             (
  690.                 /*****************************************
  691.                
  692.                     'UC-suExuAUNgJmyKcxA-PGzg' => array     //YouTube channel id
  693.                     (
  694.                         'main_channel' => array     //Channel where will be description and SUBS in channel name
  695.                         (
  696.                             'channel_id' => 0,
  697.                             'channel_name' => '[ YouTuber ] Ramzes: [SUBS] subów', //[SUBS] - subscribers  //[NAME] - youtuber nick
  698.                         ),
  699.                         'videos_count' => array     //Channel where will be Videos count in channel name
  700.                         (
  701.                             'channel_id' => 0,
  702.                             'channel_name' => '» Filmów na kanale: [VIDEOS]', //[VIDEOS] - videos count
  703.                         ),
  704.                         'views_count' => array      //Channel where will be views count in channel name
  705.                         (
  706.                             'channel_id' => 0,
  707.                             'channel_name' => '» Wyświetleń: [VIEWS]',       //[VIEWS] - views count
  708.                         ),
  709.                     ),
  710.  
  711.                 ******************************************/
  712.            
  713.                 'UC-suExuAUNgJmyKcxA-PGzg' => array     //YouTube channel id
  714.                 (
  715.                     'main_channel' => array     //Channel where will be description and SUBS in channel name
  716.                     (
  717.                         'channel_id' => 0,
  718.                         'channel_name' => '[ YouTuber ] Ramzes: [SUBS] subów', //[SUBS] - subscribers  //[NAME] - youtuber nick
  719.                     ),
  720.                     'videos_count' => array     //Channel where will be Videos count in channel name
  721.                     (
  722.                         'channel_id' => 0,
  723.                         'channel_name' => '» Filmów na kanale: [VIDEOS]', //[VIDEOS] - videos count
  724.                     ),
  725.                     'views_count' => array      //Channel where will be views count in channel name
  726.                     (
  727.                         'channel_id' => 0,
  728.                         'channel_name' => '» Wyświetleń: [VIEWS]',       //[VIEWS] - views count
  729.                     ),
  730.                 ),
  731.             ),
  732.         ),
  733.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 7,'seconds' => 0),
  734.     ),
  735.  
  736.    
  737.     // ENG [clients online from server group]  #  PL [użytkownicy danej grupy serwera online]
  738.     'online_from_server_group' => array
  739.     (
  740.         'enabled' => true,
  741.         'show_time' => true,        //only for groups which have maximal 15 members | true / false
  742.         'max_users' => 30,          //max users in description
  743.    
  744.         'info' => array
  745.         (
  746.             /*******************************
  747.            
  748.             233 => array // Channel ID
  749.             (
  750.                 'server_groups' => array(10), // Server groups separated by comma
  751.                 'show_description' => true,   // Show users in description
  752.                 'only_online' => true,        // Show only online clients
  753.                 'channel_name' => '[rspacer]Online z [SERVER_GROUP]: [ONLINE]/[MAX]', // Channel name
  754.                 'top_description' => '| Lista osób z rangi: [SERVER_GROUP] |', // Top description
  755.             ),
  756.            
  757.             *******************************/
  758.        
  759.             25909 => array
  760.             (
  761.                 'server_groups' => array(419,420),
  762.                 'show_description' => true,
  763.                 'only_online' => false,
  764.                 'channel_name' => '[rspacer]Online z [SERVER_GROUP]: [ONLINE]/[MAX]',
  765.                 'top_description' => '| Lista osób z rangi: [SERVER_GROUP] |',
  766.             ),
  767.         ),
  768.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 10),
  769.     ),
  770.  
  771.    
  772.     // ENG [assign server group if client enters a channel]  #  PL [przypisz grupę serwera po wejściu na kanal]
  773.     'get_server_group' => array
  774.     (
  775.         'enabled' => true,
  776.         'if_client_on_channel' => array(25911), //all checking channels id
  777.         'delete_rang' => true,  //delete rang if client is on channel
  778.         'client_kick' => true,  //Kick client from channel after assignment/deleted group | true / false
  779.         'poke_client' => false, //Poke client for example: You have just received clan group!
  780.         'info' => array
  781.         (
  782.             //21410 => 227, //channel id => server group id
  783.             25911 => 473,
  784.         ),
  785.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 10),
  786.     ),
  787.  
  788.  
  789.     // ENG [Ddos information]  #  PL [Informacje o ddos]
  790.     'ddos_information' => array
  791.     (
  792.         'enabled' => true,
  793.         'file' => 'include/cache/ddos_information.txt',
  794.         'packet_loss' => 10,        //from what packet loss%(numeric) send global information
  795.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 30),
  796.     ),
  797.    
  798.        
  799.     // ENG [Informing about client in channel name]  #  PL [Status użytkownika w nazwie kanalu]
  800.     'client_on_channel' => array
  801.     (
  802.         'enabled' => true,
  803.         'server_groups_id' => array(415,431,467,475),   //all checking client's server groups
  804.         'ignored_groups' => array(462),
  805.         'idle_time' => 1800,    //idle time to have away status (in seconds)
  806.         'show_description' => true,     //show description on channels
  807.         'info' => array
  808.         (
  809.             /***************************************************************
  810.  
  811.                 (you can copy this to use this function many times)
  812.            
  813.             10 => array   //client databse id => array 
  814.             (
  815.                 'channel_id' => 432,    //channel id   
  816.                 'format' => '[RANG] >> [NICK] >> [STATUS]',    //format on channel name [RANG] - server group name, [NICK] - client nick, [STATUS] - client status (online/away/offline)
  817.                 'fb' => 'https://www.facebook.com/XBot-bot-na-tw%C3%B3j-serwer-TS3-1719172075053504/messages/',     //If none set 0
  818.                 'email' => '[email protected]',   //If none set 0
  819.             ),
  820.  
  821.             ***************************************************************/
  822.  
  823.             18949 => array      // client dbid => array
  824.             (
  825.                 'channel_id' => 25838,  //channel id
  826.                 'format' => '[[RANG]] [NICK] - [STATUS]',       //format on channel name [RANG] - server group name, [NICK] - client nick, [STATUS] - client status (online/away/offline)
  827.                 'fb' => 'https://www.facebook.com/XBot-bot-na-tw%C3%B3j-serwer-TS3-1719172075053504/messages/',
  828.                 'email' => '[email protected]',  
  829.             ),
  830.             2488 => array       // client dbid => array
  831.             (
  832.                 'channel_id' => 25839,  //channel id
  833.                 'format' => '[[RANG]] [NICK] - [STATUS]',       //format on channel name [RANG] - server group name, [NICK] - client nick, [STATUS] - client status (online/away/offline)
  834.                 'fb' => 'https://www.facebook.com/D0M1N000',
  835.                 'email' => '[email protected]',
  836.             ),
  837.             70 => array     // client dbid => array
  838.             (
  839.                 'channel_id' => 25840,  //channel id
  840.                 'format' => '[[RANG]] [NICK] - [STATUS]',       //format on channel name [RANG] - server group name, [NICK] - client nick, [STATUS] - client status (online/away/offline)
  841.                 'fb' => 'https://www.facebook.com/XBot-bot-na-tw%C3%B3j-serwer-TS3-1719172075053504/messages/',
  842.                 'email' => '[email protected]',
  843.             ),
  844.             19833 => array      // client dbid => array
  845.             (
  846.                 'channel_id' => 25841,  //channel id
  847.                 'format' => '[[RANG]] [NICK] - [STATUS]',       //format on channel name [RANG] - server group name, [NICK] - client nick, [STATUS] - client status (online/away/offline)
  848.                 'fb' => '0',
  849.                 'email' => '0',
  850.             ),
  851.         ),
  852.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  853.     ),
  854.  
  855.    
  856.     // ENG [Status sinusbot]  #  PL [Status sinusbotów]
  857.     'status_sinusbot' => array
  858.     (
  859.         'enabled' => true,
  860.         'channel_id' => 25759,
  861.         'bots_server_groups' => array(437),        
  862.         'top_description' => '[img]https://i.imgur.com/cWwskNb.png[/img]',
  863.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 1,'seconds' => 0),
  864.     ),
  865.  
  866.  
  867.     // ENG [List of server queries online]  #  PL [Lista klientów server query online]
  868.     'server_query_online' => array
  869.     (
  870.         'enabled' => true,
  871.         'channel_id' => 25763,
  872.         'channel_name' => '» Server Query online: [ONLINE]',           //[ONLINE] - Server Query online
  873.         'top_description' => '[img]https://i.imgur.com/KCvBQlm.png[/img]',
  874.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 20),
  875.     ),
  876.  
  877.  
  878.     // ENG [Ban list]  #  PL [Lista banów]
  879.     'ban_list' => array
  880.     (
  881.         'enabled' => true,
  882.         'channel_id' => 25756,
  883.         'how_many' => 10,
  884.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 1,'seconds' => 0),
  885.     ),
  886.  
  887.  
  888.     // ENG [Facebook posts]  #  PL [Posty z facebook'a]
  889.     'facebook_posts' => array
  890.     (
  891.         'enabled' => true,
  892.         'channel_id' => 25758,
  893.         'channel_name' => '» Fanpage (Likes: [LIKES])',    //[LIKES] - likes count
  894.         'page_id' => '1719172075053504', //You can find it on website: https://findmyfbid.com/
  895.         'access_token' => '',
  896.         'posts' => 1,
  897.         'link_to_fanpage' => 'https://www.facebook.com/XBot-bot-na-tw%C3%B3j-serwer-TS3-1719172075053504/',
  898.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 1,'minutes' => 0,'seconds' => 0),
  899.     ),
  900.  
  901.  
  902.     // ENG [Game servers' info]  #  PL [Informacje o serwerach gier]
  903.     'servers_info' => array
  904.     (
  905.         'enabled' => true,
  906.         'info' => array
  907.         (
  908.             /******************************************
  909.            
  910.                 0 => array
  911.                 (
  912.                     'type' => 'server_type',
  913.                     'host' => 'ip:port',            //for example 195.32.532.321:1045
  914.                     'channel_id' => channel_id(value),  //for exaple 45
  915.                     'channel_name' => 'channel_name(value)',
  916.                 ),
  917.  
  918.                 server_type: 'cs16' - CS 1.6 server | 'csgo' - CS:GO server | 'minecraft' - Minecraft server
  919.                 All servers: https://github.com/Austinb/GameQ/tree/v3/src/GameQ/Protocols
  920.  
  921.                 vars in channel name: [NAME] - name of server | [CLIENTS_ONLINE] - online clients | [CLIENTS_MAX] - max clients | [MAP] - map in CS servers | [VERSION] - version in minecraft server
  922.  
  923.                 For example:
  924.            
  925.                 0 => array  growing number from 0   (0,1,2,3,4,5,itd)
  926.                 (  
  927.                     'type' => 'cs16',
  928.                     'host' => '193.70.125.254:27030',
  929.                     'channel_id' => 20922,
  930.                     'channel_name' => 'Online: [CLIENTS_ONLINE] | Mapa: [MAP]',
  931.                     'custom_server_name' => '0',    // Set 0 if none
  932.                 ),
  933.  
  934.             ******************************************/
  935.  
  936.             0 => array
  937.             (
  938.                 'type' => 'minecraft',
  939.                 'host' => '91.134.209.194:25565',
  940.                 'channel_id' => 25778,
  941.                 'channel_name' => 'MC ([CLIENTS_ONLINE]/[CLIENTS_MAX])',
  942.                 'custom_server_name' => 'KRAINA MC',    // Set 0 if none
  943.             ),
  944.             1 => array
  945.             (
  946.                 'type' => 'cs16',
  947.                 'host' => '213.238.173.177:27015',
  948.                 'channel_id' => 25779,
  949.                 'channel_name' => '[lspacer][»] COD MOD ([CLIENTS_ONLINE]/[CLIENTS_MAX])',
  950.                 'custom_server_name' => '0',    // Set 0 if none
  951.             ),
  952.         ),
  953.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 5,'seconds' => 0),
  954.     ),
  955.  
  956.  
  957.  
  958.    
  959.     // ENG [Users' country list]  #  PL [Lista krajów użytkowników]
  960.     'country_list' => array
  961.     (
  962.         'enabled' => true,
  963.         'channel_id' => 25764,
  964.         'channel_name' => '» Osób online spoza Polski: [ONLINE]', //[ONLINE] online clients outside the specified country
  965.         'default_country' => 'PL',
  966.         'top_description' => 'Lista osób ONLINE spoza Polski',
  967.         'ignored_groups' => array(1437,449),
  968.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 2,'seconds' => 0),
  969.     ),
  970.  
  971.  
  972.     // ENG [Name_day in channel name]  #  PL [Imieniny w nazwie kanału]
  973.     'name_day' => array
  974.     (
  975.         'enabled' => true,
  976.         'channel_id' => 25766,
  977.         'channel_name' => '» Im: [NAME]',  //[NAME] - name
  978.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 2,'seconds' => 0),
  979.     ),
  980.  
  981.  
  982.     // ENG [Partners]  #  PL [Partnerzy]
  983.     'partners' => array
  984.     (
  985.         'enabled' => true,  
  986.         'channel_id' => 25872,
  987.         'info' => array
  988.         (
  989.             '[cspacer] TSForum.pl' => 'przykładowy opis TSForum.pl',
  990.             '[cspacer] Aplikacja XBot' => "[center][img]http://adamek-ts3.eu/png/Xbot.png[/img][hr][/center][center][size=15][b]Informacje[/b][/size][/center][hr]
  991. [list][*][size=10][b]Witam, chciałbym Wam zaprezentować bota pod serwery TS3 - [url=ts3server://xbot-ts3.pl]XBota.[/url][/list][list][*][B]Jest on zautomatyzowaną aplikacją napisaną od zera przeze mnie ([U][I] RazorMeister [/I][/U]).  Posiada dużo pluginów, eventów i komend, które ułatwiają pracę zarówno administracji serwerów jak i ich użytkownikom. Więcej szczegółowych informacji dotyczących poszczególnych instancji jak i samych funkcji udzielę Na Ts3 IP: [url=ts3server://xbot-ts3.pl]XBot-Ts3.pl.[/url][/B][/list][list][*][size=10][B]Forum: [/B][url=https://tsforum.pl/xbot-bot-pod-tw%C3%B3j-serwer-teamspeak3-797/][B][XBOT] - Bot pod Twój serwer TeamSpeak3[/B][/url][/list][list][*][size=10][img]https://i.imgur.com/xcWAHb0.png[/img] [B]FB[/B]: [url=https://www.facebook.com/XBot-bot-na-tw%C3%B3j-serwer-TS3-1719172075053504/messages/][B]XBOT[/B][/url][/list][list][*][size=10][img]https://i.imgur.com/7zaoIAK.png[/img] [B]Email[/B]: [url=mailto:[email protected]][B][email protected][/B][/url]
  992. [hr][/list]",
  993.             '[cspacer] DOM1NO.pl' => "[center][hr][size=15][COLOR=#1eb7ee][b]• | D0M1N0.PL | •
  994. Usługi Web Developerskie[/COLOR][/size][/center]
  995. [center][hr][size=15][COLOR=#127494][b]• | Kontakt | •[/COLOR]
  996. [url=http://d0m1n0.pl/][img]https://i.imgur.com/WJJO6gG.png[/img][/url] [url=https://telegram.me/d0m1n000][img]https://i.imgur.com/6BBb3JB.png[/img][/url] [url=http://steamcommunity.com/id/D0M1N000/][img]https://i.imgur.com/9QxW9Rn.png[/img][/url] [url=https://www.instagram.com/d0m1n000/][img]https://i.imgur.com/CzBycNB.png[/img][/url]
  997. [hr][size=15][COLOR=#127494][b]• | INNE | •[/COLOR]
  998. [img]https://i.imgur.com/2QoybUG.png[/img]
  999. [img]https://i.imgur.com/w73iVYC.png[/img]
  1000. [color=#1eb7ee]D0M1N000[/color][/center]
  1001. [hr][right][size=10][b][color=#1eb7ee]Copyright © 2018 D0M1N0.PL All rights reserved.",
  1002.         ), 
  1003.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 1,'seconds' => 0),
  1004.     ),
  1005.  
  1006.  
  1007.     // ENG [Generate cache]  #  PL [Generuj plik cache]
  1008.     'generate_cache' => array
  1009.     (
  1010.         'enabled' => true,  
  1011.         'target_file' => '/var/www/html/vip/cache/cache.txt',
  1012.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1013.     ),
  1014.  
  1015.    
  1016.     // ENG [XBot info]  #  PL [Informacje od twórcy w opisie kanału]
  1017.     'xbot_info' => array    //Checking on the server every 15 minutes
  1018.     (
  1019.         'enabled' => true,  
  1020.         'channel_id' => 25773, 
  1021.         'translate' => array
  1022.         (
  1023.             'enabled' => true,
  1024.             'target_language' => 'en',  // Type language code https://cloud.google.com/translate/docs/languages
  1025.         ),
  1026.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1027.     ),
  1028.    
  1029.     // ENG [Get YT channel]  #  PL [Otrzymywanie kanału YouTube]
  1030.     'get_yt_channel' => array   // Db must be on
  1031.     (
  1032.         'enabled' => true,
  1033.         'if_client_on_channel' => array(25857),         // all checking channels id
  1034.  
  1035.         'if_on_channel' => 25857,
  1036.         'channel_group_id' => 71,           // default channel admin group
  1037.         'subchannels' => 5,             // how many subchannels
  1038.         'subchannels_red' => true,      // true - max cleints = 0 | false - max clients = unlimited
  1039.         'videos_count' => true,         // create channel with information about videos count on yt channel
  1040.         'views_count' => true,          // create channel with information about views count on yt channel
  1041.         'after_channel' => 25789,           // the first channel for example spacer
  1042.        
  1043.         'spacer_between' => array
  1044.         (
  1045.             'enabled' => true,
  1046.             'spacer_name' => '[*spacerYT[NUM]]___',
  1047.             'join_needed' => 150,
  1048.             'modify_needed' => 100,
  1049.         ),
  1050.         'main_channel' => '[cspacer]■ [[NUM]] YT ■',    // [NUM] - vip channel number  
  1051.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 10,'seconds' => 0),
  1052.     ),
  1053.    
  1054.     // ENG [Away Group]  #  PL [Grupa away]
  1055.     'away_group' => array
  1056.     (
  1057.         'enabled' => true,  
  1058.         'server_group_copy' =>  471,
  1059.         'min_idle_time' => 5*60,
  1060.         'ignored_groups' => array(447),
  1061.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1062.     ),
  1063.    
  1064.     // ENG [Cache icons]  #  PL [Generuj ikonki do katalogu]
  1065.     'cache_icons' => array
  1066.     (
  1067.         'enabled' => true,  
  1068.         'icons_path' => '/var/www/html/server_icons/',
  1069.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 5,'seconds' => 0),
  1070.     ),
  1071.  
  1072.     // ENG [Weather in cities]  #  PL [Pogoda w miastach]
  1073.     'weather' => array
  1074.     (
  1075.         'enabled' => true,  
  1076.         'api_key' => '',  //You can find api on website: openweathermap.org
  1077.         'info' =>  array
  1078.         (
  1079.             25775 => array
  1080.             (
  1081.                 'country_code' => 'PL', //country code  for example: Poland - PL
  1082.                 'city' => 'Warszawa',   //without polish symbols
  1083.                 'channel_name' => 'Pogoda - [CITY]',        //[CITY] - city name
  1084.             ),
  1085.         ),
  1086.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 5,'seconds' => 0),
  1087.     ),
  1088.    
  1089.     // ENG [Countdown]  #  PL [Odliczanie]
  1090.     'countdown' => array
  1091.     (
  1092.         'enabled' => true,  
  1093.         'info' => array
  1094.         (
  1095.             /**************************************
  1096.            
  1097.                 '0' => array    // Growing number: 0, 1, 2, etc
  1098.                 (
  1099.                     'channel_id' => 5761,
  1100.                     'channel_name' => 'Do wakacji [COUNT]', //[COUNT] - time to/from date
  1101.                     'date' => '22-06-2018 09:00',   // Format: dd-mm-YYYY GG:MM for example: 22-06-2018 09:00
  1102.                     'count_type' => 'to_date',      // Count type: 'to_date' (for example time to next event), 'from_date' (for example time from server start)
  1103.                 ),
  1104.            
  1105.             ***************************************/
  1106.        
  1107.             '0' => array
  1108.             (
  1109.                 'channel_id' => 25776,
  1110.                 'channel_name' => 'Do wakacji [COUNT]', //[COUNT] - time to/from date
  1111.                 'date' => '22-06-2018 09:00',   // Format: dd-mm-YYYY GG:MM for example: 22-06-2018 09:00
  1112.                 'count_type' => 'to_date',      // Count type: 'to_date' (for example time to next event), 'from_date' (for example time from server start)
  1113.             ),
  1114.             '1' => array
  1115.             (
  1116.                 'channel_id' => 25777,
  1117.                 'channel_name' => 'Od startu [COUNT]',  //[COUNT] - time to/from date
  1118.                 'date' => '01-01-2018 09:00',   // Format: dd-mm-YYYY GG:MM for example: 22-06-2018 09:00
  1119.                 'count_type' => 'from_date',        // Count type: 'to_date' (for example time to next event), 'from_date' (for example time from server start)
  1120.             ),
  1121.         ),
  1122.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 5,'seconds' => 0),
  1123.     ),
  1124. );
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130. $config['instance']['2']['logs_system'] = array
  1131. (
  1132.     /****************************************************************************
  1133.  
  1134.               ENG [LOGS SYSTEM]       #       PL [SYSTEM LOGÓW]
  1135.  
  1136.     ****************************************************************************/
  1137.  
  1138.  
  1139.     'logs' => array
  1140.     (
  1141.         // ENG [Turn on/off logs system (true or false)]   #   PL [Wlaczenie lub wylaczenie systemu logów]
  1142.             'enabled' => true,  
  1143.  
  1144.         // ENG [Days, after which, log files will be deleted]   #   PL [Czas w dniach, po których pliki logów zostana usunięte]
  1145.             'delete_interval' => '3',
  1146.     ),
  1147. );
  1148.  
  1149.  
  1150.  
  1151. $config['instance']['2']['options'] = array
  1152. (
  1153.     /****************************************************************************
  1154.  
  1155.             ENG [INSTANCE OPTIONS]       #       PL [OPCJE INSTANCJI]
  1156.  
  1157.     ****************************************************************************/
  1158.  
  1159.  
  1160.     // ENG [Folder for functions containing all events and plugins]   #   PL [Folder w którym sa wszystkie eventy i pluginy]
  1161.         'folder'    => 'second_instance',
  1162.  
  1163.     // ENG [Bot interval in seconds]  #  PL [Interwal bota w sekundach]
  1164.         'bot_interval'  => 1,
  1165.  
  1166.     // ENG ['events_plugins' or 'commands' (default 'events_plugins')]  #  PL ['events_plugins' lub 'commands' (domyślnie 'events_plugins')]
  1167.         'function_type' => 'events_plugins',
  1168. );
  1169.  
  1170.  
  1171.  
  1172. $config['instance']['2']['functions'] = array
  1173. (
  1174.  
  1175.  
  1176.     /**************************************
  1177.  
  1178.         ENG [PLUGINS]   #   PL [PLUGINY]
  1179.  
  1180.     **************************************/
  1181.  
  1182.  
  1183.     'plugins' => true,
  1184.  
  1185.  
  1186.  
  1187.  
  1188.     // ENG [Connect message]  #  PL [Wiadomośc polaczenia]
  1189.     'connect_message' => array
  1190.     (
  1191.         'enabled' => true,
  1192.         'file' => 'include/cache/connect_message.txt',  //file to connect message
  1193.         'many_messages' => true,            //true if single line = one message || false for one message
  1194.         'to_groups' => array(-1),               //connect message to specified server_groups | set -1 to all server groups | set gorups_id separated by comma
  1195.  
  1196.         /************************************
  1197.  
  1198.         [CLIENT_IP] =  Client nickname
  1199.         [CLIENT_NICK] = Client nickname
  1200.         [CLIENT_COUNTRY] = Client country
  1201.         [CLIENT_DBID] = Client databse id
  1202.         [CLIENT_VERSION] = Client TS3 version
  1203.         [CLIENT_CONNECTIONS] = Client total connections
  1204.         [CLIENT_PLATFORM] = Client platform
  1205.         [CLIENT_TOTALCONNECTIONS] = Client total connections
  1206.         [CLIENT_LASTCONNECTED] = Client lastconnected
  1207.         [CLIENT_AWAY_MESSAGE] = Client away message
  1208.         [CLIENT_CREATED] = Client created
  1209.         [CLIENT_ON_SERVER_FOR] = Client is with server for ... for example 2 days and 1 minute
  1210.  
  1211.         [SERVER_MAX_CLIENTS] = Server max clients
  1212.         [SERVER_ONLINE] = Online users
  1213.         [SERVER_CHANNELS] = Channel number
  1214.         [SERVER_ID] = Virtual server id
  1215.         [SERVER_PORT] = Server port
  1216.         [SERVER_NAME] = Server name
  1217.         [SERVER_VERSION] = Server version
  1218.         [SERVER_VUI] = Server unique identifier
  1219.         [SERVER_WELCOME_MESSAGE] = Virtualserver welcomemessage
  1220.         [SERVER_PLATFORM] = Server platform
  1221.         [SERVER_HOSTMESSAGE] = Server hostmessage
  1222.         [SERVER_UPTIME] = Server uptime
  1223.  
  1224.  
  1225.         *************************************/
  1226.     ),
  1227.  
  1228.  
  1229.     // ENG [Register groups assigner]  #  PL [Przypisywanie zarejestrowanych grup]
  1230.     'groups_assigner' => array
  1231.     (
  1232.         'enabled' => true,
  1233.         'if_client_on_channel' => array(25861,25862),       //all checking channels id
  1234.         'register_groups' => array(434,416),                //all register groups
  1235.         'info' => array
  1236.         (  
  1237.             25861 => 434,   //channel_id => server group id,
  1238.             25862 => 416,
  1239.         ),
  1240.         //Minimal time on server to be registered [Db connect must be on]
  1241.         'min_time_on_server' => 1,  //in minutes
  1242.     ),
  1243.  
  1244.  
  1245.     // ENG [Assign afk group]  #  PL [Przypisz grupę afk]
  1246.     'afk_group' => array
  1247.     (
  1248.         'enabled' => true,
  1249.         'afk_group' => 448,     //afk group id
  1250.         'idle_time' => 1800,        //in seconds
  1251.         'set_group_if_away' => true,    //set afk group if client has away status
  1252.         'set_group_if_muted'=> true,    //set afk group if client is muted
  1253.         'ignored_groups' => array(447,415,431,467,475),
  1254.         'ignored_channels' => array(),
  1255.     ),
  1256.  
  1257.  
  1258.     // ENG [Move afk clients to channel]  #  PL [Przenieś użytkowników afk na kanal]
  1259.     'afk_move' => array
  1260.     (
  1261.         'enabled' => true,
  1262.         'channel_id' => 25879,      //afk channel id
  1263.         'idle_time' => 2400,        //in seconds
  1264.         'move_if_away' => true,     //move client if has away status
  1265.         'move_if_muted'=> true, //move client if is muted
  1266.         'move_back' => true,        //if client no longer afk move him back (true or false)
  1267.         'message_type' => 'poke',   //poke | message | none
  1268.         'ignored_groups' => array(415,431,467,475,447),
  1269.         'ignored_channels' => array(),
  1270.         'kick_from_server' => array
  1271.         (
  1272.             'enabled' => false,
  1273.             'min_idle_time' => 300, //in seconds
  1274.             'msg' => 'Zbyt długi AFK!',    //Message in kick
  1275.         ),
  1276.     ),
  1277.  
  1278.  
  1279.     // ENG [Server groups security]     #    PL [Zabezpieczenie grup serwera]
  1280.     'groups_security' => array
  1281.     (
  1282.         'enabled' => true,
  1283.         'info' => array
  1284.         (
  1285.             /*'0' => array                  //growing number, for example 1, 2, 3...
  1286.             (
  1287.                 'group_id' => 209,          //group Id
  1288.                 'ignored_dbid' => array(10,16,42),  //privilege client database id's
  1289.                 'give_back' => true,            //give the rank back for people in ignoredId
  1290.                 'type' => 'nothing',            //`ban`, `kick`, `nothing` (just group delete and poke)
  1291.                 'message' => '',            //message to the client; if `ban` or `kick` it's the reason, if `nothing` it's a poke message
  1292.                 'time' => 5,                //ban timeout
  1293.             ), */
  1294.  
  1295.        
  1296.             '0' => array
  1297.             (
  1298.                 'group_id' => 415,                 
  1299.                 'ignored_dbid' => array(18949),
  1300.                 'give_back' => true,                   
  1301.                 'type' => 'ban',                   
  1302.                 'message' => 'Nie mozesz miec rangi CEO!',     
  1303.                 'time' => 9999999,                     
  1304.             ),
  1305.             '1' => array
  1306.             (
  1307.                 'group_id' => 431,                 
  1308.                 'ignored_dbid' => array(),
  1309.                 'give_back' => true,                   
  1310.                 'type' => 'kick',                  
  1311.                 'message' => 'Nie mozesz miec rangi Support!', 
  1312.                 'time' => 5,                       
  1313.             ),
  1314.             '2' => array
  1315.             (
  1316.                 'group_id' => 467,                 
  1317.                 'ignored_dbid' => array(),
  1318.                 'give_back' => true,                   
  1319.                 'type' => 'kick',                  
  1320.                 'message' => 'Nie mozesz miec rangi TEST Support!',
  1321.                 'time' => 5,                       
  1322.             ),
  1323.         ),
  1324.     ),
  1325.  
  1326.  
  1327.     // ENG [Baning for having warning rangs]     #     PL [Ban za posiadanie X ostrzeżen]
  1328.     'warning_ban' => array
  1329.     (
  1330.         'enabled' => false,
  1331.         'ban_time' => '1200', // in seconds
  1332.         'ban_message' => 'Za duzo ostrzezen!',
  1333.         'with_rang' => 212, // the last warning id, for example Warning #3 (if you have 3 warnings)
  1334.         'warning_id' => array
  1335.         (
  1336.             212, // the last warning id, for example Warning #3 (if you have 3 warnings)
  1337.             146,
  1338.             144,
  1339.         ), 
  1340.     ),
  1341.  
  1342.  
  1343.     // ENG [Block recording users]     #     PL [Blokowanie użytkowników za nagrywanie]
  1344.     'block_recording' => array
  1345.     (
  1346.         'enabled' => true,
  1347.         'ignored_groups' => array(415),
  1348.         'type' => 'kick',           //`ban`, `kick`,
  1349.         'message' => 'Nie możesz nagrywać!',          //message to the client; if `ban` or `kick` it's the reason
  1350.         'time' => 60,               //ban timeout
  1351.  
  1352.     ),
  1353.  
  1354.  
  1355.     // ENG [Anty VPN]  #  PL [Event przeciw VPN'om]
  1356.     'anty_vpn' => array
  1357.     (
  1358.         'enabled' => true,
  1359.         'X-Key' => '',  // You can change at website `https://iphub.info/pricing`
  1360.         'ignored_groups' => array(415,431,467,475,465),
  1361.         'allowed_ips' => array('265.194.334.122'),          //ignored ips in `'` for example: '127.0.0.1' separated by comma. Your IP, where xbot is, is included.
  1362.         'type' => 'kick',   //`poke`, `kick`, `ban`
  1363.         'ban_time' => '60',     //in seconds
  1364.         'message_to_client' => "Używasz VPN'a!",
  1365.     ),
  1366.  
  1367.    
  1368.  
  1369.     /**************************************
  1370.  
  1371.          ENG [EVENTS]   #   PL [EVENTY]
  1372.  
  1373.     **************************************/
  1374.  
  1375.  
  1376.     'events' => true,
  1377.  
  1378.  
  1379.  
  1380.     // ENG [Auto register]  #  PL [Auto rejestracja]
  1381.     'auto_register' => array
  1382.     (
  1383.         'enabled' => true,
  1384.         'ignored_groups' => array(416,437,449),
  1385.         'register_group' => 416,                //register group
  1386.         //Minimal time on server to be registered [Db connect must be on]
  1387.         'min_time_on_server' => 5,  //in minutes
  1388.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 5,'seconds' => 0),
  1389.     ),
  1390.  
  1391.  
  1392.     // ENG [Advertisement message]  #  PL [Reklama]
  1393.     'advertisement_message' => array
  1394.     (
  1395.         'enabled' => false,
  1396.         'type' => 'chat',       //'chat' - global chat | 'pw' - pw to all users | 'poke' - poke to all users
  1397.         'advertisements' => array
  1398.         (
  1399.             /***********************
  1400.  
  1401.             'Zapraszamy do rejestracji!',
  1402.             'Wiadmość testowa XBot',
  1403.  
  1404.             ***********************/
  1405.  
  1406.             '[b]Dodaj ten serwer do zakładek: [url=ts3server://xbot-ts3.pl.pl?addbookmark=xbot-ts3.pl][COLOR=#ff0000]Kliknij Tu i Dodaj![/COLOR][/url][/b]',
  1407.             '[b][color=red]Witaj na serwerze testowym aplikacji XBot![/b]',
  1408.  
  1409.         ),
  1410.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 10,'minutes' => 0,'seconds' => 0),
  1411.     ),
  1412.  
  1413.  
  1414.     // ENG [Time and date]  #  PL [Data i godzina]
  1415.     'clock_date' => array
  1416.     (
  1417.         'enabled' => false,
  1418.         'content' => array
  1419.         (
  1420.             'clock' => array //clock in channel name
  1421.             (
  1422.                 'enabled' => true,
  1423.                 'channel_id' => '184',
  1424.                 'channel_name' => '» Godzina : [CLOCK]',       // [CLOCK] = clock
  1425.                 'format' => 'G:i',                  // format G: hours, i: minutes, s: seconds
  1426.             ),
  1427.             'date' => array //date in channel name
  1428.             (
  1429.                 'enabled' => true,
  1430.                 'channel_id' => '21389',
  1431.                 'channel_name' => '» Data wynosi: [DATE]',         // [DATE] = date
  1432.                 'format' => 'd-m-Y',                    // format m: month numeric, M: month in words, d: day numeric, D: day in words, Y: year
  1433.             ),
  1434.             'date_and_clock' => array
  1435.             (
  1436.                 'enabled' => true,
  1437.                 'channel_id' => '21414',
  1438.                 'channel_name' => '» Dzisiaj jest : [DATE&CLOCK]',         // [DATE&CLOCK] = date & clock
  1439.                 'format' => 'd-m-Y G:i',                    // format m: month numeric, M: month in words, d: day numeric, D: day in words, Y: year, G: hours, i: minutes, s: seconds
  1440.             ),     
  1441.         ), 
  1442.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 60),
  1443.     ),
  1444.  
  1445.    
  1446.     // ENG [Change server name]  #  PL [Zmiana nazwy serwera]
  1447.     'change_server_name' => array
  1448.     (
  1449.         /****************************************
  1450.    
  1451.                 DATE FORMAT
  1452.  
  1453.         m: month numeric,
  1454.         M: month in words,
  1455.         d: day numeric,
  1456.         D: day in words,
  1457.         Y: year,
  1458.         G: hours,
  1459.         i: minutes,
  1460.         s: seconds
  1461.  
  1462.         ****************************************/
  1463.  
  1464.         'enabled' => true,
  1465.         'ignored_groups' => array(437,449), //ignored groups, not included in online number
  1466.         'server_name' => '© XBot™ | Serwer testowy | [ONLINE]/[MAX_CLIENTS]', //[ONLINE] - online users, [MAX_CLIENTS] - max clients, [DATE] - format higher, [%] %online
  1467.         'format' => 'd-m-Y G:i',
  1468.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1469.         'data' => '1970-01-01 00:00:00',  //Do not change
  1470.     ),
  1471.  
  1472.    
  1473.     // ENG [Client platform]  #  PL [Platforma klienta]
  1474.     'client_platform' => array
  1475.     (
  1476.         'enabled' => false,
  1477.         'ignored_groups' => array(0),
  1478.  
  1479.         'windows_enabled' => false,
  1480.         'windows_group' => 1044,
  1481.  
  1482.         'linux_enabled' => false,
  1483.         'linux_group' => 236,
  1484.  
  1485.         'android_enabled' => true,
  1486.         'android_group' => 1044,
  1487.  
  1488.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 20),
  1489.     ),
  1490.  
  1491.  
  1492.     // ENG [Poke admins]  #  PL [Zaczepianie adminów]
  1493.     'poke_admins' => array
  1494.     (
  1495.         'enabled' => true,
  1496.         'if_client_on_channel' => array(25852),     //all checking channels
  1497.         'ignored_groups' => array(462),             //if admin has this group, bot will not poke him
  1498.         'ignored_group_if_on_channel' => array(62), //if client has this group, bot will not poke admins
  1499.         'info' => array
  1500.         (
  1501.             /*************************
  1502.  
  1503.             ###
  1504.             #   poking server groups: channel_id => array(server_groups separated by comma),
  1505.             ###
  1506.  
  1507.             ###
  1508.             #   poking client: channel_id => client_database_id,
  1509.             ###
  1510.  
  1511.             *************************/
  1512.  
  1513.  
  1514.             25852 => array(415,431,467,475),
  1515.         ),
  1516.         'ignored_channels' => array(),  //channels where bot doesn't poke admins
  1517.         'inform_admin_once' => true,        //Poke admin only one time
  1518.         'informing_about_channel' => true,  //inform admin about the channel on which the user needs help
  1519.         'show_client_link' => true,     //show client link ([url])
  1520.         'kick_if_away' => true,         //kick client if is away (muted microphone/headphones)
  1521.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 2),
  1522.     ),
  1523.  
  1524.  
  1525.    
  1526.     // ENG [Generate banner]  #  PL [Generowanie baneru]
  1527.     'generate_banner' => array
  1528.     (
  1529.         /****************************************
  1530.  
  1531.         font - 'arial', 'calibri', 'inconsolata', 'tahoma'
  1532.         color - in RGB array(x, x, x) you can check colors on https://www.w3schools.com/colors/colors_rgb.asp
  1533.         co-ordinates - array(size, rotation, x, y)     
  1534.  
  1535.         ****************************************/
  1536.  
  1537.         'enabled' => true,
  1538.         'admins_online' => array    //Liczba adminow online
  1539.         (
  1540.             'enabled' => false,
  1541.             'admins_server_groups' => array(415,431,467,475),   //admins server groups
  1542.             'font' => 'arial',
  1543.             'color' => array(255,255,255),
  1544.             'co-ordinates' => array(35,0,770,220),
  1545.         ),
  1546.         'clients_online' => array   //Klienci online
  1547.         (
  1548.             'enabled' => true,
  1549.             'show_max_clients' => false,
  1550.             'font' => 'arial',
  1551.             'color' => array(255,255,255),
  1552.             'co-ordinates' => array(45,0,765,140),
  1553.         ),
  1554.         'record_online' => array    //Rekord online
  1555.         (
  1556.             'enabled' => false,
  1557.             'font' => 'arial',
  1558.             'color' => array(255,255,255),
  1559.             'co-ordinates' => array(30,0,830,325),
  1560.         ),
  1561.         'clock' => array    //Zegar
  1562.         (
  1563.             'enabled' => true,
  1564.             'font' => 'arial',
  1565.             'color' => array(255,255,255),
  1566.             'co-ordinates' => array(35,0,740,300),
  1567.         ),
  1568.         'channels_count' => array   //Liczba kanałów
  1569.         (
  1570.             'enabled' => false,
  1571.             'font' => 'arial',
  1572.             'color' => array(255,255,255),
  1573.             'co-ordinates' => array(35,0,500,300),
  1574.         ),
  1575.         'name_day' => array //Imieniny
  1576.         (
  1577.             'enabled' => false,
  1578.             'font' => 'arial',
  1579.             'color' => array(255,255,255),
  1580.             'co-ordinates' => array(35,0,300,300),
  1581.         ),
  1582.         'fanpage_likes' => array //Like'i z fanpage'a
  1583.         (
  1584.             'enabled' => false,
  1585.             'page_id' => '1719172075053504', //You can find it on website: https://findmyfbid.com/
  1586.             'access_token' => '',
  1587.             'font' => 'arial',
  1588.             'color' => array(255,255,255),
  1589.             'co-ordinates' => array(35,0,740,100),
  1590.         ),
  1591.         'uptime' => array   //Uptime
  1592.         (
  1593.             'enabled' => true,
  1594.             'font' => 'arial',
  1595.             'color' => array(255,255,255),
  1596.             'co-ordinates' => array(35,0,300,300),
  1597.         ),
  1598.         'date' => array //Data
  1599.         (
  1600.             'enabled' => true,
  1601.             'font' => 'arial',
  1602.             'format' => 'd.m.Y',
  1603.             'color' => array(255,255,255),
  1604.             'co-ordinates' => array(35,0,740,100),
  1605.         ),
  1606.        
  1607.         'image_file' => 'include/cache/banner_4pan.png',
  1608.         'target_image_file' => '/var/www/html/banner.jpg',
  1609.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 30),
  1610.     ),
  1611.  
  1612.    
  1613.     // ENG [Host message]  #  PL [Wiadomość hosta]
  1614.     'host_message' => array
  1615.     (
  1616.         'enabled' => true,
  1617.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 1,'seconds' => 30),
  1618.     ),
  1619.  
  1620.    
  1621.     // ENG [Live DJ]  #  PL [Nick DJ'a w nazwie kanału]
  1622.     'live_dj' => array
  1623.     (
  1624.         'enabled' => true,
  1625.         'info' => array
  1626.         (
  1627.             /*********************************
  1628.  
  1629.             channel_id => 'nazwa_kanalu', //[DJ] - dj's nick
  1630.            
  1631.             *********************************/
  1632.  
  1633.             25773 => 'Obecny DJ: [DJ]', //[DJ] - dj's nick
  1634.         ),
  1635.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 45),
  1636.     ),
  1637.  
  1638.  
  1639.     // ENG [Count users (registered/total)]  #  PL [Zliaczanie użytkowników (zarejestrowani/wszyscy)]
  1640.     'count_users' => array
  1641.     (
  1642.         'enabled' => true,  //DB must be on
  1643.         'channel_id' => 25765,
  1644.         'channel_name' => '» Zarejestrowani użytkownicy: [REG]/[TOTAL]', //[REG] - registered users | [TOTAL] - total users in Db
  1645.         'unregistered_group_id' => 417,
  1646.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 30),
  1647.     ),
  1648.  
  1649.    
  1650.     // ENG [Show client_info after join the channel]  #  PL [Pokaż informacje o kliencie po wejściu na kanał]
  1651.     'client_info' => array
  1652.     (
  1653.         'enabled' => true,
  1654.         'if_client_on_channel' => array(25863),
  1655.         'message' => '[color=purple][b]Witaj [u][CLIENT_NICK][/u]![/b]\n [color=blue][b][i]Poniżej przedstawimy Twoje dane:[/i][/b]\n[color=blue]IP: [CLIENT_IP]\n[color=blue]Client Database ID: [CLIENT_DBID]\n[color=blue]Wszystkich połączeń: [CLIENT_TOTALCONNECTIONS]\n[color=blue]Wersja klienta TS3: [CLIENT_VERSION]\n[color=blue]Pierwsze połączenie: [CLIENT_CREATED]\n[color=blue]Ostatnie połączenie: [CLIENT_LASTCONNECTED]\n[color=blue]Platforma: [CLIENT_PLATFORM]\n[color=blue]Kraj: [CLIENT_COUNTRY]',
  1656.        
  1657.         /************************************
  1658.  
  1659.         [CLIENT_IP] =  Client nickname
  1660.         [CLIENT_NICK] = Client nickname
  1661.         [CLIENT_COUNTRY] = Client country
  1662.         [CLIENT_DBID] = Client databse id
  1663.         [CLIENT_VERSION] = Client TS3 version
  1664.         [CLIENT_CONNECTIONS] = Client total connections
  1665.         [CLIENT_PLATFORM] = Client platform
  1666.         [CLIENT_TOTALCONNECTIONS] = Client total connections
  1667.         [CLIENT_LASTCONNECTED] = Client lastconnected
  1668.         [CLIENT_AWAY_MESSAGE] = Client away message
  1669.         [CLIENT_CREATED] = Client created
  1670.         [CLIENT_ON_SERVER_FOR] = Client is with server for ... for example 2 days and 1 minute
  1671.  
  1672.         *************************************/
  1673.  
  1674.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1675.     ),
  1676.  
  1677.  
  1678.     // ENG [Event records in the channel descrition]  #  PL [Zapisywanie klientów na np. event w opisie kanału]
  1679.     'event_records' => array
  1680.     (
  1681.         'enabled' => false,
  1682.         'if_client_on_channel' => array(12832),
  1683.         'channel_id' => 9056,
  1684.         'top_description' => 'Zapisy na event', //Do not use [hr] in name!
  1685.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1686.     ),
  1687.  
  1688.    
  1689.     // ENG [Check temporary channels' name]    #    PL [Sprawdzanie nazw kanałów tymczasowych]
  1690.     'check_tmp_channel' => array
  1691.     (
  1692.         'enabled' => true,
  1693.         'file' => 'include/cache/nicks_security.txt',   //bad phrases separated by ,(comma) without spaces, enters etc
  1694.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1695.     ),
  1696.  
  1697.  
  1698.     // ENG [Check public zone]    #    PL [Sprawdzanie strefy kanałów publicznych]
  1699.     'check_public_zone' => array
  1700.     (
  1701.         'enabled' => true,
  1702.         'info' => array
  1703.         (
  1704.             '0' => array
  1705.             (
  1706.                 'channels_zone' => 25884,
  1707.                 'channel_name' => '» Kanał Publiczny #[NUM]', //[Num] channel number
  1708.                 'mininum_channels' => 3,
  1709.                 'maximum_channels' => 25,
  1710.                 'icon_id' => 1655954911,
  1711.                 'modify_power' => 85,           //channel needed modify power
  1712.                 'desc' => '[hr][center][size=15][b][COLOR=red]♠XBot-ts3.pl[/COLOR]♠[/b][/size]\n\n[b][size=12][color=#0039ac]§ Kanały publiczne[/size]\n\n1. Zakaz nagrywania rozmów na kanałach publicznych bez zgody Użytkowników, które na nim przesiadują. Nie\ntyczy się to kanałów, które posiadają zgodę na nagrywanie w opisie.\n2. Kanały publiczne są podzielone na te z limitem Użytkowników oraz na takie, które tego limitu nie posiadają.\n3. Łamanie zasad regulamin na kanałach publicznych skutkuje interwencją Administratora i\nwyrzuceniem danego Użytkownika z kanału.\n4. Kanały publiczne są w głównie przeznaczone dla Użytkowników, które nie posiadają własnego kanału.[/b]\n[hr]Copyrights © [b][COLOR=red]Tyralnia[/COLOR].pl[/b] 2017',
  1713.             ),
  1714.             '2' => array
  1715.             (
  1716.                 'channels_zone' => 25888,
  1717.                 'channel_name' => '» Kanał Publiczny #[NUM]', //[Num] channel number
  1718.                 'mininum_channels' => 3,
  1719.                 'maximum_channels' => 25,
  1720.                 'icon_id' => 2681873579,
  1721.                 'modify_power' => 85,           //channel needed modify power
  1722.                 'desc' => '[hr][center][size=15][b][COLOR=red]♠XBot-ts3.pl[/COLOR].pl♠[/b][/size]\n\n[b][size=12][color=#0039ac]§ Kanały publiczne[/size]\n\n1. Zakaz nagrywania rozmów na kanałach publicznych bez zgody Użytkowników, które na nim przesiadują. Nie\ntyczy się to kanałów, które posiadają zgodę na nagrywanie w opisie.\n2. Kanały publiczne są podzielone na te z limitem Użytkowników oraz na takie, które tego limitu nie posiadają.\n3. Łamanie zasad regulamin na kanałach publicznych skutkuje interwencją Administratora i\nwyrzuceniem danego Użytkownika z kanału.\n4. Kanały publiczne są w głównie przeznaczone dla Użytkowników, które nie posiadają własnego kanału.[/b]\n[hr]Copyrights © [b][COLOR=red]Tyralnia[/COLOR].pl[/b] 2017',
  1723.             ),
  1724.             '3' => array
  1725.             (
  1726.                 'channels_zone' => 25892,
  1727.                 'channel_name' => '» Kanał Publiczny #[NUM]', //[Num] channel number
  1728.                 'mininum_channels' => 3,
  1729.                 'maximum_channels' => 25,
  1730.                 'icon_id' => 2457065219,
  1731.                 'modify_power' => 85,           //channel needed modify power
  1732.                 'desc' => '[hr][center][size=15][b][COLOR=red]♠XBot-ts3.pl[/COLOR]♠[/b][/size]\n\n[b][size=12][color=#0039ac]§ Kanały publiczne[/size]\n\n1. Zakaz nagrywania rozmów na kanałach publicznych bez zgody Użytkowników, które na nim przesiadują. Nie\ntyczy się to kanałów, które posiadają zgodę na nagrywanie w opisie.\n2. Kanały publiczne są podzielone na te z limitem Użytkowników oraz na takie, które tego limitu nie posiadają.\n3. Łamanie zasad regulamin na kanałach publicznych skutkuje interwencją Administratora i\nwyrzuceniem danego Użytkownika z kanału.\n4. Kanały publiczne są w głównie przeznaczone dla Użytkowników, które nie posiadają własnego kanału.[/b]\n[hr]Copyrights © [b][COLOR=red]Tyralnia[/COLOR].pl[/b] 2017',
  1733.             ),
  1734.             '4' => array
  1735.             (
  1736.                 'channels_zone' => 25896,
  1737.                 'channel_name' => '» Kanał Publiczny #[NUM]', //[Num] channel number
  1738.                 'mininum_channels' => 3,
  1739.                 'maximum_channels' => 25,
  1740.                 'icon_id' => 1722569469,
  1741.                 'modify_power' => 85,           //channel needed modify power
  1742.                 'desc' => '[hr][center][size=15][b][COLOR=red]♠XBot-ts3.pl[/COLOR]♠[/b][/size]\n\n[b][size=12][color=#0039ac]§ Kanały publiczne[/size]\n\n1. Zakaz nagrywania rozmów na kanałach publicznych bez zgody Użytkowników, które na nim przesiadują. Nie\ntyczy się to kanałów, które posiadają zgodę na nagrywanie w opisie.\n2. Kanały publiczne są podzielone na te z limitem Użytkowników oraz na takie, które tego limitu nie posiadają.\n3. Łamanie zasad regulamin na kanałach publicznych skutkuje interwencją Administratora i\nwyrzuceniem danego Użytkownika z kanału.\n4. Kanały publiczne są w głównie przeznaczone dla Użytkowników, które nie posiadają własnego kanału.[/b]\n[hr]Copyrights © [b][COLOR=red]Tyralnia[/COLOR].pl[/b] 2017',
  1743.             ),
  1744.             '5' => array
  1745.             (
  1746.                 'channels_zone' => 25900,
  1747.                 'channel_name' => '» Kanał Publiczny #[NUM]', //[Num] channel number
  1748.                 'mininum_channels' => 3,
  1749.                 'maximum_channels' => 25,
  1750.                 'icon_id' => 2194985460,
  1751.                 'modify_power' => 85,           //channel needed modify power
  1752.                 'desc' => '[hr][center][size=15][b][COLOR=red]♠XBot-ts3.pl[/COLOR]♠[/b][/size]\n\n[b][size=12][color=#0039ac]§ Kanały publiczne[/size]\n\n1. Zakaz nagrywania rozmów na kanałach publicznych bez zgody Użytkowników, które na nim przesiadują. Nie\ntyczy się to kanałów, które posiadają zgodę na nagrywanie w opisie.\n2. Kanały publiczne są podzielone na te z limitem Użytkowników oraz na takie, które tego limitu nie posiadają.\n3. Łamanie zasad regulamin na kanałach publicznych skutkuje interwencją Administratora i\nwyrzuceniem danego Użytkownika z kanału.\n4. Kanały publiczne są w głównie przeznaczone dla Użytkowników, które nie posiadają własnego kanału.[/b]\n[hr]Copyrights © [b][COLOR=red]Tyralnia[/COLOR].pl[/b] 2017',
  1753.             ),
  1754.  
  1755.  
  1756.         ),
  1757.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5 ),
  1758.     ),
  1759.  
  1760.  
  1761.     // ENG [Clear clients ranks]    #    PL [Wyczyść rangi klienta]
  1762.     'clear_ranks' => array
  1763.     (
  1764.         'enabled' => true,
  1765.         'if_client_on_channel' => array(25864), //all channels
  1766.         'info' => array
  1767.         (
  1768.             /**********************************
  1769.  
  1770.             channel_id => array(ranks_to_clear),
  1771.  
  1772.             **********************************/
  1773.            
  1774.             25864 => array(419,420,421,422,423,424,425,426,427,428,429,430),
  1775.         ),
  1776.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  1777.     ),
  1778.    
  1779.    
  1780.     // ENG [Delete client permissions]    #    PL [Wyczyść pozwolenia klienta]
  1781.     'delete_client_permissions' => array
  1782.     (
  1783.         'enabled' => true,
  1784.         'ignored_groups' => array(415),         //ignored server groups
  1785.         'ignored_dbids' => array(1),            //ignored database clients id
  1786.         'ignored_perms' => array('i_icon_id'),  //this perms won't be deleted
  1787.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 2),
  1788.     ),
  1789.  
  1790.    
  1791.     // ENG [Check clients on the same IP]    #    PL [Sprawdzanie użytkowników na tym samym ip]
  1792.     'check_ip' => array
  1793.     (
  1794.         'enabled' => true,
  1795.         'ignored_groups' => array(),
  1796.         'max_users' => 4,       // Max users on the same ip
  1797.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 10),
  1798.     ),
  1799. );
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805. $config['instance']['3']['logs_system'] = array
  1806. (
  1807.     /****************************************************************************
  1808.  
  1809.               ENG [LOGS SYSTEM]       #       PL [SYSTEM LOGĂ“W]
  1810.  
  1811.     ****************************************************************************/
  1812.  
  1813.  
  1814.     'logs' => array
  1815.     (
  1816.         // ENG [Turn on/off logs system (true or false)]   #   PL [Wlaczenie lub wylaczenie systemu logów]
  1817.             'enabled' => true,  
  1818.  
  1819.         // ENG [Days, after which, log files will be deleted]   #   PL [Czas w dniach, po których pliki logów zostana usunięte]
  1820.             'delete_interval' => '3',
  1821.     ),
  1822. );
  1823.  
  1824.  
  1825.  
  1826. $config['instance']['3']['options'] = array
  1827. (
  1828.     /****************************************************************************
  1829.  
  1830.             ENG [INSTANCE OPTIONS]       #       PL [OPCJE INSTANCJI]
  1831.  
  1832.     ****************************************************************************/
  1833.  
  1834.  
  1835.     // ENG [Folder for functions containing all events and plugins]   #   PL [Folder w którym sa wszystkie eventy i pluginy]
  1836.         'folder'    => 'third_instance',
  1837.  
  1838.     // ENG [Bot interval in seconds]  #  PL [Interwal bota w sekundach]
  1839.         'bot_interval'  => 3,
  1840.  
  1841.     // ENG ['events_plugins' or 'commands' (default 'events_plugins')]  #  PL ['events_plugins' lub 'commands' (domyślnie 'events_plugins')]
  1842.         'function_type' => 'events_plugins',
  1843. );
  1844.  
  1845.  
  1846.  
  1847. $config['instance']['3']['functions'] = array
  1848. (
  1849.  
  1850.  
  1851.  
  1852.     /**************************************
  1853.  
  1854.         ENG [PLUGINS]   #   PL [PLUGINY]
  1855.  
  1856.     **************************************/
  1857.  
  1858.    
  1859.     'plugins' => false,
  1860.  
  1861.  
  1862.  
  1863.  
  1864.     /**************************************
  1865.  
  1866.          ENG [EVENTS]   #   PL [EVENTY]
  1867.  
  1868.         **************************************/
  1869.  
  1870.  
  1871.     'events' => true,
  1872.  
  1873.  
  1874.  
  1875.     // ENG [New users daily]  #  PL [Nowi użytkownicy dzisiaj]
  1876.     'new_daily_users' => array
  1877.     (
  1878.         'enabled' => true,
  1879.         'channel_id' => 25762,
  1880.         'with_rang' => 417, //checking if client has one of these rangs
  1881.         'channel_name' => '» Nowi Użytkownicy: [NEW]', //[NEW] - how many new users
  1882.         'top_description' => 'Nowi uzytkownicy dzisiaj',
  1883.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 1,'seconds' => 0),
  1884.     ),
  1885.    
  1886.    
  1887.     // ENG [Visitors]  #  PL [Odwiedziny]
  1888.     'visitors' => array
  1889.     (
  1890.         'enabled' => true,
  1891.         'channel_id' => 25757,
  1892.         'channel_name' => '» Odwiedzin: [VISITORS]', //[VISITORS] - how many visitors
  1893.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  1894.     ),
  1895.  
  1896.    
  1897.     // ENG [Clients in your database]  #  PL [Użytkownicy w bazie danych] 
  1898.     'client_to_db' => array     //you need this event if you want to use these events -> (top_connections, top_connection_time, top_idle_time, top_time_spent, levels)
  1899.     (  
  1900.         'enabled' => true,
  1901.         'idle_time' => 5 * 60,  //idle time in seconds
  1902.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 10),
  1903.     ),
  1904.  
  1905.  
  1906.     // ENG [Top connections]  #  PL [Najwięcej polaczeń]
  1907.     'top_connections' => array
  1908.     (
  1909.         'enabled' => true,
  1910.         'channel_id' =>  25747,
  1911.         'top_description' => '[img]https://i.imgur.com/NmSPayJ.png[/img]',
  1912.         'records' => 15,    //how many clients
  1913.         'ignored_groups' => array(437,449),
  1914.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 4,'seconds' => 0),
  1915.     ),
  1916.  
  1917.  
  1918.     // ENG [Top connection time]  #  PL [Najdluższe polaczenia]
  1919.     'top_connection_time' => array
  1920.     (
  1921.         'enabled' => true,
  1922.         'channel_id' => 25749,
  1923.         'top_description' => '[img]https://i.imgur.com/4yqtJYd.png[/img]',
  1924.         'records' => 15,    //how many clients
  1925.         'ignored_groups' => array(437,449),
  1926.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 4,'seconds' => 0),
  1927.     ),
  1928.  
  1929.  
  1930.     // ENG [Top client idle time]  #  PL [Najdluższy czas nieaktywności]
  1931.     'top_idle_time' => array
  1932.     (
  1933.         'enabled' => true,
  1934.         'channel_id' => 25748,
  1935.         'top_description' => '[img]https://i.imgur.com/82pPbKb.png[/img]',
  1936.         'records' => 15,    //how many clients
  1937.         'ignored_groups' => array(437,449),
  1938.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 4,'seconds' => 0),
  1939.     ),
  1940.  
  1941.  
  1942.     // ENG [Top time spent on server]  #  PL [Najdluższy czas na serwerze]
  1943.     'top_time_spent' => array
  1944.     (
  1945.         'enabled' => true,
  1946.         'channel_id' => 25750,
  1947.         'show_afk_time' => true,
  1948.         'top_description' => '[img]https://i.imgur.com/zjtZ2bf.png[/img]',
  1949.         'records' => 15,    //how many clients
  1950.         'ignored_groups' => array(437,449),
  1951.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 4,'seconds' => 0),
  1952.     ),
  1953.  
  1954.  
  1955.     // ENG [Top week time spent on server]  #  PL [Ranking czasu spędzonego w danym tygodniu]
  1956.     'top_week_time' => array
  1957.     (
  1958.         'enabled' => true,
  1959.         'channel_id' => 25751,
  1960.         'show_afk_time' => true,
  1961.         'top_description' => '[img]https://i.imgur.com/eSQHozj.png[/img]',
  1962.         'records' => 15,    //how many clients
  1963.         'ignored_groups' => array(437,449),
  1964.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 4,'seconds' => 0),
  1965.     ),
  1966.  
  1967.  
  1968.     // ENG [Clients levels]  #  PL [Poziomy klientów]
  1969.     'levels' => array
  1970.     (
  1971.         'enabled' => true,
  1972.         'ignored_groups' => array(437,449),
  1973.         'info' => array
  1974.         (
  1975.             454 => 1,   //lvl group sgid => hours spent on server on which the rang will be given
  1976.             455 => 5,  
  1977.             456 => 10,
  1978.             457 => 15,
  1979.             458 => 20,
  1980.             459 => 30,
  1981.             460 => 40,
  1982.             484 => 100,
  1983.             485 => 200,
  1984.             486 => 10000,
  1985.         ),
  1986.         'all_levels_groups' => array(454,455,456,457,458,459,460,484,485,486),
  1987.         'top_description' => '[img]https://i.imgur.com/58vTGHg.png[/img]',
  1988.         'records' => 10,       
  1989.         'channel_id' => 25752,
  1990.         'info_to_client' => 'pw',   //Info to client | 'poke' / 'pw' / 'none'
  1991.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 4,'seconds' => 0),
  1992.     ),
  1993.  
  1994.    
  1995.     // ENG [Random group]  #  PL [Losowe grupy]
  1996.     'random_group' => array
  1997.     (
  1998.         'enabled' => true,
  1999.         'must_have_group' => array(416,434),
  2000.         'ignored_groups' => array(437,449,436,415,431,467,475),
  2001.         'random_groups' => array(436),
  2002.         'time' => '1',  //in days  
  2003.         'records' => 15,
  2004.         'channel_id' => 25767,
  2005.         'channel_name' => '•  Randomowe grupy',   //[USER] - last winner's nickname      
  2006.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 4,'seconds' => 0),
  2007.     ),
  2008.    
  2009.  
  2010.     // ENG [Statistics of admins]  #  PL [Statystyki administratorów]
  2011.     'statistics_of_admins' => array
  2012.     (
  2013.         'enabled' => true,
  2014.         'admins_groups' => array(415,431,467,475),
  2015.         'max_idle_time' => 300, //in seconds
  2016.         'register' => array(416,434),
  2017.         'ignored_channels' => array(),  //channels where admins will not be check
  2018.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5), //Default: 5 seconds
  2019.     ),
  2020.  
  2021.  
  2022.     // ENG [Write statistics of admins]  #  PL [Wypisz statystyki adminów]
  2023.     'write_statistics' => array
  2024.     (
  2025.         'enabled' => true,
  2026.         'admins_groups' => array(415,431,467,475),  //Admins groups to write on the channel description
  2027.  
  2028.         'groups' => array
  2029.         (
  2030.             'top_description' => '[size=14][b]Statystyki administracji[/b][/size][size=13][b]\nNadane grupy[/b][/size]',
  2031.             'channelid' => 25782,
  2032.         ),
  2033.    
  2034.         'timespent' => array
  2035.         (
  2036.             'top_description' => '[size=14][b]Statystyki administracji[/b][/size][size=13][b]\nSpędzony czas[/b][/size]',
  2037.             'channelid' => 25783,
  2038.         ),
  2039.  
  2040.  
  2041.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 1,'seconds' => 0),
  2042.     ),
  2043.    
  2044.    
  2045.     // ENG [Actions logs in the channel description]  #  PL [Akcje serwera/bota w opisie kanału]
  2046.     'actions_logs' => array
  2047.     (
  2048.         'enabled' => true,  
  2049.         'channel_id' => 25774,
  2050.         'top_description' => 'Akcje Na Serwerze',
  2051.         'records' => 30,
  2052.         'show_id' => true,  // Show action id
  2053.         'info' => array
  2054.         (
  2055.             /************************
  2056.            
  2057.                 'function_name' => true/false,  //enable if you want to see logs from this function
  2058.                 DO NOT ADD FUNCTIONS!
  2059.    
  2060.             ************************/
  2061.        
  2062.             //Instance I
  2063.             'get_vip_channel' => true,
  2064.             'get_yt_channel' => true,
  2065.             'nicks_security' => true,
  2066.        
  2067.             //Instance II
  2068.             'groups_assigner' => true,
  2069.             'auto_register' => true,
  2070.             'block_recording' => true,
  2071.             'anty_vpn' => true,
  2072.             'poke_admins' => true,
  2073.            
  2074.             //Instance III
  2075.             'levels' => true,
  2076.             'random_group' => true,
  2077.            
  2078.             //Instance IV
  2079.             'get_private_channel' => true,
  2080.             'channels_guard' => true,
  2081.         ),
  2082.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),
  2083.     ),
  2084. );
  2085.  
  2086.  
  2087. $config['instance']['4']['logs_system'] = array
  2088. (
  2089.     /****************************************************************************
  2090.  
  2091.                ENG [LOGS SYSTEM]       #       PL [SYSTEM LOGĂ“W]
  2092.  
  2093.     ****************************************************************************/
  2094.  
  2095.  
  2096.     'logs' => array
  2097.     (
  2098.         // ENG [Turn on/off logs system (true or false)]   #   PL [Wlaczenie lub wylaczenie systemu logów]
  2099.  
  2100.             'enabled' => true,  
  2101.  
  2102.  
  2103.         // ENG [Days, after which, log files will be deleted]   #   PL [Czas w dniach, po których pliki logów zostana usunięte]
  2104.  
  2105.             'delete_interval' => '3',
  2106.     ),
  2107.  
  2108. );
  2109.  
  2110.  
  2111.  
  2112. $config['instance']['4']['options'] = array
  2113. (
  2114.     /****************************************************************************
  2115.  
  2116.             ENG [INSTANCE OPTIONS]       #       PL [OPCJE INSTANCJI]
  2117.  
  2118.     ****************************************************************************/
  2119.  
  2120.  
  2121.     // ENG [Folder for functions containing all events and plugins]   #   PL [Folder w którym sa wszystkie eventy i pluginy]
  2122.         'folder'    => 'fourth_instance',
  2123.  
  2124.     // ENG [Bot interval in seconds]  #  PL [Interwal bota w sekundach]
  2125.         'bot_interval'  => 3,
  2126.  
  2127.     // ENG ['events_plugins' or 'commands' (default 'events_plugins')]  #  PL ['events_plugins' lub 'commands' (domyślnie 'events_plugins')]
  2128.         'function_type' => 'events_plugins',
  2129. );
  2130.  
  2131.  
  2132.  
  2133. $config['instance']['4']['functions'] = array
  2134. (
  2135.  
  2136.  
  2137.  
  2138.     /**************************************
  2139.  
  2140.         ENG [PLUGINS]   #   PL [PLUGINY]
  2141.  
  2142.     **************************************/
  2143.  
  2144.  
  2145.     'plugins' => false,
  2146.  
  2147.  
  2148.  
  2149.     /**************************************
  2150.  
  2151.          ENG [EVENTS]   #   PL [EVENTY]
  2152.  
  2153.     **************************************/
  2154.  
  2155.  
  2156.     'events' => true,
  2157.  
  2158.  
  2159.     // ENG [Channels guard]  #  PL [Strażnik kanalów]
  2160.     'channels_guard' => array
  2161.     (
  2162.         'enabled' => true,
  2163.         'channels_zone' => 25942,               //parent channel id
  2164.         'empty_channel_topic' => '#free',           //topic in empty channels
  2165.         'free_channel_name' => 'Prywatny Kanał - Wolny',
  2166.         'head_channel_admin_group' => 71,           //main head channel admin group id
  2167.         'check_date' => array           //check channel date in topic
  2168.         (
  2169.             'enabled' => true,
  2170.             'new_date_if_owner' => true,            //new date if the owner is on the channel
  2171.             'time_interval_warning' => 4,           //days after which the channel name will be changed
  2172.             'time_interval_delete' => 6,            //days after which the channel will be deleted 
  2173.             'warning_text' => '(ZMIEŃ DATĘ)',     //warning text added to channel name after 'time_interval_warning'
  2174.         ),
  2175.         'check_channel_num' => array        //check if the next channel has number for example 1., 2., etc
  2176.         (
  2177.             'enabled' => true, 
  2178.         ),
  2179.         'check_channel_name' => array       //check if the next channel has number for example 1., 2., etc
  2180.         (
  2181.             'enabled' => true,
  2182.             'file' => 'include/cache/nicks_security.txt',       //bad phrases separated by ,(comma) without spaces, enters etc
  2183.         ),
  2184.         'make_empty_channels' => array      //make empty channels
  2185.         (
  2186.             'enabled' => true,
  2187.             'minimum_free_channels' => 5,
  2188.             'icon_id' => 1547656004,
  2189.         ),
  2190.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 30),
  2191.     ),
  2192.  
  2193.  
  2194.     // ENG [Get private channel]  #  PL [Otrzymanie prywatnego kanalu]
  2195.     'get_private_channel' => array
  2196.     (
  2197.         'enabled' => true,
  2198.         'if_client_on_channel' => array(25865),     //channel id
  2199.         'sub_channels' => 2,                //how many sub channels
  2200.         'head_channel_admin_group' => 71,       //main head channel admin group id
  2201.         'needed_server_group' => array(416,434),        //needed server group (you need one of them to get a private channel)
  2202.         'message_type' => 'poke',           //message type (poke or message)
  2203.         'empty_channel_topic' => '#free',       //topic in empty channels
  2204.         'channels_zone' => 25942,           //parent channel id
  2205.         'icon_id' => 968796862,
  2206.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 5),
  2207.     ),
  2208.  
  2209.  
  2210.     // ENG [Empty channels' numbers in channel description]  #  PL [Numery wolnych kanalów w opisie kanalu]
  2211.     'empty_channels' => array
  2212.     (
  2213.         'enabled' => true,
  2214.         'channel_id' => 25866,              //channel id
  2215.         'empty_channel_topic' => '#free',       //topic in empty channels
  2216.         'channels_zone' => 25942,           //parent channel id
  2217.         'time_interval_delete' => 6,            //days after which the channel will be deleted
  2218.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 5,'seconds' => 0),
  2219.     ),
  2220.  
  2221.  
  2222.     // ENG [Number of private channels in channel name]  #  PL [Ilość prywatnych kanalów w nazwie kanalu]
  2223.     'private_channels_info' => array
  2224.     (
  2225.         'enabled' => true,             
  2226.         'empty_channel_topic' => '#free',       //topic in empty channels
  2227.         'channels_zone' => 25942,           //parent channel id
  2228.         'total' => array
  2229.         (
  2230.             'enabled' => false,
  2231.             'channel_id' => 22192,
  2232.             'channel_name' => 'Kanalow prywatnych: [NUM]',      //[NUM] - number of channels
  2233.         ),
  2234.         'taken' => array
  2235.         (
  2236.             'enabled' => false,
  2237.             'channel_id' => 22193,
  2238.             'channel_name' => 'Zajete: [NUM]',          //[NUM] - number of taken channels
  2239.         ),
  2240.         'empty' => array
  2241.         (
  2242.             'enabled' => true,
  2243.             'channel_id' => 25866,
  2244.             'channel_name' => 'Liczba wolnych kanałów: [NUM]',            //[NUM] - number of empty channels
  2245.         ),
  2246.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 1,'seconds' => 0),
  2247.     ),
  2248. );
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254. $config['instance']['5']['logs_system'] = array
  2255. (
  2256.     /****************************************************************************
  2257.  
  2258.                ENG [LOGS SYSTEM]       #       PL [SYSTEM LOGĂ“W]
  2259.  
  2260.     ****************************************************************************/
  2261.  
  2262.     'logs' => array
  2263.     (
  2264.         // ENG [Turn on/off logs system (true or false)]   #   PL [Wlaczenie lub wylaczenie systemu logów]
  2265.             'enabled' => true,  
  2266.  
  2267.         // ENG [Days, after which, log files will be deleted]   #   PL [Czas w dniach, po których pliki logów zostana usunięte]
  2268.             'delete_interval' => '3',
  2269.     ),
  2270. );
  2271.  
  2272.  
  2273.  
  2274. $config['instance']['5']['options'] = array
  2275. (
  2276.     /****************************************************************************
  2277.  
  2278.             ENG [INSTANCE OPTIONS]       #       PL [OPCJE INSTANCJI]
  2279.  
  2280.     ****************************************************************************/
  2281.  
  2282.  
  2283.     // ENG [Folder for functions containing all events and plugins]   #   PL [Folder w którym sa wszystkie eventy i pluginy]
  2284.         'folder'    => 'fifth_instance',
  2285.  
  2286.     // ENG [Bot interval in miliseconds]  #  PL [Interwal bota w milisekundach]
  2287.         'bot_interval'  => 100,     //1000 = one second
  2288.  
  2289.     // ENG ['events_plugins' or 'commands' (default 'commands')]  #  PL ['events_plugins' lub 'commands' (domyślnie 'commands')]
  2290.         'function_type' => 'commands',
  2291. );
  2292.  
  2293.  
  2294.  
  2295. $config['instance']['5']['commands'] = array
  2296. (
  2297.  
  2298.  
  2299.  
  2300.     /*********************************************
  2301.  
  2302.       ENG [COMMANDS]       #       PL [KOMENDY]
  2303.  
  2304.            
  2305.               Explanation:
  2306.  
  2307.         [sgid] - server group id
  2308.         [message] - text message
  2309.         [instance_id] - Xbot instance id
  2310.        
  2311.     *********************************************/
  2312.  
  2313.  
  2314.     // ENG [Usage: !help]
  2315.     'help' => array
  2316.     (
  2317.         'enabled' => true,
  2318.         'privileged_groups' => array(415),  // 0 - all groups
  2319.     ),
  2320.    
  2321.  
  2322.     // ENG [Usage: !pwall-[message]]
  2323.     'pwall' => array
  2324.     (
  2325.         'enabled' => true,
  2326.         'privileged_groups' => array(415),  // 0 - all groups
  2327.     ),
  2328.  
  2329.  
  2330.     // ENG [Usage: !pokeall-[message]]
  2331.     'pokeall' => array
  2332.     (
  2333.         'enabled' => true,
  2334.         'privileged_groups' => array(415),  // 0 - all groups
  2335.     ),
  2336.  
  2337.  
  2338.     // ENG [Usage: !pwgroup-[sgid]-[message]]
  2339.     'pwgroup' => array
  2340.     (
  2341.         'enabled' => true,
  2342.         'privileged_groups' => array(415),  // 0 - all groups
  2343.     ),
  2344.  
  2345.  
  2346.     // ENG [Usage: !pokegroup-[sgid]-[message]]
  2347.     'pokegroup' => array
  2348.     (
  2349.         'enabled' => true,
  2350.         'privileged_groups' => array(415),  // 0 - all groups
  2351.     ),
  2352.  
  2353.  
  2354.     // ENG [Usage: !meeting]
  2355.     'meeting' => array
  2356.     (
  2357.         'enabled' => true,
  2358.         'privileged_groups' => array(415),  // 0 - all groups
  2359.         'admins_server_groups' => array(415,431,467,475),
  2360.         'meeting_channel_id' => 25838,
  2361.     ),
  2362.  
  2363.  
  2364.     // ENG [Usage: !clients]
  2365.     'clients' => array  //clients list
  2366.     (
  2367.         'enabled' => true,
  2368.         'privileged_groups' => array(415),  // 0 - all groups
  2369.     ),
  2370.  
  2371.  
  2372.     // ENG [Usage: !channels]
  2373.     'channels' => array //channels list
  2374.     (
  2375.         'enabled' => true,
  2376.         'privileged_groups' => array(415),  // 0 - all groups
  2377.     ),
  2378.  
  2379.  
  2380.     // ENG [Usage: !bot-[instance_id]] [Function is restarting Xbot's instance]
  2381.     'bot' => array  //bot management (`starter.sh run` must be ON) 
  2382.     (
  2383.         'enabled' => true,
  2384.         'privileged_groups' => array(415),  // 0 - all groups
  2385.     ),
  2386.  
  2387.  
  2388.     // ENG [Usage: !ch-[client_dbid]-[subchannels]]
  2389.     'ch' => array
  2390.     (
  2391.         'enabled' => true,
  2392.         'privileged_groups' => array(415),      // 0 - all groups
  2393.         'head_channel_admin_group' => 71,       //main head channel admin group id
  2394.         'message_type' => 'poke',           //message type (poke or message)
  2395.         'empty_channel_topic' => '#free',       //topic in empty channels
  2396.         'channels_zone' => 25942,           //parent channel id
  2397.     ),
  2398.  
  2399.    
  2400.     // ENG [Usage: !mute-[client_dbid]-[time_in_seconds]]
  2401.     'mute' => array     //give user specified group on specified time in seconds
  2402.     (
  2403.         'enabled' => true,
  2404.         'privileged_groups' => array(415),      // 0 - all groups
  2405.         'give_group' => 464,
  2406.     ),
  2407.  
  2408.  
  2409.     // ENG [Usage: !admin-[client_dbid]]    || Database must be connect with
  2410.     'admin' => array        //show information about specified admin
  2411.     (
  2412.         'enabled' => true,
  2413.         'privileged_groups' => array(415),      // 0 - all groups
  2414.         'admins_groups' => array(415,431,467,475),  //all admins groups
  2415.     ),
  2416.  
  2417.  
  2418.     // ENG [Usage: !tpclient-[client_nick]]
  2419.     'tpclient' => array     //moving to specified client
  2420.     (
  2421.         'enabled' => true,
  2422.         'privileged_groups' => array(415),      // 0 - all groups
  2423.     ),
  2424.  
  2425.  
  2426.     // ENG [Usage: !tpchannel-[channel_name]]
  2427.     'tpchannel' => array        //moving to specified channel
  2428.     (
  2429.         'enabled' => true,
  2430.         'privileged_groups' => array(415),      // 0 - all groups
  2431.     ),
  2432.    
  2433.    
  2434.     // ENG [Usage: !gsecurity-[type]-[client_dbid]-[group_id]   type=add or type=del
  2435.     'gsecurity' => array        //adding/del user to groups security function
  2436.     (
  2437.         'enabled' => true,
  2438.         'privileged_groups' => array(415),      // 0 - all groups
  2439.         'admins_groups' => array(415,431,467,475),          //all admins groups checking in groups_security event
  2440.     ),
  2441.    
  2442.     // ENG [Usage: !clientinfo-[client_dbid]]   || Database must be connect with
  2443.     'clientinfo' => array       //show information about specified client
  2444.     (
  2445.         'enabled' => true,
  2446.         'privileged_groups' => array(415),      // 0 - all groups
  2447.     ),
  2448. );
  2449.  
  2450.  
  2451.  
  2452.  
  2453.  
  2454. $config['instance']['6']['logs_system'] = array
  2455. (
  2456.     /****************************************************************************
  2457.  
  2458.                ENG [LOGS SYSTEM]       #       PL [SYSTEM LOGĂ“W]
  2459.  
  2460.     ****************************************************************************/
  2461.  
  2462.     'logs' => array
  2463.     (
  2464.         // ENG [Turn on/off logs system (true or false)]   #   PL [Wlaczenie lub wylaczenie systemu logów]
  2465.             'enabled' => true,  
  2466.  
  2467.         // ENG [Days, after which, log files will be deleted]   #   PL [Czas w dniach, po których pliki logów zostana usunięte]
  2468.             'delete_interval' => '3',
  2469.     ),
  2470. );
  2471.  
  2472.  
  2473.  
  2474. $config['instance']['6']['options'] = array
  2475. (
  2476.     /****************************************************************************
  2477.  
  2478.             ENG [INSTANCE OPTIONS]       #       PL [OPCJE INSTANCJI]
  2479.  
  2480.     ****************************************************************************/
  2481.  
  2482.  
  2483.     // ENG [Folder for functions containing all events and plugins]   #   PL [Folder w którym sa wszystkie eventy i pluginy]
  2484.         'folder'    => 'sixth_instance',
  2485.  
  2486.     // ENG [Bot interval in miliseconds]  #  PL [Interwal bota w milisekundach]
  2487.         'bot_interval'  => 100,     //1000 = one second
  2488.  
  2489.     // ENG ['events_plugins' or 'commands' (default 'live_help')]  #  PL ['events_plugins' lub 'commands' (domyślnie 'live_help')]
  2490.         'function_type' => 'live_help', // Do not change
  2491. );
  2492.  
  2493.  
  2494.  
  2495. $config['instance']['6']['functions'] = array
  2496. (
  2497.  
  2498.  
  2499.  
  2500.     /**************************************
  2501.  
  2502.         ENG [PLUGINS]   #   PL [PLUGINY]
  2503.  
  2504.     **************************************/
  2505.  
  2506.  
  2507.    
  2508.     'plugins' => false,
  2509.  
  2510.  
  2511.  
  2512.     /**************************************
  2513.  
  2514.          ENG [EVENTS]   #   PL [EVENTY]
  2515.  
  2516.     **************************************/
  2517.  
  2518.  
  2519.     'events' => true,
  2520.  
  2521.  
  2522.     // ENG [Live Help]  #  PL [Live Help]
  2523.     'live_help' => array
  2524.     (
  2525.         'enabled' => true,
  2526.         'support_channel_id' => 25851,
  2527.         'ignored_groups' => array(449),
  2528.         'commands_enabled' => true,
  2529.  
  2530.         //if not registered commands !m, !k
  2531.         'registration_groups' => array
  2532.         (
  2533.             'enabled' => true,
  2534.             'min_time' => 5,    //in minutes (DB must be on)
  2535.             'man' => array
  2536.             (
  2537.                 'sgid' => 416,
  2538.                 //command - !m
  2539.             ),
  2540.             'woman' => array
  2541.             (
  2542.                 'sgid' => 434,
  2543.                 //commdn - !k
  2544.             ), 
  2545.         ),
  2546.  
  2547.         //!list, !add, !del
  2548.         'server_groups' => array
  2549.         (
  2550.             'enabled' => true,
  2551.             'info' => array
  2552.             (
  2553.                 /****************************************
  2554.            
  2555.                     '1' => array                    //growing number, for example 1, 2, 3...
  2556.                     (
  2557.                         'server_groups' => array(52,53,54,55,56),   //server groups
  2558.                         'limit' => 1,                   //limit of checking groups
  2559.                         'name' => 'Grupy wiekowe',
  2560.                     ),
  2561.                    
  2562.                 ****************************************/
  2563.            
  2564.                 '1' => array
  2565.                 (
  2566.                     'server_groups' => array(442,443,444,445,446),  //checking server groups
  2567.                     'limit' => 1,                   //limit of checking groups
  2568.                     'name' => 'Grupy wiekowe',
  2569.                 ),
  2570.                 '2' => array
  2571.                 (
  2572.                     'server_groups' => array(419,420,421,422,423,424,425,426,427,428,429,430),  //server groups
  2573.                     'limit' => 2,                   //limit of checking groups
  2574.                     'name' => 'Grupy 4Fun',
  2575.                 ),
  2576.             ),
  2577.         ),
  2578.  
  2579.         //!faq
  2580.         'faq' => array
  2581.         (
  2582.             'enabled' => true,
  2583.             'info' => "1. Co ja tu robię? - siedzisz na najlepszym serwerze TS3\n2. Co to za kanał? - jest to kanał pomocy serwera XBot-ts3.pl\n",
  2584.         ),
  2585.  
  2586.         //!my_info
  2587.         'client_info' => array
  2588.         (
  2589.             'enabled' => true,
  2590.         ),
  2591.  
  2592.         //!admin
  2593.         'poke_admins' => array
  2594.         (  
  2595.             'enabled' => true,
  2596.             'admins_groups' => array(415,431,467,475), //important in `sinusbot` function
  2597.             'ignored_groups' => array(462),
  2598.             'ignored_channels' => array(),  //channels where bot doesn't poke admins
  2599.             'show_client_link' => true,     //show client link ([url])
  2600.             'with_command' => false,        //poke admins only after command !admin
  2601.             'poke_once' => false,           //send one poke to admin (true) or more (false)
  2602.             'poking_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 15),   //Only if poke_once = true
  2603.            
  2604.         ),
  2605.  
  2606.         //!channel
  2607.         'get_private_channel' => array
  2608.         (
  2609.             'enabled' => true,
  2610.             'sub_channels' => 2,                //how many sub channels
  2611.             'head_channel_admin_group' => 71,       //main head channel admin group id
  2612.             'message_type' => 'poke',           //message type (poke or message)
  2613.             'empty_channel_topic' => '#free',       //topic in empty channels
  2614.             'channels_zone' => 25942,           //parent channel id
  2615.             'sb_delay' => 16,
  2616.         ),
  2617.  
  2618.         //`talking` sinusbot
  2619.         'sinusbot' => array
  2620.         (
  2621.             'enabled' => true,
  2622.             'host' => 'http://127.0.0.1:8087',
  2623.             'login' => 'admin',
  2624.             'password' => '',
  2625.             'instance_uid' => 'aa910e67-895f-43cc-9824-402ac5b5cac8',
  2626.             'playlist_id' => 'abf4d0fb-725b-4311-9630-442fff63d112',
  2627.             'bot_nick' => 'XBot',
  2628.             'queue_in_nick' => true,        //Show in nick number of people in queue
  2629.             'type' => 1,
  2630.         ),
  2631.        
  2632.        
  2633.         'read_chat' => 1,   //in seconds Default 1
  2634.         'time_interval' => array('weeks' => 0,'days' => 0,'hours' => 0,'minutes' => 0,'seconds' => 0), //Default: 0 seconds
  2635.     ),
  2636. );
  2637.  
  2638. ?>
Comments
  • User was banned
Add Comment
Please, Sign In to add comment