Replaced clang format with prettuier (sadly)
This commit is contained in:
@@ -9,7 +9,7 @@ const event: Event = {
|
||||
|
||||
execute(client: Client) {
|
||||
console.log("Logged in as " + client.user!.tag + "!")
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
export = event
|
||||
export = event
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user