Moved to esm

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-08-23 17:59:00 +02:00
parent 31b88396ea
commit 3f7f23d4b3
123 changed files with 575 additions and 510 deletions

View File

@@ -1,8 +1,8 @@
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options"
import color from "utils/functions/colors"
import { getGuild, getIGN } from "utils/Hypixel"
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options.js"
import color from "utils/functions/colors.js"
import { getGuild, getIGN } from "utils/Hypixel.js"
import { ICron, IGuildData } from "interfaces"
import { client } from "utils/Illegitimate"
import { client } from "utils/Illegitimate.js"
import { TextChannel } from "discord.js"
async function guildWeekly() {
@@ -86,7 +86,7 @@ async function guildWeekly() {
})
}
export = {
export default {
time: {
seconds: 0,
minutes: 0,

View File

@@ -1,9 +1,9 @@
import { GuildMember, userMention } from "discord.js"
import { embedColor } from "config/options"
import { embedColor } from "config/options.js"
import { IEvent } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
import logToChannel from "utils/functions/logtochannel.js"
export = {
export default {
name: "logNewJoins",
description: "Logs new joins",
event: "guildMemberAdd",

View File

@@ -1,8 +1,8 @@
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
import color from "utils/functions/colors"
import color from "utils/functions/colors.js"
import { IEvent } from "interfaces"
export = {
export default {
name: "logBtnsCmds",
description: "Logs all button and command interactions",
event: "interactionCreate",

View File

@@ -1,8 +1,8 @@
import { Message } from "discord.js"
import { IEvent } from "interfaces"
import env from "utils/Env"
import env from "utils/Env.js"
export = {
export default {
name: "eval",
description: "Evaluate a JavaScript expression",
event: "messageCreate",

View File

@@ -1,7 +1,7 @@
import { IEvent } from "interfaces"
import { Message } from "discord.js"
export = {
export default {
name: "ur mom",
description: "ur moms someone",
event: "messageCreate",

View File

@@ -1,8 +1,8 @@
import { IEvent } from "interfaces"
import { ExtendedClient as Client } from "utils/Client"
import color from "utils/functions/colors"
import { ExtendedClient as Client } from "utils/Client.js"
import color from "utils/functions/colors.js"
export = {
export default {
name: "conolelog",
description: "console log",
event: "ready",

View File

@@ -1,8 +1,8 @@
import logToChannel from "utils/functions/logtochannel"
import logToChannel from "utils/functions/logtochannel.js"
import { IEvent } from "interfaces"
import { embedColor } from "config/options"
import { embedColor } from "config/options.js"
export = {
export default {
name: "sendonlinemessage",
description: "send an online message",
event: "ready",

View File

@@ -1,10 +1,10 @@
import { guildid } from "config/options"
import statuses from "config/statuses"
import { guildid } from "config/options.js"
import statuses from "config/statuses.js"
import { Guild } from "discord.js"
import { IEvent } from "interfaces"
import { ExtendedClient as Client } from "utils/Client"
import { ExtendedClient as Client } from "utils/Client.js"
export = {
export default {
name: "status",
description: "Sets the status of the bot",
event: "ready",

View File

@@ -1,9 +1,9 @@
import { userMention, channelMention, VoiceState } from "discord.js"
import { embedColor } from "config/options"
import { embedColor } from "config/options.js"
import { IEvent } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
import logToChannel from "utils/functions/logtochannel.js"
export = {
export default {
name: "vcJoinLeave",
description: "Logs when a user joins or leaves a voice channel.",
event: "voiceStateUpdate",