|
|
@@ -3,6 +3,7 @@ package main
|
|
|
import (
|
|
|
"github.com/ayntgl/discordgo"
|
|
|
"github.com/gdamore/tcell/v2"
|
|
|
+ "github.com/rigormorrtiss/discordo/util"
|
|
|
"github.com/rivo/tview"
|
|
|
"github.com/zalando/go-keyring"
|
|
|
)
|
|
|
@@ -17,15 +18,14 @@ var (
|
|
|
messageInputField *tview.InputField
|
|
|
mainFlex *tview.Flex
|
|
|
|
|
|
- conf *config
|
|
|
-
|
|
|
+ conf *util.Config
|
|
|
session *discordgo.Session
|
|
|
selectedChannel *discordgo.Channel
|
|
|
selectedMessage *discordgo.Message
|
|
|
)
|
|
|
|
|
|
func main() {
|
|
|
- conf = loadConfig()
|
|
|
+ conf = util.LoadConfig()
|
|
|
tview.Styles = conf.Theme
|
|
|
|
|
|
app = tview.NewApplication()
|