forked from Zottel/Aurora
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.example.lua
67 lines (62 loc) · 2.46 KB
/
config.example.lua
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
-- -------------------------------------------------------------------------- --
-- Aurora - config.lua - Here is where you bot's settings are stored. --
-- -------------------------------------------------------------------------- --
-- Copyright (C) 2010 Julius Roob --
-- This program is free software; you can redistribute it and/or modify it --
-- under the terms of the GNU General Public License as published by the --
-- Free Software Foundation; either version 3 of the License, --
-- or (at your option) any later version. --
-- --
-- This program is distributed in the hope that it will be useful, but --
-- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. --
-- --
-- You should have received a copy of the GNU General Public License along --
-- with this program; if not, see <http://www.gnu.org/licenses/>. --
-- -------------------------------------------------------------------------- --
config = {
modules = {
ping = { -- Detects disconnects
file = "modules/ping.lua",
parameters = {60}
},
reconnect = { -- Self-explanatory
file = "modules/reconnect.lua",
parameters = {true}
},
auth = { -- Aurora uses nested modules for features like authenticated modules
file = "modules/auth.lua",
parameters =
-- Auth modules
{{
modules = { -- Loading and unloading "public" modules
file = "modules/modules.lua",
parameters = {}
},
answer = { -- To see if the authentication was successful
file = "modules/answer.lua",
parameters = {"Aurora?", "Yeah Boss?"}
}
},
-- Auth users
{
admin = "password",
anotheradmin = "anotherpassword!"
}}
},
coffee = { -- Some simple Testcase…
file = "modules/coffee.lua",
parameters = {"data/coffee.example.json"}
},
},
-- These should be self-explanatory for everybody who even remotely knows the IRC.
networks = {
xinutec = {
nickname = "Aurora", realname = "Aurora", ident = "aurora",
host = "irc.xinutec.org", port = 6667,
channels = {"#gempai", "#test"}
}
}
}
return config