Updated to new color script

This commit is contained in:
2024-01-12 20:52:05 +01:00
parent a6254a2493
commit 45762c19d6
7 changed files with 39 additions and 28 deletions

View File

@@ -1,4 +1,5 @@
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
import color from "../../../utils/functions/colors"
import { Event } from "../../../interfaces"
export = {
@@ -10,29 +11,32 @@ export = {
execute(interaction: ChatInputCommandInteraction | ButtonInteraction) {
if (interaction.isCommand()) {
try {
console.log(
console.log(color(
interaction.user.username +
" ran " +
interaction.commandName +
" " +
interaction.options.getSubcommand(),
"pink")
)
} catch {
console.log(
console.log(color(
interaction.user.username +
" ran " +
interaction.commandName,
"pink")
)
}
}
if (interaction.isButton()) {
console.log(
console.log(color(
interaction.user.username +
"#" +
interaction.user.discriminator +
" clicked " +
interaction.customId,
"pink")
)
return
}

View File

@@ -1,5 +1,6 @@
import { Event } from "../../../interfaces"
import { ExtendedClient as Client } from "../../../utils/Client"
import color from "../../../utils/functions/colors"
export = {
name: "conolelog",
@@ -8,6 +9,6 @@ export = {
event: "ready",
execute(client: Client) {
console.log("Logged in as " + client.user!.tag + "!")
console.log(color("Logged in as " + client.user!.tag + "!", "green"))
},
} as Event