diff --git a/doCountAuto.go b/doCountAuto.go index 2aa958e..00d4b58 100644 --- a/doCountAuto.go +++ b/doCountAuto.go @@ -6,6 +6,9 @@ import ( ) func doCountAuto() { + if err := me.chats.ConfigLoad(); err != nil { + badExit(err) + } count := 0 for _, chat := range me.chats.GetChats() { if strings.HasPrefix(chat.GetChatName(), "Auto ") { @@ -13,4 +16,4 @@ func doCountAuto() { } } fmt.Println(count) -} +} \ No newline at end of file