about summary refs log tree commit diff
path: root/config.example.lua
blob: faafcf4f244b1803c0c9f5a8899ef1220f2aab42 (plain)
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
return {
	host = {
		host = "localhost",
		port = 6667,
		tls = false,
	},
	-- print all messages received from the server to stdout
	debug = true,
	nick = "edward",
	user = "edward",
	-- pass = "user:pass"
	-- allow dms? currently unimplemented
	direct = false,
	-- directory to run commands under. this can also be specified
	-- in the individual channels; the individual settings overwrite
	-- this one and don't act relative to it.
	directory = "testbed",
	-- this one can be overwritten too
	command = { "red" },
	-- a ist of lua patterns (maybe regex later) that
	-- tells edbot when to listen for commands
	-- %n is replaced with edbot's current nickname
	-- %% is replaced by %
	invoke = { "%n: ?" },
	channels = {
		["#ed1bot"] = {
			invoke = { "%n: ?", ":" },
		},
	},
}