mirror of
https://git.ferricyanide.solutions/A_D/irc-webhooks.git
synced 2024-12-22 03:27:03 +00:00
made servers configurable
This commit is contained in:
parent
d8d8afd94a
commit
e110560515
@ -5,6 +5,9 @@
|
||||
"nick": "ADGitea",
|
||||
"ident": "gitea",
|
||||
"realname": "gitea",
|
||||
"server_host": "irc.snoonet.org",
|
||||
"server_port": "6697",
|
||||
"ssl": true,
|
||||
"ns_nick": "",
|
||||
"ns_passwd": "",
|
||||
"chans_to_join": [
|
||||
|
@ -10,6 +10,10 @@ type Config struct {
|
||||
Secret string `json:"secret"`
|
||||
BindHost string `json:"bind_host"`
|
||||
BindPort string `json:"bind_port"`
|
||||
ServerHost string `json:"server_host"`
|
||||
ServerPort string `json:"server_port"`
|
||||
ServerSSL bool `json:"server_ssl"`
|
||||
ServerName string `json:"server_name"`
|
||||
Nick string `json:"nick"`
|
||||
Ident string `json:"ident"`
|
||||
Realname string `json:"realname"`
|
||||
|
@ -21,7 +21,7 @@ func main() {
|
||||
MsgChan: msgChan,
|
||||
}
|
||||
|
||||
bot := newBot(bc, "chimera.snoonet.org", "6697", "snoonet", true)
|
||||
bot := newBot(bc, config.ServerHost, config.ServerPort, config.ServerName, config.ServerSSL)
|
||||
|
||||
go bot.run()
|
||||
ListenForWebHook(config, msgChan)
|
||||
|
Loading…
Reference in New Issue
Block a user