diff options
| author | Jeff Carr <[email protected]> | 2025-09-01 13:32:25 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-01 13:32:25 -0500 |
| commit | 5dadf3b5ef3f58c80c7a62f96a0a62b4a784961b (patch) | |
| tree | b1f4b5880aaaaab50cce43eac30eb203361d458b /doGetNextAutoTopic.go | |
| parent | cdc4155ef1b783b10b3c74f43171d43c690dd995 (diff) | |
add a GUI
Diffstat (limited to 'doGetNextAutoTopic.go')
| -rw-r--r-- | doGetNextAutoTopic.go | 22 |
1 files changed, 0 insertions, 22 deletions
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) -} |
