Verify channel ID.

This commit is contained in:
Ismaël Moret
2024-01-31 10:28:13 +00:00
parent fe79857fbe
commit 798d2e0a01

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) { if(chNSFW) {
log.add({ log.add({
type: 'error', type: 'error',