Skip to content

Commit 2442405

Browse files
committed
no more init memes
golang/go#33869 (comment)
1 parent d7146cd commit 2442405

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
ominousEmote = "BOGGED"
3636
)
3737

38-
func init() {
38+
func main() {
3939
flag.StringVar(&authCookie, "cookie", "", "Cookie used for chat authentication and API access")
4040
flag.StringVar(&chatPath, "path", "", "path to chat-gui")
4141
flag.StringVar(&chatURL, "chat", "wss://chat.strims.gg/ws", "ws(s)-url for chat")
@@ -45,9 +45,7 @@ func init() {
4545
flag.StringVar(&atAdminToken, "attoken", "", "angelthump admin token (optional)")
4646
flag.BoolVar(&logOnly, "logonly", false, "only 'reply' to logfile, not chat (for debugging)")
4747
flag.Parse()
48-
}
4948

50-
func main() {
5149
loadStaticCommands()
5250

5351
// TODO dggchat lib isn't flexible with the cookie name, workaround...

0 commit comments

Comments
 (0)