summaryrefslogtreecommitdiff
path: root/doCountAuto.go
diff options
context:
space:
mode:
Diffstat (limited to 'doCountAuto.go')
-rw-r--r--doCountAuto.go16
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)
+}