This repository was archived by the owner on Apr 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathexample.json
More file actions
121 lines (121 loc) · 4.76 KB
/
example.json
File metadata and controls
121 lines (121 loc) · 4.76 KB
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
116
117
118
119
120
121
{"servers": [
{
"nick": "Code",
"name": "",
"user": "",
"host": "irc.example.net",
"port": 6667,
"connect_delay": 20,
"server_password": "",
"nickserv_username": "",
"nickserv_password": "",
// Is the above nickserv password for X (CServices) on Undernet?
"nickserv_is_x": false,
// Set the Undernet usermask on Code. Requires "nickserv_is_x" to be true, and
// the nickserv (CServices) information to be filled in. Will set the bots
// hostname to "your_username.users.undernet.org"
"undernet_hostmask": false,
"channels": [
"#example",
"#anotherexample"
],
// Prefix that Code uses for commands. Some special characters need \ in front of them
"prefix": ".",
// Shorten URL's using a URL shortening service
"shorten_urls": true,
// For both owner, and admins, you can use different methods of ensuring the admin, is
// actually an admin. The forms you can use are (sorting from most secure, to least secure):
// - nick!user@host
// - user@host
// - @host
// - nick <-- Note, this method can be very insecure on networks without Nickserv
"owner": "Yourusername",
"admins": [
// e.g. "SomeoneYouTrust"
],
// Enable or disable /ALMOST/ all color responses from Code
"text_decorations": true,
// Some modules are disabled by default because they require further setup
"excluded_modules": ["unicode_lookup"],
// Rather than excluding almost all modules (manually, above), you can instead whitelist
// only a certain number of them, which ignores the above and uses these
"whitelisted_modules": [],
// Block modules from specific channels
// "!" being all
"excluded_per_channel": {
// "#blacklisted": ["!"]
},
// Check each user that joins the channel to see if they are in the
// Project Honeypot IP Abuser Database. IP's that are in that Database
// Are involved in spam, DDoS, and more.
"honeypot_on_join": true,
// Kickban on honeypot trigger? The bot will need to have op in the channel
"kickban_on_honeypot": false,
// Send the location of a user to the channel when they join
"geoip_on_join": [
// "#example",
// "#anotherexample"
],
// Would you like to run a webserver alongside Code? This is only for development purposes
// And is accessable with the raw IRC command, and password below (required)
// E.g: http://your-host.net:8888/?pass=herpderptrains&args=PRIVMSG+%23MyChannel&data=I+love+trains
"webserver": true,
"webserver_password": "",
// Auto post twitter feeds to specific channels
// - @username
// - #hashtag
"twitter_autopost": {
// e.g. "#example": ["#YOLO"],
// or "#IRCcloud": ["@IRCcloud"]
},
// Autovoice active users in a channel if they talk within 30m, and devoice if they become inactive
// Note, the bot needs the ability to set and remove voice (+v) using MODE. Requires the bot to have op.
// So, correct channel permissions need to be set
"voice_active_users": [
// "#example",
// "#anotherexample"
],
// Bind to a specific IP address. IPv4 by default, IPv6 if your OS/network supports it.
// Bind to 0.0.0.0 to allow the first usable system-default IPv4 address.
"bind_ip": "0.0.0.0",
// Enable this to output all data to console
"debug": false,
// Extra modules not in the modules directory
"extra": [
// e.g. "/path/to/my/modules"
]
},
{
"nick": "AnotherBot",
"name": "",
"user": "",
"host": "irc.anotherexample.net",
"port": 6667,
"connect_delay": 20,
"server_password": "",
"nickserv_username": "",
"nickserv_password": "",
"nickserv_is_x": false,
"undernet_hostmask": false,
"channels": ["#AnotherExample"],
"prefix": "!",
"shorten_urls": true,
"owner": "Liam",
"admins": [],
"text_decorations": true,
"excluded_modules": ["admin_channel", "unicode_lookup"],
"whitelisted_modules": [],
"excluded_per_channel": {
"#L": ["!"]
},
"honeypot_on_join": true,
"geoip_on_join": [],
"webserver": false,
"webserver_password": "",
"twitter_autopost": {},
"voice_active_users": [],
"bind_ip": "0.0.0.0",
"debug": false,
"extra": []
}
]}