mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: removed ready message
This commit is contained in:
1 parent
11365a6cd9
commit
cd48b65ed6
5 files changed
+10
-25
No files matched your search
@@ -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.
@@ -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`,
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user