Skip to content

Commit

Permalink
chore: remove chat overlays from old api
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Satont committed Jun 10, 2024
1 parent 68aa301 commit 19e72ac
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 573 deletions.
22 changes: 4 additions & 18 deletions apps/api-gql/internal/gql/resolvers/overlays.resolver.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

216 changes: 0 additions & 216 deletions apps/api/internal/impl_protected/overlays/chat.go

This file was deleted.

2 changes: 0 additions & 2 deletions apps/websockets/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/satont/twir/apps/websockets/internal/grpc_impl"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/alerts"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/be_right_back"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/chat"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/dudes"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/kappagen"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/nowplaying"
Expand Down Expand Up @@ -44,7 +43,6 @@ var App = fx.Module(
obs.NewObs,
youtube.NewYouTube,
alerts.NewAlerts,
chat.New,
kappagen.New,
overlays.New,
be_right_back.New,
Expand Down
6 changes: 0 additions & 6 deletions apps/websockets/internal/grpc_impl/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/redis/go-redis/v9"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/alerts"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/be_right_back"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/chat"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/dudes"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/kappagen"
"github.com/satont/twir/apps/websockets/internal/namespaces/overlays/nowplaying"
Expand Down Expand Up @@ -46,7 +45,6 @@ type GrpcImpl struct {
obsServer *obs.OBS
alertsServer *alerts.Alerts
overlaysRegistryServer *overlays.Registry
chatServer *chat.Chat
kappagenServer *kappagen.Kappagen
beRightBackServer *be_right_back.BeRightBack
dudesServer *dudes.Dudes
Expand All @@ -66,7 +64,6 @@ type GrpcOpts struct {
OBSServer *obs.OBS
AlertsServer *alerts.Alerts
OverlaysRegistryServer *overlays.Registry
ChatServer *chat.Chat
KappagenServer *kappagen.Kappagen
BeRightBackServer *be_right_back.BeRightBack
DudesServer *dudes.Dudes
Expand All @@ -83,7 +80,6 @@ func NewGrpcImplementation(opts GrpcOpts) (websockets.WebsocketServer, error) {
obsServer: opts.OBSServer,
alertsServer: opts.AlertsServer,
overlaysRegistryServer: opts.OverlaysRegistryServer,
chatServer: opts.ChatServer,
kappagenServer: opts.KappagenServer,
beRightBackServer: opts.BeRightBackServer,
dudesServer: opts.DudesServer,
Expand Down Expand Up @@ -136,8 +132,6 @@ func (c *GrpcImpl) RefreshOverlaySettings(
err = c.beRightBackServer.SendSettings(req.GetChannelId())
case websockets.RefreshOverlaySettingsName_DUDES:
err = c.dudesServer.SendSettings(req.GetChannelId(), req.GetOverlayId())
case websockets.RefreshOverlaySettingsName_CHAT:
err = c.chatServer.SendSettings(req.GetChannelId(), req.GetOverlayId())
case websockets.RefreshOverlaySettingsName_NOW_PLAYING:
err = c.nowplayingServer.SendSettings(req.GetChannelId(), req.GetOverlayId())
default:
Expand Down
Loading

0 comments on commit 19e72ac

Please sign in to comment.