From 5dadf3b5ef3f58c80c7a62f96a0a62b4a784961b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Sep 2025 13:32:25 -0500 Subject: add a GUI --- doGetNextAutoTopic.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 doGetNextAutoTopic.go (limited to 'doGetNextAutoTopic.go') diff --git a/doGetNextAutoTopic.go b/doGetNextAutoTopic.go deleted file mode 100644 index 75060a7..0000000 --- a/doGetNextAutoTopic.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "strconv" - "strings" - - "go.wit.com/log" -) - -func doGetNextAutoTopic() { - max := 0 - for _, chat := range me.chats.GetChats() { - if strings.HasPrefix(chat.GetChatName(), "Auto ") { - numStr := strings.TrimPrefix(chat.GetChatName(), "Auto ") - num, err := strconv.Atoi(numStr) - if err == nil && num > max { - max = num - } - } - } - log.Printf("Auto %d", max+1) -} -- cgit v1.2.3