update scraping logic to handle new style cbox pages and new unified dateformat

This commit is contained in:
Neo-Desktop committed 2021-10-04 09:00:49 -07:00
1 parent 7ebc9d5acc
commit a7d0094a08
5 files changed
+183 -57

No files matched your search

+3 -1
View File
@@ -12,6 +12,8 @@ type Message struct {
Message string
}
const DisplayDatetimeFormat = "2006-01-02 03:04PM"
func (m *Message) String() string {
return fmt.Sprintf("#%d [%s] <%s> %s", m.MessageID, m.DateTime.Format(DatetimeFormat), m.Username, m.Message)
return fmt.Sprintf("#%d [%s] <%s> %s", m.MessageID, m.DateTime.Format(DisplayDatetimeFormat), m.Username, m.Message)
}