From 08824a2040e1c9728e9d5e2c598745894e9884f7 Mon Sep 17 00:00:00 2001 From: Benny Morrison Date: Sat, 16 Mar 2019 01:21:21 -0400 Subject: moved initial channel to a variable --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2668b85..4510c68 100644 --- a/main.go +++ b/main.go @@ -14,6 +14,8 @@ import ( func main() { // OWNER NICK owner := "ahriman" + // INITIAL CHANNEL + nchannel := "#goofbot" // CLIENT CONFIG client := girc.New(girc.Config{ Server: "irc.tilde.chat", @@ -28,7 +30,7 @@ func main() { // specify the channel to join on startup // for multiple channels: ("#goofbot", "#goofbot2", "#goofbot3") client.Handlers.Add(girc.CONNECTED, func(c *girc.Client, e girc.Event) { - c.Cmd.Join("#goofbot") + c.Cmd.Join(nchannel) }) // basic command-response handler -- cgit 1.4.1-2-gfad0