Replaced clang format with prettuier (sadly)

This commit is contained in:
2023-12-28 16:47:52 +01:00
parent ca5bbd0b81
commit 117140fe9d
99 changed files with 13519 additions and 12011 deletions

View File

@@ -9,7 +9,7 @@ const event: Event = {
execute(client: Client) {
console.log("Logged in as " + client.user!.tag + "!")
}
},
}
export = event
export = event

View File

@@ -16,7 +16,9 @@ const event: Event = {
const embedColor = Number(color.replace("#", "0x"))
if (!channel) {
console.log("[ERROR] Could not find channel used for online message.")
console.log(
"[ERROR] Could not find channel used for online message.",
)
return
}
@@ -26,12 +28,14 @@ const event: Event = {
}
channel.send({
embeds: [{
description: "Bot is online!",
color: embedColor
}]
embeds: [
{
description: "Bot is online!",
color: embedColor,
},
],
})
}
},
}
export = event
export = event

View File

@@ -9,7 +9,6 @@ const event: Event = {
event: "ready",
execute(client: Client) {
// Playing 0
// Streaming 1
// Listening 2
@@ -19,20 +18,16 @@ const event: Event = {
const user = client.user!
user.setActivity(
{ name: statuses[0].name, type: statuses[0].type }
)
user.setActivity({ name: statuses[0].name, type: statuses[0].type })
let i = 1
setInterval(() =>
user.setActivity(
statuses[i++ % statuses.length]
),
1000 * 60 * 10
setInterval(
() => user.setActivity(statuses[i++ % statuses.length]),
1000 * 60 * 10,
)
user.setStatus("dnd")
}
},
}
export = event
export = event