Updated style of export

This commit is contained in:
2023-12-28 19:13:43 +01:00
parent 117140fe9d
commit 83dc8f91d1
7 changed files with 14 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ import { ChannelType, GuildMember, userMention } from "discord.js"
import { color, botLogChannel } from "../../../../config/options.json"
import { Event } from "../../../interfaces"
const event: Event = {
export = {
name: "logNewJoins",
description: "Logs new joins",
type: "event",
@@ -44,6 +44,4 @@ const event: Event = {
],
})
},
}
export = event
} as Event

View File

@@ -1,7 +1,7 @@
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
import { Event } from "../../../interfaces"
const event: Event = {
export = {
name: "logBtnsCmds",
description: "Logs all button and command interactions",
type: "event",
@@ -37,6 +37,4 @@ const event: Event = {
return
}
},
}
export = event
} as Event

View File

@@ -1,7 +1,7 @@
import { Event } from "../../../interfaces"
import { Message } from "discord.js"
const event: Event = {
export = {
name: "ur mom",
description: "ur moms someone",
type: "event",
@@ -15,6 +15,4 @@ const event: Event = {
message.react("Woot:734345936347725885")
}
},
}
export = event
} as Event

View File

@@ -1,7 +1,7 @@
import { Event } from "../../../interfaces"
import { ExtendedClient as Client } from "../../../utils/Client"
const event: Event = {
export = {
name: "conolelog",
description: "console log",
type: "event",
@@ -10,6 +10,4 @@ const event: Event = {
execute(client: Client) {
console.log("Logged in as " + client.user!.tag + "!")
},
}
export = event
} as Event

View File

@@ -3,7 +3,7 @@ import { Event } from "../../../interfaces"
import { ExtendedClient as Client } from "../../../utils/Client"
import { ChannelType } from "discord.js"
const event: Event = {
export = {
name: "sendonlinemessage",
description: "send an online message",
type: "event",
@@ -36,6 +36,4 @@ const event: Event = {
],
})
},
}
export = event
} as Event

View File

@@ -2,7 +2,7 @@ import statuses = require("../../../../config/statuses.json")
import { Event } from "../../../interfaces"
import { ExtendedClient as Client } from "../../../utils/Client"
const event: Event = {
export = {
name: "status",
description: "Sets the status of the bot",
type: "event",
@@ -28,6 +28,4 @@ const event: Event = {
user.setStatus("dnd")
},
}
export = event
} as Event

View File

@@ -7,7 +7,7 @@ import {
import { botLogChannel, color } from "../../../../config/options.json"
import { Event } from "../../../interfaces"
const event: Event = {
export = {
name: "vcJoinLeave",
description: "Logs when a user joins or leaves a voice channel.",
type: "event",
@@ -94,6 +94,4 @@ const event: Event = {
})
}
},
}
export = event
} as Event