Skip to content

Commit

Permalink
Format imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TwiN committed Nov 17, 2020
1 parent a71c2c0 commit a458418
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
3 changes: 2 additions & 1 deletion dca/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import (
"bytes"
"encoding/binary"
"errors"
"github.com/jonas747/ogg"
"io"
"log"
"os"
"os/exec"
"strconv"
"sync"
"time"

"github.com/jonas747/ogg"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion dca/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package dca

import (
"errors"
"github.com/bwmarrin/discordgo"
"io"
"sync"
"time"

"github.com/bwmarrin/discordgo"
)

var (
Expand Down
1 change: 1 addition & 0 deletions discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"

"github.com/bwmarrin/discordgo"
)

Expand Down
3 changes: 2 additions & 1 deletion janitor.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"github.com/bwmarrin/discordgo"
"log"
"time"

"github.com/bwmarrin/discordgo"
)

func StartJanitor(bot *discordgo.Session) {
Expand Down
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ package main
import (
"errors"
"fmt"
"github.com/TwinProduction/discord-music-bot/config"
"github.com/TwinProduction/discord-music-bot/core"
"github.com/TwinProduction/discord-music-bot/youtube"
"github.com/bwmarrin/discordgo"
"log"
"os"
"os/signal"
"strings"
"sync"
"syscall"
"time"

"github.com/TwinProduction/discord-music-bot/config"
"github.com/TwinProduction/discord-music-bot/core"
"github.com/TwinProduction/discord-music-bot/youtube"
"github.com/bwmarrin/discordgo"
)

var (
Expand Down
7 changes: 4 additions & 3 deletions worker.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package main

import (
"github.com/TwinProduction/discord-music-bot/core"
"github.com/TwinProduction/discord-music-bot/dca"
"github.com/bwmarrin/discordgo"
"io"
"log"
"os"
"time"

"github.com/TwinProduction/discord-music-bot/core"
"github.com/TwinProduction/discord-music-bot/dca"
"github.com/bwmarrin/discordgo"
)

func worker(bot *discordgo.Session, activeGuild *core.ActiveGuild, guildId, channelId string) error {
Expand Down
3 changes: 2 additions & 1 deletion youtube/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/TwinProduction/discord-music-bot/core"
"log"
"os"
"os/exec"
"strings"
"time"

"github.com/TwinProduction/discord-music-bot/core"
)

type Service struct {
Expand Down

0 comments on commit a458418

Please sign in to comment.