-
Notifications
You must be signed in to change notification settings - Fork 0
/
foxbot.conf.example
115 lines (105 loc) · 3.26 KB
/
foxbot.conf.example
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/* Config file for foxbot
*
* C/C++/Bash comments are allowed.
*
*/
/* bot {}: Bot block
*
* Defines core configuration and host information for your bot.
*
* The `plugin` field will load the specified plugin at runtime.
* The plugin must be located in the plugins directory. Multiple
* plugins can be specified.
*
* The `nick` field is what the bot will use to connect to the network.
*
* The `ident` field is what the bot will use to connect to the network.
*
* The `realname` field is what the bot will use to connect to the network.
*
* The `host` field is what the bot will connect to. IPv4, IPv6, and hostname
* connecting are supported.
*
* The `port` field is what port the bot will connect through. Currently, only
* plaintext ports are supported. (TLS soon)
*
* The `password` field is used to specify the server's password. Use this field
* if your server requires a password.
*
* The `prefix` field is used to specify the command prefix in which the bot should
* respond to. Note, this is used as a guideline for core plugins so third party
* plugins may use alternative prefixes outside of the config one if they so chose.
*/
bot {
/* Uncomment to load this plugin. You can add as many plugins
* as you like.
*/
// plugin = "echo_test";
plugin = "plugin_manager";
prefix = ".";
nick = "foxbot";
ident = "fox";
realname = ":3";
host = "misconfigured.network";
port = "-4";
#password = "example_password";
};
/* channel {}: Channel blocks
*
* Allows you to create channels for your bot to join.
*
* The `name` field is the channel in which the bot will join.
*
* The `key` field is used for your bot to join a channel that
* has a key set (+k).
*
* The `debug` field will specify that the channel will be used
* for logging debug information.
*
* Multiple channel blocks can be specified.
*/
channel {
name = "#misconfigured";
};
channel {
name = "#foxbot_logging";
debug = yes;
};
channel {
name = "#some_private_chan";
key = "s3cretk3y";
debug = yes;
};
/* admin {}: Administrator blocks
*
* Allows you to create administrators for your bot.
*
* The `name` field is used as a reference point when listing admins
* through the bot (not implemented yet).
*
* The `nickserv` field will allow you to gain admin privileges to
* your bot if you are currently logged in to services under the
* specified account. Multiple accounts can be specified.
*
* The `host` field will allow you to gain admin privileges to your
* bot if your current host matches the host specified. Multiple hosts
* can be specified, however, wildcard hosts are currently not supported.
*
* The `access` field grants you access to the bot. If access is below 1,
* then the block will be ignored entirely. The upper limit is set to 1000.
*
* Multiple admin blocks can be specified.
*
* NOTE: All fields are case insensitive.
*/
admin {
name = "example admin";
/* Which services account to associate the block with (can be omitted) */
nickserv = "blindsight";
nickserv = "staticfox";
/* Which hosts to associate the block with (can be omitted) */
host = "192.168.hwo.mh";
host = "127.0.fdm.dga";
/* What access to give the user. Access must be greater than 0. */
access = 1000;
};