|
@@ -6,7 +6,7 @@ import (
|
|
|
"strings"
|
|
"strings"
|
|
|
|
|
|
|
|
"github.com/ayntgl/discordgo"
|
|
"github.com/ayntgl/discordgo"
|
|
|
- "github.com/ayntgl/discordo/config"
|
|
|
|
|
|
|
+ "github.com/ayntgl/discordo/util"
|
|
|
"github.com/gen2brain/beeep"
|
|
"github.com/gen2brain/beeep"
|
|
|
"github.com/rivo/tview"
|
|
"github.com/rivo/tview"
|
|
|
)
|
|
)
|
|
@@ -20,7 +20,7 @@ type App struct {
|
|
|
MessageInputField *tview.InputField
|
|
MessageInputField *tview.InputField
|
|
|
Session *discordgo.Session
|
|
Session *discordgo.Session
|
|
|
SelectedChannel *discordgo.Channel
|
|
SelectedChannel *discordgo.Channel
|
|
|
- Config config.Config
|
|
|
|
|
|
|
+ Config util.Config
|
|
|
SelectedMessage int
|
|
SelectedMessage int
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -35,7 +35,7 @@ func NewApp() *App {
|
|
|
MessageInputField: tview.NewInputField(),
|
|
MessageInputField: tview.NewInputField(),
|
|
|
|
|
|
|
|
Session: s,
|
|
Session: s,
|
|
|
- Config: config.Load(),
|
|
|
|
|
|
|
+ Config: util.LoadConfig(),
|
|
|
SelectedMessage: -1,
|
|
SelectedMessage: -1,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|