Verify channel ID.

This commit is contained in:
Ismaël Moret 2024-01-31 10:28:13 +00:00
parent eaede33b11
commit 7bc179a20f
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ async function main() {
})
}
const chNSFW = stream.channel && !channels.first((channel: Channel) => channel.categories === "XXX")
const chNSFW = stream.channel && !channels.first((channel: Channel) => (channel.id === stream.channel) && (channel.categories === "XXX"))
if(chNSFW) {
log.add({
type: 'error',