mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 19:49:50 +01:00
feat: online message
This commit is contained in:
1 parent
8ff34f0bbb
commit
a3b2a34d7f
1 file changed
+16
-1
+16
-1
@@ -1,7 +1,22 @@
|
|||||||
import { Client } from 'discord.js';
|
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 '../utilities/isDev.js';
|
import isDev from '../utilities/isDev.js';
|
||||||
|
|
||||||
export default function ready(client: Client<true>) {
|
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(
|
console.log(
|
||||||
`Logged in as ${client.user.tag} in ${
|
`Logged in as ${client.user.tag} in ${
|
||||||
isDev() ? 'development' : 'production'
|
isDev() ? 'development' : 'production'
|
||||||
|
|||||||
Reference in new issue
Block a user