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