File: config.lua

package info (click to toggle)
pvpgn 1.99.7.2.1%2Bdfsg-3
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 8,300 kB
  • sloc: cpp: 118,407; xml: 6,367; sh: 1,558; ansic: 1,300; perl: 604; cs: 382; python: 308; php: 130; awk: 73; makefile: 19
file content (41 lines) | stat: -rw-r--r-- 1,710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--[[
	Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
	
	This file is a part of the PvPGN Project http://pvpgn.pro
	Licensed under the same terms as Lua itself.
]]--


-- Config table can be extended here with your own variables
-- values are preloaded from bnetd.conf
config = {
	-- Path to "var" directory (with slash at the end)
	-- Usage: config.vardir()
	vardir = function()
		return string.replace(config.statusdir, "status", "")
	end,

	flood_immunity_users = { "admin", "" }, -- ignore flood protection for these users

	-- Quiz settings
	quiz = true,
	quiz_filelist = "misc, dota, warcraft", -- display available files in "/quiz start"
	quiz_competitive_mode = true, -- top players loses half of points which last player received; at the end top of records loses half of points which players received in current game
	quiz_max_questions = 100, -- from start to end
	quiz_question_delay = 5, -- delay before send next question
	quiz_hint_delay = 20, -- delay between prompts
	quiz_users_in_top = 15, -- how many users display in TOP list
	quiz_channel = nil, -- (do not modify!) channel when quiz has started (it assigned with start)
	
	-- AntiHack (Starcraft)
	ah = true,
	ah_interval = 60, -- interval for send memory request to all players in games

	-- GHost++ (https://github.com/OHSystem/ohsystem)
	ghost = false, -- enable GHost commands
	ghost_bots = { "hostbot1", "hostbot2" }, -- list of authorized bots
	ghost_dota_server = true, -- replace normal Warcraft 3 stats with DotA
	ghost_ping_expire = 90, -- interval when outdated botpings should be removed (bot ping updates for each user when he join a game hosted by ghost); game list shows to user depending on the best ping to host bot

}