about summary refs log tree commit diff stats
path: root/main.go
diff options
context:
space:
mode:
authorBenny Morrison <benmorrison@ttm.sh>2019-03-17 02:21:20 -0400
committerBenny Morrison <benmorrison@ttm.sh>2019-03-17 02:21:20 -0400
commit077ff6d4c5b2aaa4162a17760f63c29b334c42b4 (patch)
tree7d3d444b0b15500b1844e2dea1f58013df73de84 /main.go
parent40dee6d97136445b1aca02e06c41d56f48e921e7 (diff)
downloadgoofbot-077ff6d4c5b2aaa4162a17760f63c29b334c42b4.tar.gz
fixed some comments
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index 8372dec..c9a6309 100644
--- a/main.go
+++ b/main.go
@@ -13,13 +13,15 @@ import (
 	"github.com/lrstanley/girc"
 )
 
+// function to grease error checking
 func checkerr(err error) {
 	if err != nil {
 		panic(err)
 	}
 }
 
-//right now Conf.Pass isn't used, but i'm leaving it so the bot
+//Conf ... right now Conf.Pass isn't used,
+//but i'm leaving it so the bot
 //can have a registered nick
 type Conf struct {
 	Owner  string
@@ -126,7 +128,7 @@ func main() {
 		}
 	})
 
-	// if err is not nothing, eg, if there's an error
+	// die if there's a connection error
 	if err := client.Connect(); err != nil {
 		log.Fatalf("an error occurred while attempting to connect to %s: %s", client.Server(), err)
 	}