File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ const client = new Discord.Client(config.clientOptions);
1111const interactions = new Discord . Collection ( ) ;
1212const events = new Discord . Collection ( ) ;
1313
14+ let isReady = false ;
15+
1416globalThis . Underline = {
1517 ...config . globalObjects ,
1618 config,
@@ -247,6 +249,8 @@ console.info("[BİLGİ] Basit Altyapı v1.8.3 - by Kıraç Armağan Önal");
247249 ( [ eventName , events ] ) => {
248250 console . info ( `[BİLGİ] Event "${ eventName } " için ${ events . length } dinleyici yüklendi!` ) ;
249251 client . on ( eventName , ( ...args ) => {
252+ // Random olayların kendi kendine bot hazır olmadan ateşlenmesini engellemek için.
253+ if ( eventName != "ready" && ! isReady ) return ;
250254 setTimeout ( ( ) => {
251255 chillout . forEach ( events , ( event ) => {
252256 if ( ! event . disabled ) {
@@ -271,6 +275,7 @@ console.info("[BİLGİ] Basit Altyapı v1.8.3 - by Kıraç Armağan Önal");
271275 console . info ( "[BİLGİ] Discord'a bağlanıldı!" , client . user . tag ) ;
272276
273277 config . onReady ( client ) ;
278+ isReady = true ;
274279} ) ( ) ;
275280
276281
You can’t perform that action at this time.
0 commit comments