Advertisement
Guest User

Untitled

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