diff options
| author | Castor Regex <[email protected]> | 2025-08-24 13:07:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-24 13:07:43 -0500 |
| commit | b03889101d81b1b6c79f627a22dca7569cb14ad6 (patch) | |
| tree | 70d6be20c1da7b744ae6d399ab3dc99ed7a96336 /doCountAuto.go | |
| parent | 1a6b3671443c86ced2f7143116b3f8ff7206cef5 (diff) | |
feat(chat): add --new-chat and --count-auto flags
Diffstat (limited to 'doCountAuto.go')
| -rw-r--r-- | doCountAuto.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doCountAuto.go b/doCountAuto.go new file mode 100644 index 0000000..2aa958e --- /dev/null +++ b/doCountAuto.go @@ -0,0 +1,16 @@ +package main + +import ( + "fmt" + "strings" +) + +func doCountAuto() { + count := 0 + for _, chat := range me.chats.GetChats() { + if strings.HasPrefix(chat.GetChatName(), "Auto ") { + count++ + } + } + fmt.Println(count) +} |
