Moved from mongodb to sql and sqlite

This commit is contained in:
2024-04-09 21:59:52 +02:00
parent 27b01d0c36
commit ef5c531964
42 changed files with 1645 additions and 198 deletions

View File

@@ -1,13 +1,13 @@
import { devMessage, embedColor } from "config/options"
import { PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import verifySchema from "schemas/verifySchema"
import verify from "schemas/verifyTag"
import { getHeadURL, getIGN, getUUID } from "utils/Hypixel"
export = {
name: "find",
description: "Find a person by the ign",
dev: false,
dev: true,
public: false,
data: new SlashCommandBuilder()
@@ -37,7 +37,7 @@ export = {
return
}
const verifyData = await verifySchema.findOne({ uuid: uuid })
const verifyData = await verify.findOne({ where: { uuid: uuid } })
if (!verifyData) {
await interaction.editReply({
embeds: [{