From 82eba977cdfc2c8e9d82655d0e7045337f7f2a15 Mon Sep 17 00:00:00 2001 From: Castor Regex Date: Sun, 24 Aug 2025 13:14:48 -0500 Subject: [PATCH] fix(count-auto): load chats before counting --- doCountAuto.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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