Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Mar 3, 2023
1 parent cf3f581 commit a97fd0a
Show file tree
Hide file tree
Showing 42 changed files with 108 additions and 66 deletions.
3 changes: 2 additions & 1 deletion backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"net/http"
"time"

"github.com/KittyBot-Org/KittyBotGo/db"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/db"

"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/rest"
"github.com/disgoorg/log"
Expand Down
3 changes: 2 additions & 1 deletion backend/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package backend
import (
"time"

"github.com/KittyBot-Org/KittyBotGo/config"
"github.com/disgoorg/snowflake/v2"

"github.com/KittyBot-Org/KittyBotGo/config"
)

type Config struct {
Expand Down
3 changes: 2 additions & 1 deletion backend/routes/votes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"encoding/json"
"net/http"

backend2 "github.com/KittyBot-Org/KittyBotGo/backend"
"github.com/disgoorg/snowflake/v2"
"github.com/gorilla/mux"

backend2 "github.com/KittyBot-Org/KittyBotGo/backend"
)

type voteAddPayload struct {
Expand Down
5 changes: 3 additions & 2 deletions cmd/backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
"os/signal"
"syscall"

"github.com/disgoorg/log"
_ "github.com/lib/pq"

backend2 "github.com/KittyBot-Org/KittyBotGo/backend"
"github.com/KittyBot-Org/KittyBotGo/backend/routes"
"github.com/KittyBot-Org/KittyBotGo/config"
"github.com/KittyBot-Org/KittyBotGo/db"
"github.com/disgoorg/log"
_ "github.com/lib/pq"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"errors"
"os"

"github.com/KittyBot-Org/KittyBotGo/db"
"github.com/disgoorg/json"
"github.com/disgoorg/log"
"github.com/disgoorg/snowflake/v2"

"github.com/KittyBot-Org/KittyBotGo/db"
)

func LoadConfig(v interface{}) error {
Expand Down
5 changes: 3 additions & 2 deletions db/guild_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package db
import (
"database/sql"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
"github.com/disgoorg/snowflake/v2"
. "github.com/go-jet/jet/v2/postgres"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
)

type GuildSettingsDB interface {
Expand Down
5 changes: 3 additions & 2 deletions db/liked_tracks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"database/sql"
"time"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
"github.com/disgoorg/snowflake/v2"
. "github.com/go-jet/jet/v2/postgres"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
)

type LikedTracksDB interface {
Expand Down
5 changes: 3 additions & 2 deletions db/play_histories.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"database/sql"
"time"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
"github.com/disgoorg/snowflake/v2"
. "github.com/go-jet/jet/v2/postgres"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
)

type PlayHistoriesDB interface {
Expand Down
5 changes: 3 additions & 2 deletions db/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"database/sql"
"time"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
"github.com/disgoorg/snowflake/v2"
. "github.com/go-jet/jet/v2/postgres"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
)

type ReportsDB interface {
Expand Down
5 changes: 3 additions & 2 deletions db/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"database/sql"
"time"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
"github.com/disgoorg/snowflake/v2"
. "github.com/go-jet/jet/v2/postgres"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
)

type TagsDB interface {
Expand Down
5 changes: 3 additions & 2 deletions db/voters.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"database/sql"
"time"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
"github.com/disgoorg/snowflake/v2"
. "github.com/go-jet/jet/v2/postgres"

. "github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/table"
)

type VotersDB interface {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/bass-boost.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package commands

import (
"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/disgolink/lavalink"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

var bassBoost = &lavalink.Equalizer{
Expand Down
3 changes: 2 additions & 1 deletion dbot/commands/clear-queue.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package commands

import (
"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/dbot"
)

func ClearQueue(b *dbot.Bot) handler.Command {
Expand Down
3 changes: 2 additions & 1 deletion dbot/commands/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package commands
import (
"fmt"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"
"github.com/disgoorg/utils/paginator"

"github.com/KittyBot-Org/KittyBotGo/dbot"
)

func History(bot *dbot.Bot) handler.Command {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/liked-tracks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package commands
import (
"fmt"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"
"github.com/disgoorg/utils/paginator"
"github.com/lithammer/fuzzysearch/fuzzy"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

func LikedTracks(b *dbot.Bot) handler.Command {
Expand Down
3 changes: 2 additions & 1 deletion dbot/commands/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package commands
import (
"fmt"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/dbot"
)

func Loop(b *dbot.Bot) handler.Command {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/music_player.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package commands

import (
"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"
"github.com/go-jet/jet/v2/qrm"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

func PlayerNext(b *dbot.Bot) handler.Component {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/music_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package commands
import (
"fmt"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/disgolink/lavalink"
source_plugins "github.com/disgoorg/source-plugins"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

func getMusicControllerComponents(track lavalink.AudioTrack) discord.ContainerComponent {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/next.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package commands

import (
"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

func Next(b *dbot.Bot) handler.Command {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/now-playing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package commands
import (
"fmt"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

func NowPlaying(b *dbot.Bot) handler.Command {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/pause.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package commands

import (
"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

func Pause(b *dbot.Bot) handler.Command {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/play.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"strconv"
"time"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/bot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
Expand All @@ -16,6 +14,9 @@ import (
"github.com/disgoorg/snowflake/v2"
source_plugins "github.com/disgoorg/source-plugins"
"github.com/lithammer/fuzzysearch/fuzzy"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

var urlPattern = regexp.MustCompile("^https?://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]?")
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/previous.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package commands

import (
"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/KittyBot-Org/KittyBotGo/dbot/responses"
)

func Previous(b *dbot.Bot) handler.Command {
Expand Down
3 changes: 2 additions & 1 deletion dbot/commands/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package commands
import (
"fmt"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"
"github.com/disgoorg/utils/paginator"

"github.com/KittyBot-Org/KittyBotGo/dbot"
)

func Queue(b *dbot.Bot) handler.Command {
Expand Down
3 changes: 2 additions & 1 deletion dbot/commands/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"strconv"
"strings"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"
"github.com/lithammer/fuzzysearch/fuzzy"

"github.com/KittyBot-Org/KittyBotGo/dbot"
)

func Remove(b *dbot.Bot) handler.Command {
Expand Down
3 changes: 2 additions & 1 deletion dbot/commands/report-user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"fmt"
"time"

"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"
"github.com/disgoorg/json"

"github.com/KittyBot-Org/KittyBotGo/dbot"
)

func ReportUser(b *dbot.Bot) handler.Command {
Expand Down
5 changes: 3 additions & 2 deletions dbot/commands/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"strconv"
"time"

"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/dbot"
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/disgoorg/handler"
"github.com/disgoorg/snowflake/v2"

"github.com/KittyBot-Org/KittyBotGo/db/.gen/kittybot-go/public/model"
"github.com/KittyBot-Org/KittyBotGo/dbot"
)

func Report(b *dbot.Bot) handler.Command {
Expand Down
Loading

0 comments on commit a97fd0a

Please sign in to comment.