File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11import { type Client } from 'discord.js' ;
2+ import config from '../../config.json' with { type : 'json' } ;
23
34export const name = 'ready' ;
45export const once = true ;
@@ -7,6 +8,13 @@ export function execute(client: Client<true>) {
78 console . log ( `[LOG : ${ new Date ( ) . toLocaleDateString ( ) } ] Bot connecté en tant que ${ client . user ?. tag } ` ) ;
89 console . log ( `[LOG : ${ new Date ( ) . toLocaleDateString ( ) } ] Prêt à servir ${ client . guilds . cache . size } serveur(s)` ) ;
910
10- // Définir le statut du bot
11- client . user . setActivity ( 'la modération' , { type : 3 } ) ; // Type 3 = Watching
11+ // Définir le statut du bot avec la version depuis config.json
12+ // Types d'activité Discord :
13+ // 0 = Playing (Joue à)
14+ // 1 = Streaming (En stream)
15+ // 2 = Listening (Écoute)
16+ // 3 = Watching (Regarde)
17+ // 4 = Custom (Statut personnalisé)
18+ // 5 = Competing (En compétition dans)
19+ client . user . setActivity ( config . botversion , { type : 3 } ) ; // Type 3 = Watching
1220}
You can’t perform that action at this time.
0 commit comments