Skip to content

Commit

Permalink
feat: simple folders move
Browse files Browse the repository at this point in the history
  • Loading branch information
serafdev committed May 4, 2024
1 parent 0dde998 commit 70ea38e
Show file tree
Hide file tree
Showing 28 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
iqamav2 "github.com/ccil-kbw/robot/iqama/v2"
iqamav2 "github.com/ccil-kbw/robot/pkg/iqama/v2"
"os"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/darsrec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/ccil-kbw/robot/rec"
rec2 "github.com/ccil-kbw/robot/pkg/rec"
"os"
)

Expand All @@ -23,8 +23,8 @@ func main() {
os.Exit(1)
}
}
data := rec.NewRecordConfigDataS()
data := rec2.NewRecordConfigDataS()

rec.StartRecServer(host, password, data)
rec2.StartRecServer(host, password, data)

}
2 changes: 1 addition & 1 deletion cmd/discord_bot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"github.com/caarlos0/env/v11"
"github.com/ccil-kbw/robot/discord"
"github.com/ccil-kbw/robot/pkg/discord"
"github.com/joho/godotenv"
"go.uber.org/zap"
"log"
Expand Down
2 changes: 1 addition & 1 deletion cmd/iqama_proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"net/http"

v1 "github.com/ccil-kbw/robot/iqama/v1"
v1 "github.com/ccil-kbw/robot/pkg/iqama/v1"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions cmd/monolith/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package main

import (
"fmt"
"github.com/ccil-kbw/robot/pkg/discord"
rec2 "github.com/ccil-kbw/robot/pkg/rec"

"github.com/ccil-kbw/robot/discord"
"go.uber.org/zap"
"os"
"os/signal"
"strings"
"time"

"github.com/ccil-kbw/robot/rec"
"github.com/joho/godotenv"
)

Expand Down Expand Up @@ -48,7 +48,7 @@ func main() {

signal.Notify(stop, os.Interrupt)

var obs *rec.Recorder
var obs *rec2.Recorder

if config.Features.DiscordBot {
go bot()
Expand All @@ -57,7 +57,7 @@ func main() {
if config.Features.Record {
host := os.Getenv("MDROID_OBS_WEBSOCKET_HOST")
password := os.Getenv("MDROID_OBS_WEBSOCKET_PASSWORD")
data := rec.NewRecordConfigDataS()
data := rec2.NewRecordConfigDataS()

obsClient := startServerWithRetry(host, password, data)

Expand Down Expand Up @@ -120,9 +120,9 @@ func bot() {
discordBot.StartBot()
}

func startServerWithRetry(host string, password string, data *rec.RecordConfigDataS) *rec.Recorder {
func startServerWithRetry(host string, password string, data *rec2.RecordConfigDataS) *rec2.Recorder {
for {
obs, err := rec.StartRecServer(host, password, data)
obs, err := rec2.StartRecServer(host, password, data)
if err != nil {
fmt.Printf("could not reach or authenticate to OBS, retrying in 1 minutes...\n")
time.Sleep(1 * time.Minute)
Expand Down
2 changes: 1 addition & 1 deletion discord/admin.go → pkg/discord/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package discord
import (
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/ccil-kbw/robot/rec"
"github.com/ccil-kbw/robot/pkg/rec"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion discord/discord.go → pkg/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package discord

import (
"github.com/ccil-kbw/robot/rec"
"github.com/ccil-kbw/robot/pkg/rec"
"log"
"os"
"os/signal"
Expand Down
2 changes: 1 addition & 1 deletion discord/mappers.go → pkg/discord/mappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package discord

import (
"github.com/bwmarrin/discordgo"
"github.com/ccil-kbw/robot/iqama/v2"
"github.com/ccil-kbw/robot/pkg/iqama/v2"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion discord/public.go → pkg/discord/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package discord

import (
"github.com/bwmarrin/discordgo"
iqamav2 "github.com/ccil-kbw/robot/iqama/v2"
iqamav2 "github.com/ccil-kbw/robot/pkg/iqama/v2"
"go.uber.org/zap"
"os"
"strings"
Expand Down
4 changes: 2 additions & 2 deletions iqama/iqama.go → pkg/iqama/iqama.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package iqama

import (
"fmt"
v1 "github.com/ccil-kbw/robot/iqama/v1"
"github.com/ccil-kbw/robot/rec"
v1 "github.com/ccil-kbw/robot/pkg/iqama/v1"
"github.com/ccil-kbw/robot/pkg/rec"
"sync"
"time"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions rec/rec_iqama.go → pkg/rec/rec_iqama.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package rec

import (
"fmt"
v1 "github.com/ccil-kbw/robot/iqama/v1"
v2 "github.com/ccil-kbw/robot/iqama/v2"
v1 "github.com/ccil-kbw/robot/pkg/iqama/v1"
v2 "github.com/ccil-kbw/robot/pkg/iqama/v2"
"sync"
"time"
)
Expand Down
File renamed without changes.

0 comments on commit 70ea38e

Please sign in to comment.