Skip to content

Commit

Permalink
fix: Whispers should work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
KararTY committed Jul 30, 2021
1 parent 472b129 commit 605d689
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"homepage": "https://github.com/KararTY/BeFriendlier-Bot#readme",
"devDependencies": {
"@types/node": "^16.4.3",
"@types/node": "^16.4.7",
"@types/ws": "^7.4.7",
"@typescript-eslint/eslint-plugin": "^4.28.5",
"@typescript-eslint/parser": "^4.28.5",
Expand All @@ -44,10 +44,10 @@
"@adonisjs/env": "^1.0.18",
"@adonisjs/logger": "^2.1.0",
"@adonisjs/validator": "^7.4.0",
"befriendlier-shared": "kararty/BeFriendlier-Shared#0598956",
"befriendlier-shared": "kararty/BeFriendlier-Shared#0fc51b5",
"dank-twitch-irc": "^4.3.0",
"got": "^11.8.2",
"p-queue": "^7.1.0",
"p-queue": "^6.6.2",
"ws": "^7.5.3"
},
"optionalDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/Handlers/WhisperHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class WhisperHandler extends DefaultHandler {
this.twitch.sendMessage(
channelTwitch,
userTwitch,
result.value,
`whispers disabled, ${result.value}`,
)
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/Twitch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class Client {
}

public async sendWhisper (user: NameAndId, message: string) {
return await this.ircClient.whisper(user.id, `${message}`)
return await this.ircClient.whisper(user.name, `${message}`)
}

public joinChannel ({ id, name }: NameAndId) {
Expand Down

0 comments on commit 605d689

Please sign in to comment.