Advertisement
Guest User

Untitled

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