Added absolute paths
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Command } from "../interfaces"
|
||||
import { Command } from "@interfaces"
|
||||
import color from "./functions/colors"
|
||||
import env from "./Env"
|
||||
import {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
|
||||
import color from "./functions/colors"
|
||||
import { Command } from "../interfaces"
|
||||
import { ContextMenu } from "../interfaces"
|
||||
import { Button } from "../interfaces"
|
||||
import { Modal } from "../interfaces"
|
||||
import { Autocomplete } from "../interfaces"
|
||||
import { Command } from "@interfaces"
|
||||
import { ContextMenu } from "@interfaces"
|
||||
import { Button } from "@interfaces"
|
||||
import { Modal } from "@interfaces"
|
||||
import { Autocomplete } from "@interfaces"
|
||||
import env from "./Env"
|
||||
import autoDeployCommands from "./Autodeploy"
|
||||
import { loadAllEvents } from "./Events"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Env } from "../interfaces"
|
||||
import { Env } from "@interfaces"
|
||||
import "dotenv/config"
|
||||
|
||||
const env: Env = {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { ExtendedClient as Client } from "./Client"
|
||||
import { loadButtonEvents } from "./eventHandlers"
|
||||
import { loadSlashCommandsEvents } from "./eventHandlers"
|
||||
import { loadContextMenuEvents } from "./eventHandlers"
|
||||
import { loadModalEvents } from "./eventHandlers"
|
||||
import { loadEvents } from "./eventHandlers"
|
||||
import { loadAutocompleteEvents } from "./eventHandlers"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { loadButtonEvents } from "@utils/eventHandlers"
|
||||
import { loadSlashCommandsEvents } from "@utils/eventHandlers"
|
||||
import { loadContextMenuEvents } from "@utils/eventHandlers"
|
||||
import { loadModalEvents } from "@utils/eventHandlers"
|
||||
import { loadEvents } from "@utils/eventHandlers"
|
||||
import { loadAutocompleteEvents } from "@utils/eventHandlers"
|
||||
type FileType = "js" | "ts"
|
||||
|
||||
export function loadAllEvents(client: Client, ft: FileType) {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
export { skywarsLevel } from "./functions/skywars"
|
||||
export { bedwarsLevel } from "./functions/bedwars"
|
||||
export { hypixelLevel } from "./functions/hypixel"
|
||||
export { formatUuid } from "./functions/uuid"
|
||||
export { guildLevel, scaledGEXP } from "./functions/guild"
|
||||
export { skywarsLevel } from "@utils/functions/skywars"
|
||||
export { bedwarsLevel } from "@utils/functions/bedwars"
|
||||
export { hypixelLevel } from "@utils/functions/hypixel"
|
||||
export { formatUuid } from "@utils/functions/uuid"
|
||||
export { guildLevel, scaledGEXP } from "@utils/functions/guild"
|
||||
export {
|
||||
getUUID,
|
||||
getIGN,
|
||||
getPlayer,
|
||||
getGuild,
|
||||
getHeadURL,
|
||||
} from "./functions/account"
|
||||
} from "@utils/functions/account"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { ExtendedClient as Client } from "./Client"
|
||||
import color from "./functions/colors"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import color from "@utils/functions/colors"
|
||||
import { Redis } from "ioredis"
|
||||
import env from "./Env"
|
||||
import env from "@utils/Env"
|
||||
import { connect } from "mongoose"
|
||||
import init from "./Init"
|
||||
import { loadCronEvents } from "./eventHandlers"
|
||||
import init from "@utils/Init"
|
||||
import { loadCronEvents } from "@utils/eventHandlers"
|
||||
const client = new Client()
|
||||
const redis = new Redis(env.prod.redisURI!)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import env from "./Env"
|
||||
import env from "@utils/Env"
|
||||
|
||||
const prodValues = env.prod
|
||||
const devValues = env.dev
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "../Client"
|
||||
import { color } from "../../../config/options.json"
|
||||
import { Autocomplete } from "../../interfaces"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { color } from "@config/options.json"
|
||||
import { Autocomplete } from "@interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import colorLog from "../functions/colors"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "../functions/logtochannel"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "../Client"
|
||||
import colorLog from "../functions/colors"
|
||||
import { color } from "../../../config/options.json"
|
||||
import { Button } from "../../interfaces"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { color } from "@config/options.json"
|
||||
import { Button } from "@interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "../functions/logtochannel"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "../Client"
|
||||
import colorLog from "../functions/colors"
|
||||
import { color } from "../../../config/options.json"
|
||||
import { Command } from "../../interfaces"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { color } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "../functions/logtochannel"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "../Client"
|
||||
import colorLog from "../functions/colors"
|
||||
import { ContextMenu } from "../../interfaces"
|
||||
import { color } from "../../../config/options.json"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { ContextMenu } from "@interfaces"
|
||||
import { color } from "@config/options.json"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "../functions/logtochannel"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CronJob } from "cron"
|
||||
import path from "path"
|
||||
import fs from "fs"
|
||||
import { Cron } from "../../interfaces"
|
||||
import { Cron } from "@interfaces"
|
||||
|
||||
export default function loadCronEvents() {
|
||||
const cronPath = path.join(__dirname, "..", "..", "events", "cron")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ExtendedClient as Client } from "../Client"
|
||||
import { Event } from "../../interfaces"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { Event } from "@interfaces"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import loadAutocompleteEvents from "./autocomplete"
|
||||
import loadButtonEvents from "./button"
|
||||
import loadSlashCommandsEvents from "./command"
|
||||
import loadContextMenuEvents from "./contextmenu"
|
||||
import loadCronEvents from "./cron"
|
||||
import loadEvents from "./events"
|
||||
import loadModalEvents from "./modal"
|
||||
import loadAutocompleteEvents from "@utils/eventHandlers/autocomplete"
|
||||
import loadButtonEvents from "@utils/eventHandlers/button"
|
||||
import loadSlashCommandsEvents from "@utils/eventHandlers/command"
|
||||
import loadContextMenuEvents from "@utils/eventHandlers/contextmenu"
|
||||
import loadCronEvents from "@utils/eventHandlers/cron"
|
||||
import loadEvents from "@utils/eventHandlers/events"
|
||||
import loadModalEvents from "@utils/eventHandlers/modal"
|
||||
|
||||
export {
|
||||
loadAutocompleteEvents,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "../Client"
|
||||
import colorLog from "../functions/colors"
|
||||
import { color } from "../../../config/options.json"
|
||||
import { Modal } from "../../interfaces"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { color } from "@config/options.json"
|
||||
import { Modal } from "@interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "../functions/logtochannel"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import fetch from "axios"
|
||||
import env from "../Env"
|
||||
import { Player, PlayerData } from "../../interfaces"
|
||||
import { Guild, GuildData } from "../../interfaces"
|
||||
import env from "@utils/Env"
|
||||
import { Player, PlayerData } from "@interfaces"
|
||||
import { Guild, GuildData } from "@interfaces"
|
||||
const apikey = env.prod.hypixelapikey
|
||||
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
|
||||
const mojanguuid = "https://sessionserver.mojang.com/session/minecraft/profile/"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { guildid, onlineLogChannel, botLogChannel, guildLogChannel, errorLogChannel, moderationLogChannel, devLogChannel } from "../../../config/options.json"
|
||||
import { guildid, onlineLogChannel, botLogChannel, guildLogChannel, errorLogChannel, moderationLogChannel, devLogChannel } from "@config/options.json"
|
||||
import { Guild, MessageCreateOptions, TextChannel } from "discord.js"
|
||||
import Illegitimate from "../Illegitimate"
|
||||
import Illegitimate from "@utils/Illegitimate"
|
||||
|
||||
const channels = {
|
||||
online: onlineLogChannel,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
guildStaff,
|
||||
guildRole,
|
||||
defaultMember
|
||||
} from "../../../config/roles.json"
|
||||
} from "@config/roles.json"
|
||||
const roles = [
|
||||
gm,
|
||||
manager,
|
||||
|
||||
Reference in New Issue
Block a user