Updated to new color script
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
color,
|
||||
devMessage,
|
||||
} from "../../../config/options.json"
|
||||
import colorLog from "../../utils/functions/colors"
|
||||
import { getGuild, getIGN } from "../../utils/Hypixel"
|
||||
import { Cron, GuildData } from "../../interfaces"
|
||||
import Illegitimate from "../../utils/Illegitimate"
|
||||
@@ -16,7 +17,7 @@ async function guildWeekly() {
|
||||
) as TextChannel
|
||||
|
||||
if (!channel) {
|
||||
console.log("Guild log channel not found")
|
||||
console.log(colorLog("Guild log channel not found", "red"))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user