forked from parkervcp/parkertron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathirc_structs.go
29 lines (25 loc) · 852 Bytes
/
irc_structs.go
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
package main
// irc configs
type irc struct {
Bots []ircBot `json:"bots,omitempty"`
}
type ircBot struct {
BotName string `json:"bot_name,omitempty"`
Config ircBotConfig `json:"config,omitempty"`
ChanGroups []channelGroup `json:"channel_groups,omitempty"`
}
type ircBotConfig struct {
Server ircServerConfig `json:"server,omitempty"`
DMResp responseArray `json:"dm_response,omitempty"`
Prefix string `json:"prefix,omitempty"`
}
type ircServerConfig struct {
Address string `json:"address,omitempty"`
Port int `json:"port,omitempty"`
SSLEnable bool `json:"ssl,omitempty"`
Ident string `json:"ident,omitempty"`
Email string `json:"email,omitempty"`
Password string `json:"password,omitempty"`
Nickname string `json:"nickname,omitempty"`
RealName string `json:"real_name,omitempty"`
}