diff options
| author | Castor Regex <[email protected]> | 2025-08-24 13:14:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-24 13:14:48 -0500 |
| commit | 82eba977cdfc2c8e9d82655d0e7045337f7f2a15 (patch) | |
| tree | 0ad144da841a5a4f7442d5be1b7f46559cf89d06 /doCountAuto.go | |
| parent | 9c7d2a9c9e92264ff6f5f2ebcc7f54ab49ccefcf (diff) | |
fix(count-auto): load chats before counting
Diffstat (limited to 'doCountAuto.go')
| -rw-r--r-- | doCountAuto.go | 5 |
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 |
