From ee019c331ec8f836e6e389ff686a5e3a93d202d0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 27 Jun 2020 21:33:57 +0200 Subject: [PATCH] update data folderupdate data folder --- go.mod | 10 +++++----- main.go | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index d974c87..9937b4f 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/main.go b/main.go index 5db2021..0248d66 100644 --- a/main.go +++ b/main.go @@ -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, })