update data folderupdate data folder

This commit is contained in:
shoopea 2020-06-27 21:33:57 +02:00
parent c3a2f5afba
commit ee019c331e
2 changed files with 8 additions and 8 deletions

10
go.mod
View File

@ -3,9 +3,9 @@ module gogs.siteop.biz/shoopea/gocw2
go 1.13
require (
github.com/Arman92/go-tdlib v0.0.0-20200423222840-430aa563191c
github.com/streadway/amqp v1.0.0
gopkg.in/gcfg.v1 v1.2.3
gopkg.in/tucnak/telebot.v2 v2.3.2
gopkg.in/warnings.v0 v0.1.2 // indirect
github.com/Arman92/go-tdlib v0.0.0-20200423222840-430aa563191c
github.com/streadway/amqp v1.0.0
gopkg.in/gcfg.v1 v1.2.3
gopkg.in/tucnak/telebot.v2 v2.3.2
gopkg.in/warnings.v0 v0.1.2 // indirect
)

View File

@ -28,7 +28,7 @@ type Config struct {
}
var (
config = flag.String("config", "gocw2.cfg", "config file path")
config = flag.String("config", "./data/gocw2.cfg", "config file path")
history = flag.Bool("history", false, "initialize chat history")
historyChatID64 = flag.Int64("chat_id", 0, "chat to historize")
historySenderUserID64 = flag.Int64("sender_user_id", 0, "sender_user_id to historize")
@ -75,8 +75,8 @@ func main() {
UseFileDatabase: true,
UseChatInfoDatabase: true,
UseTestDataCenter: false,
DatabaseDirectory: "./tdlib-db",
FileDirectory: "./tdlib-files",
DatabaseDirectory: "./data/tdlib-db",
FileDirectory: "./data/tdlib-files",
IgnoreFileNames: false,
})