Updated style of export
This commit is contained in:
@@ -2,7 +2,7 @@ import { ChannelType, GuildMember, userMention } from "discord.js"
|
|||||||
import { color, botLogChannel } from "../../../../config/options.json"
|
import { color, botLogChannel } from "../../../../config/options.json"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "../../../interfaces"
|
||||||
|
|
||||||
const event: Event = {
|
export = {
|
||||||
name: "logNewJoins",
|
name: "logNewJoins",
|
||||||
description: "Logs new joins",
|
description: "Logs new joins",
|
||||||
type: "event",
|
type: "event",
|
||||||
@@ -44,6 +44,4 @@ const event: Event = {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
} as Event
|
||||||
|
|
||||||
export = event
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
|
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "../../../interfaces"
|
||||||
|
|
||||||
const event: Event = {
|
export = {
|
||||||
name: "logBtnsCmds",
|
name: "logBtnsCmds",
|
||||||
description: "Logs all button and command interactions",
|
description: "Logs all button and command interactions",
|
||||||
type: "event",
|
type: "event",
|
||||||
@@ -37,6 +37,4 @@ const event: Event = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
} as Event
|
||||||
|
|
||||||
export = event
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Event } from "../../../interfaces"
|
import { Event } from "../../../interfaces"
|
||||||
import { Message } from "discord.js"
|
import { Message } from "discord.js"
|
||||||
|
|
||||||
const event: Event = {
|
export = {
|
||||||
name: "ur mom",
|
name: "ur mom",
|
||||||
description: "ur moms someone",
|
description: "ur moms someone",
|
||||||
type: "event",
|
type: "event",
|
||||||
@@ -15,6 +15,4 @@ const event: Event = {
|
|||||||
message.react("Woot:734345936347725885")
|
message.react("Woot:734345936347725885")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
} as Event
|
||||||
|
|
||||||
export = event
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Event } from "../../../interfaces"
|
import { Event } from "../../../interfaces"
|
||||||
import { ExtendedClient as Client } from "../../../utils/Client"
|
import { ExtendedClient as Client } from "../../../utils/Client"
|
||||||
|
|
||||||
const event: Event = {
|
export = {
|
||||||
name: "conolelog",
|
name: "conolelog",
|
||||||
description: "console log",
|
description: "console log",
|
||||||
type: "event",
|
type: "event",
|
||||||
@@ -10,6 +10,4 @@ const event: Event = {
|
|||||||
execute(client: Client) {
|
execute(client: Client) {
|
||||||
console.log("Logged in as " + client.user!.tag + "!")
|
console.log("Logged in as " + client.user!.tag + "!")
|
||||||
},
|
},
|
||||||
}
|
} as Event
|
||||||
|
|
||||||
export = event
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Event } from "../../../interfaces"
|
|||||||
import { ExtendedClient as Client } from "../../../utils/Client"
|
import { ExtendedClient as Client } from "../../../utils/Client"
|
||||||
import { ChannelType } from "discord.js"
|
import { ChannelType } from "discord.js"
|
||||||
|
|
||||||
const event: Event = {
|
export = {
|
||||||
name: "sendonlinemessage",
|
name: "sendonlinemessage",
|
||||||
description: "send an online message",
|
description: "send an online message",
|
||||||
type: "event",
|
type: "event",
|
||||||
@@ -36,6 +36,4 @@ const event: Event = {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
} as Event
|
||||||
|
|
||||||
export = event
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import statuses = require("../../../../config/statuses.json")
|
|||||||
import { Event } from "../../../interfaces"
|
import { Event } from "../../../interfaces"
|
||||||
import { ExtendedClient as Client } from "../../../utils/Client"
|
import { ExtendedClient as Client } from "../../../utils/Client"
|
||||||
|
|
||||||
const event: Event = {
|
export = {
|
||||||
name: "status",
|
name: "status",
|
||||||
description: "Sets the status of the bot",
|
description: "Sets the status of the bot",
|
||||||
type: "event",
|
type: "event",
|
||||||
@@ -28,6 +28,4 @@ const event: Event = {
|
|||||||
|
|
||||||
user.setStatus("dnd")
|
user.setStatus("dnd")
|
||||||
},
|
},
|
||||||
}
|
} as Event
|
||||||
|
|
||||||
export = event
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
import { botLogChannel, color } from "../../../../config/options.json"
|
import { botLogChannel, color } from "../../../../config/options.json"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "../../../interfaces"
|
||||||
|
|
||||||
const event: Event = {
|
export = {
|
||||||
name: "vcJoinLeave",
|
name: "vcJoinLeave",
|
||||||
description: "Logs when a user joins or leaves a voice channel.",
|
description: "Logs when a user joins or leaves a voice channel.",
|
||||||
type: "event",
|
type: "event",
|
||||||
@@ -94,6 +94,4 @@ const event: Event = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
} as Event
|
||||||
|
|
||||||
export = event
|
|
||||||
|
|||||||
Reference in New Issue
Block a user