feat: add support for auto backup db file (#1950)

Add support for auto backup db file
This commit is contained in:
Athurg Gooth
2023-07-14 20:05:07 +08:00
committed by GitHub
parent 39351970d0
commit d9b3501fae
6 changed files with 108 additions and 3 deletions

View File

@@ -103,6 +103,7 @@ func (s *Server) Start(ctx context.Context) error {
}
go s.telegramBot.Start(ctx)
go autoBackup(ctx, s.Store)
return s.e.Start(fmt.Sprintf(":%d", s.Profile.Port))
}