summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCastor Regex <[email protected]>2025-08-24 13:14:48 -0500
committerJeff Carr <[email protected]>2025-08-24 13:14:48 -0500
commit82eba977cdfc2c8e9d82655d0e7045337f7f2a15 (patch)
tree0ad144da841a5a4f7442d5be1b7f46559cf89d06
parent9c7d2a9c9e92264ff6f5f2ebcc7f54ab49ccefcf (diff)
fix(count-auto): load chats before counting
-rw-r--r--doCountAuto.go5
1 files changed, 4 insertions, 1 deletions
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