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,5 +1,5 @@
import { embedColor, devMessage } from "config/options"
import guildapp from "schemas/guildAppSchema"
import guildapp from "schemas/guildAppTag"
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
import { IButton } from "interfaces"
@@ -14,7 +14,7 @@ export = {
const message = interaction.message
const embed = message.embeds[0]
const applicantId = embed.footer!.text.split(" ")[1]
const guildappdata = await guildapp.findOne({ userID: applicantId })
const guildappdata = await guildapp.findOne({ where: { userID: applicantId } })
const uuid = guildappdata!.uuid
const player = await getPlayer(uuid)