From 3fedb719f0f216ef5ce52208f0755104bd464d8c Mon Sep 17 00:00:00 2001 From: topi314 Date: Sun, 16 Jun 2024 17:48:29 +0200 Subject: [PATCH] cleanup imports --- commands/commands.go | 1 + commands/latest.go | 3 ++- commands/lyrics.go | 1 + commands/now_playing.go | 1 + commands/play.go | 3 ++- commands/queue.go | 1 + commands/seek.go | 1 + handlers/lavalink.go | 3 ++- main.go | 5 +++-- routes/github_webhook.go | 3 ++- 10 files changed, 16 insertions(+), 6 deletions(-) diff --git a/commands/commands.go b/commands/commands.go index 371d2be..86403e3 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -2,6 +2,7 @@ package commands import ( "github.com/disgoorg/disgo/discord" + "github.com/lavalink-devs/lavalink-bot/lavalinkbot" ) diff --git a/commands/latest.go b/commands/latest.go index 6d1415a..b481629 100644 --- a/commands/latest.go +++ b/commands/latest.go @@ -8,8 +8,9 @@ import ( "github.com/disgoorg/disgo/discord" "github.com/disgoorg/disgo/handler" - "github.com/lavalink-devs/lavalink-bot/lavalinkbot" "github.com/lithammer/fuzzysearch/fuzzy" + + "github.com/lavalink-devs/lavalink-bot/lavalinkbot" ) var latest = discord.SlashCommandCreate{ diff --git a/commands/lyrics.go b/commands/lyrics.go index bcc4ff4..a735fe8 100644 --- a/commands/lyrics.go +++ b/commands/lyrics.go @@ -10,6 +10,7 @@ import ( "github.com/disgoorg/disgo/handler" "github.com/disgoorg/json" "github.com/disgoorg/lavalyrics-plugin" + "github.com/lavalink-devs/lavalink-bot/internal/res" ) diff --git a/commands/now_playing.go b/commands/now_playing.go index 56bb292..9598bc2 100644 --- a/commands/now_playing.go +++ b/commands/now_playing.go @@ -7,6 +7,7 @@ import ( "github.com/disgoorg/disgo/discord" "github.com/disgoorg/disgo/handler" "github.com/disgoorg/json" + "github.com/lavalink-devs/lavalink-bot/internal/res" ) diff --git a/commands/play.go b/commands/play.go index 5ec0fbd..820c27a 100644 --- a/commands/play.go +++ b/commands/play.go @@ -15,8 +15,9 @@ import ( "github.com/disgoorg/lavasearch-plugin" "github.com/disgoorg/lavasrc-plugin" "github.com/disgoorg/snowflake/v2" - "github.com/lavalink-devs/lavalink-bot/internal/res" "go.deanishe.net/fuzzy" + + "github.com/lavalink-devs/lavalink-bot/internal/res" ) var ( diff --git a/commands/queue.go b/commands/queue.go index 122a3b2..0ba8c97 100644 --- a/commands/queue.go +++ b/commands/queue.go @@ -5,6 +5,7 @@ import ( "github.com/disgoorg/disgo/discord" "github.com/disgoorg/disgo/handler" + "github.com/lavalink-devs/lavalink-bot/internal/res" ) diff --git a/commands/seek.go b/commands/seek.go index 3d77011..7a69ebd 100644 --- a/commands/seek.go +++ b/commands/seek.go @@ -8,6 +8,7 @@ import ( "github.com/disgoorg/disgo/discord" "github.com/disgoorg/disgo/handler" "github.com/disgoorg/disgolink/v3/lavalink" + "github.com/lavalink-devs/lavalink-bot/internal/res" ) diff --git a/handlers/lavalink.go b/handlers/lavalink.go index c3d7c18..994be60 100644 --- a/handlers/lavalink.go +++ b/handlers/lavalink.go @@ -11,9 +11,10 @@ import ( "github.com/disgoorg/disgolink/v3/disgolink" "github.com/disgoorg/disgolink/v3/lavalink" "github.com/disgoorg/sponsorblock-plugin" + "github.com/topi314/tint" + "github.com/lavalink-devs/lavalink-bot/commands" "github.com/lavalink-devs/lavalink-bot/internal/res" - "github.com/topi314/tint" ) func (h *Handlers) OnVoiceStateUpdate(event *events.GuildVoiceStateUpdate) { diff --git a/main.go b/main.go index 9854e51..912be69 100644 --- a/main.go +++ b/main.go @@ -20,13 +20,14 @@ import ( "github.com/disgoorg/disgolink/v3/disgolink" "github.com/disgoorg/sponsorblock-plugin" "github.com/google/go-github/v52/github" + "github.com/mattn/go-colorable" + "github.com/topi314/tint" + "github.com/lavalink-devs/lavalink-bot/commands" "github.com/lavalink-devs/lavalink-bot/handlers" "github.com/lavalink-devs/lavalink-bot/internal/maven" "github.com/lavalink-devs/lavalink-bot/lavalinkbot" "github.com/lavalink-devs/lavalink-bot/routes" - "github.com/mattn/go-colorable" - "github.com/topi314/tint" ) func main() { diff --git a/routes/github_webhook.go b/routes/github_webhook.go index 295cd17..3df07ff 100644 --- a/routes/github_webhook.go +++ b/routes/github_webhook.go @@ -10,8 +10,9 @@ import ( "github.com/disgoorg/disgo/discord" "github.com/disgoorg/disgo/webhook" "github.com/google/go-github/v52/github" - "github.com/lavalink-devs/lavalink-bot/lavalinkbot" "github.com/topi314/tint" + + "github.com/lavalink-devs/lavalink-bot/lavalinkbot" ) var (