Open Ticket v4 Beta

This commit is contained in:
DJj123dj
2024-08-21 13:24:56 +02:00
parent 9326d0fae8
commit 0c2aca7039
154 changed files with 33881 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import {openticket, api, utilities} from "../../index"
export const loadAllBlacklistedUsers = async () => {
const userDatabase = openticket.databases.get("openticket:users")
if (!userDatabase) return
const users = userDatabase.getCategory("openticket:blacklist") ?? []
users.forEach((user) => {
if (typeof user.value != "string") return
openticket.blacklist.add(new api.ODBlacklist(user.key,user.value))
})
}