Skip to content

Commit

Permalink
fix: !online offline
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Sep 3, 2023
1 parent fbe6a52 commit 13b443e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dota/src/dota/GSIServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function handleSocketAuth(socket: Socket, next: (err?: Error) => void) {

getDBUser({ token })
.then((client) => {
if (client?.token && client.stream_online) {
if (client?.token) {
next()
} else {
socket.disconnect()
Expand Down
1 change: 0 additions & 1 deletion packages/dota/src/twitch/commands/online.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ commandHandler.registerCommand('online', {
})
.eq('id', message.channel.client.token)

chatClient.say(channel, t('refresh', { lng: message.channel.client.locale }))
server.io.to(client.token).emit('refresh-settings')

chatClient.say(
Expand Down

0 comments on commit 13b443e

Please sign in to comment.