ai-tube / src /lib /business /getChannelRating.ts
jbilcke's picture
working to improve the clap format
f42b4a1
raw
history blame contribute delete
No virus
398 Bytes
import { ChannelInfo } from "@/types/general"
const winners = new Set(`${process.env.WINNERS || ""}`.toLowerCase().split(",").map(x => x.trim()).filter(x => x))
// TODO: replace by a better algorithm
export function getChannelRating(channel: ChannelInfo) {
if (winners.has(channel.datasetUser.toLowerCase())) { return 0 }
// TODO check views statistics to determine clusters
return 5
}