Needs refactoring.
This commit is contained in:
parent
e3a75369ae
commit
76f65aac90
1 changed files with 4 additions and 5 deletions
|
|
@ -2,25 +2,23 @@ package app
|
|||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"github.com/mymmrac/telego"
|
||||
th "github.com/mymmrac/telego/telegohandler"
|
||||
"github.com/robfig/cron/v3"
|
||||
|
||||
"code.destrealm.net/zancarius/justusbot/internal/settings"
|
||||
"go.destrealm.net/vfs"
|
||||
)
|
||||
|
||||
type app struct {
|
||||
ds *datastore
|
||||
//ds *datastore
|
||||
settings *settings.Settings
|
||||
|
||||
cron *cron.Cron
|
||||
}
|
||||
|
||||
func NewApp(conf string) (*app, error) {
|
||||
a := &app{}
|
||||
/*a := &app{}
|
||||
cwd, err := os.Getwd()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -36,7 +34,8 @@ func NewApp(conf string) (*app, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return a, nil
|
||||
return a, nil*/
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (a *app) Start() error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue