مرحبا

اود المساعدة في إضافة أقوم بالعمل عليها

وهي دخول وخروج البوت الوهمي الى الموقع تلقائي وجميع الأمور تعمل على ما يرام

ولكن هنالك مشكلة تحصل عندما يتم الضغط على دخول الوهمي اكثر من مرة

مما يسبب تعطيل وظيفة الإيقاف ولم يعد يتوقف

اريد المساعدة في عدم استخدام وظيف الدخول عندما يكون الإستخدام مفعل

اليكم الأكواد كاملة

 function BOOTMTFAN(){
    clearInterval(BOOTMT);
  };
} else if (alaizha.cmd == "SEND_ADMIN_ENTER_BOTS_MT2") {
             if (typeof alaizha.id != "string") {
              return;
            };
            BOOTMTFAN();
              winner({
              state: "me",
              topic: "",
              force: 1,
              msg: "تم ايقاف تنقل البوت  ",
              user: ""
            });
          }
          else if (alaizha.cmd == "SEND_ADMIN_ENTER_BOTS_MT") {
            if (typeof alaizha.id != "string") {
              return;
            };
            winner({
              state: "me",
              topic: "",
              force: 1,
              msg: "تم تفعيل تنقل البوت  ",
              user: ""
            });
            BOOTMT = setInterval(()=>{
            BotsRepo.getBy({
              state: "getByID",
              id: alaizha.id
            }).then(shinelle => {
              if (shinelle) {
                const dozie = OnlineUser.findIndex(abe => abe.id == shinelle.id);
                if (dozie == -1) {
                  regan({
                    islogin: "بوت",
                    username: shinelle.topic.split("<").join("&#x3C;"),
                    idreg: "#" + getRandomInt(300, 900),
                    topic: shinelle.topic.split("<").join("&#x3C;"),
                    id: shinelle.id,
                    pic: shinelle.pic,
                    msg: shinelle.msg?.split("<").join("&#x3C;"),
                  });
               };
            });
          },200000);
          }