Advertisement
Guest User

Untitled

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