Files
2025-02-08 17:07:13 +01:00

19 lines
422 B
JavaScript

const { mClient } = require("../..")
// Event triggered by SubscribersOnly mode
module.exports = {
name: 'Twitch/Subscribers',
once: false,
async execute(channel, enabled) {
let db = mClient.db('shoutouts')
let col = db.collection(channel)
// Drop Shoutout Collection to reset
try {
await col.drop()
} catch (error) {
return
}
}
}