Raw Dogged that custom shoutout event and made HelixRequest easier to handle universally

This commit is contained in:
DeSqBlocki
2025-02-08 13:42:18 +01:00
parent e499308e64
commit 0c6deae544
8 changed files with 165 additions and 62 deletions
+12 -2
View File
@@ -2,7 +2,17 @@
module.exports = {
name: 'Twitch/Subscribers',
once: false,
execute(stream) {
console.log(`Connected to ${stream.address}`)
async execute(channel, enabled) {
const { mClient } = require('../..')
let db = mClient.db('shoutouts')
let col = db.collection(channel)
// Drop Shoutout Collection to reset
try {
await col.drop()
} catch (error) {
return
}
}
}