feat: removed ready message

This commit is contained in:
TresAbhi committed 2023-05-19 23:30:50 +00:00
1 parent 11365a6cd9
commit cd48b65ed6
5 files changed
+10 -25

No files matched your search

-25
View File
@@ -1,25 +0,0 @@
import { Client, EmbedBuilder, TextChannel } from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
import { POSITIVE_COLOR } from '../constants/colors.js';
import isDev from '../core/process/isDev.js';
export default function ready(client: Client<true>) {
(
client.guilds.cache
.get(discord.guild_id)
?.channels.cache.get(discord.log_channel) as TextChannel
).send({
embeds: [
new EmbedBuilder()
.setTitle(`${client.user.username} came online`)
.setDescription('All systems operating properly')
.setColor(POSITIVE_COLOR),
],
});
console.log(
`Logged in as ${client.user.tag} in ${
isDev() ? 'development' : 'production'
} mode`,
);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
+10
View File
@@ -0,0 +1,10 @@
import { Client } from 'discord.js';
import isDev from '../core/process/isDev.js';
export default function ready(client: Client<true>) {
console.log(
`Logged in as ${client.user.tag} in ${
isDev() ? 'development' : 'production'
} mode`,
);
}