feat: Scaffolding bot
This commit is contained in:
@@ -9,3 +9,17 @@ type AppState struct {
|
||||
Bags map[string]crawler.Bag `firestore:"bags"`
|
||||
ChatIDs []int64 `firestore:"chat_ids"`
|
||||
}
|
||||
|
||||
// UserState represents the state of all users.
|
||||
type UserState struct {
|
||||
Users map[string]ChatState `firestore:"users"`
|
||||
FreeCode []string `firestore:"free_code"`
|
||||
}
|
||||
|
||||
type ChatState struct {
|
||||
ChatID int64 `firestore:"chat_id"`
|
||||
Registered bool `firestore:"registered"`
|
||||
InviteCode string `firestore:"invite_code"`
|
||||
CurrentOp string `firestore:"current_operation"`
|
||||
Context string `firestore:"context"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user