mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: simpler logging
This commit is contained in:
1 parent
43f634e198
commit
9495ae2336
7 files changed
+7
-22
No files matched your search
@@ -136,12 +136,10 @@ commands.then((awaitedCommands) => {
|
||||
});
|
||||
|
||||
try {
|
||||
console.log(`Refreshing ${publicCommands.length} public command(s).`);
|
||||
rest.put(Routes.applicationCommands(getClientId()), {
|
||||
body: publicCommands,
|
||||
});
|
||||
|
||||
console.log(`Refreshing ${guildCommands.length} guild command(s).`);
|
||||
(isDev()
|
||||
? [discord.test_guild_id]
|
||||
: [discord.tres_guild_id, discord.sklld_guild_id]
|
||||
|
||||
+1
-6
@@ -1,10 +1,5 @@
|
||||
import { Client } from 'discord.js';
|
||||
import isDev from '../core/blitzkrieg/isDev';
|
||||
|
||||
export default function ready(client: Client<true>) {
|
||||
console.log(
|
||||
`Logged in as ${client.user.tag} in ${
|
||||
isDev() ? 'development' : 'production'
|
||||
} mode across ${client.guilds.cache.size} servers`,
|
||||
);
|
||||
console.log(`🟢 Bot ${client.shard?.ids[0]} launched`);
|
||||
}
|
||||
Reference in new issue
Block a user