Initial commit

This commit is contained in:
eleksir
2025-06-08 04:32:16 +03:00
parent c1ad1d3925
commit 0ed09563e2
20 changed files with 600 additions and 280 deletions

View File

@@ -1,6 +1,7 @@
package moon
import (
"os"
"time"
)
@@ -10,6 +11,7 @@ type MyConfig struct {
Token string `json:"token,omitempty"`
LogLevel string `json:"loglevel,omitempty"`
LogFile string `json:"logfile,omitempty"`
LogChats bool `json:"logchats,omitempty"`
CSign string `json:"csign,omitempty"`
DataDir string `json:"datadir,omitempty"`
}
@@ -30,4 +32,9 @@ type CasTrue struct {
} `json:"result"`
}
type Chatlog struct {
LogFilePath string
File *os.File
}
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */