deky2001z/tenjekubot9app_botPublic · Bot Template

AIBot is a Vietnamese-language control panel for managing Discord, Zalo, and Messenger 'tabs', letting users add, edit, delete, enable/disable, set delay and language, and store credentials such as tokens, cookies, and IMEI data via Bot/User properties. It renders status dashboards with online/offline counts and shows a menu of platform-specific spamming tools. One command ('Treo ngôn') contains a node-telegram-bot-api polling app that gathers a token, user ID, channel ID, and text-file lines to send automated messages. Overall, the bot appears designed for auto-spam and message-flooding operations across multiple chat platforms.

Spamspamtelegramdiscordzalomessengerauto-messaging
ProfileTelegram
15 commands0 envUpdated 10d agoCreated Jul 22, 2026
Back to folder

commands/『📂』Danh sách/💜 Discord.js

javascript · 963 lines

Raw
1/**#command2name: 💜 Discord3answer: 📄 Xem Tab Discord4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12//==================================13// DISCORD MANAGER14// PART 115//==================================16 17//----- Load Data -----18 19let raw = Bot.getProperty("discord_tabs");20 21let tabs;22 23try{24  tabs = JSON.parse(raw || "[]");25}catch(e){26  tabs = [];27}28 29let action = User.getProperty("discord_action") || "";30let select = User.getProperty("discord_select") || -1;31 32//----- Save Function -----33 34function saveTabs(){35  Bot.setProperty(36    "discord_tabs",37    JSON.stringify(tabs)38  );39}40 41//=========================42// OPEN MENU43//=========================44 45if(46message=="💜 Discord"||47message=="/discord"48){49 50let txt="💜 QUẢN LÝ DISCORD\n\n";51 52txt+="📦 Tổng Tab: "+tabs.length+"\n\n";53 54if(tabs.length==0){55 56txt+="❌ Chưa có Tab.";57 58}else{59 60for(let i=0;i<tabs.length;i++){61 62txt+=63(i+1)+". "+64tabs[i].name+65" "+66(tabs[i].status?"🟢":"🔴")+67"\n";68 69}70 71}72 73Api.sendMessage({74 75text:txt,76 77reply_markup:{78keyboard:[79 80["📋 Danh sách Tab"],81 82["➕ Thêm Tab"],83 84["✏️ Chỉnh sửa"],85 86["⏱ Delay"],87 88["🌐 Language"],89 90["🔑 Token"],91 92["⏸️ Dừng","▶️ Bật"],93 94["🗑️ Xóa Tab"],95 96["🔙 Quay lại"]97 98],99 100resize_keyboard:true101 102}103 104});105 106return;107 108}109 110//=========================111// LIST112//=========================113 114if(message=="📋 Danh sách Tab"){115 116let txt="📋 DANH SÁCH TAB\n\n";117 118if(tabs.length==0){119 120txt+="Không có dữ liệu.";121 122}else{123 124for(let i=0;i<tabs.length;i++){125 126txt+=127"ID: "+(i+1)+128"\nTên: "+tabs[i].name+129"\nTrạng thái: "+130(tabs[i].status?"🟢 Hoạt động":"🔴 Dừng")+131"\nDelay: "+132tabs[i].delay+133"s"+134"\nLanguage: "+135tabs[i].language+136"\n────────────\n";137 138}139 140}141 142Api.sendMessage({143text:txt144});145 146return;147 148  }149//==================================150// DISCORD MANAGER151// PART 2152// ADD + DELETE153//==================================154 155//=========================156// ADD157//=========================158 159if(message=="➕ Thêm Tab"){160 161User.setProperty(162"discord_action",163"add"164);165 166Api.sendMessage({167 168text:"📝 Nhập tên Tab mới:"169 170});171 172return;173 174}175 176if(action=="add"){177 178tabs.push({179 180id:tabs.length+1,181 182name:message,183 184status:true,185 186delay:10,187 188language:"vi",189 190token:""191 192});193 194saveTabs();195 196User.setProperty(197"discord_action",198""199);200 201Api.sendMessage({202 203text:204"✅ Đã tạo Tab\n\n"+205"ID: "+tabs.length+206"\nTên: "+message207 208});209 210return;211 212}213 214//=========================215// DELETE216//=========================217 218if(message=="🗑️ Xóa Tab"){219 220if(tabs.length==0){221 222Api.sendMessage({223 224text:"❌ Không có Tab."225 226});227 228return;229 230}231 232let txt="🗑️ Chọn ID cần xóa\n\n";233 234for(let i=0;i<tabs.length;i++){235 236txt+=237(i+1)+238". "+239tabs[i].name+240"\n";241 242}243 244User.setProperty(245"discord_action",246"delete"247);248 249Api.sendMessage({250 251text:txt252 253});254 255return;256 257}258 259if(action=="delete"){260 261let id=parseInt(message);262 263if(264 265isNaN(id)||266id<1||267id>tabs.length268 269){270 271Api.sendMessage({272 273text:"❌ ID không hợp lệ."274 275});276 277return;278 279}280 281let name=tabs[id-1].name;282 283tabs.splice(284id-1,2851286);287 288// Đánh lại ID289 290for(291 292let i=0;293i<tabs.length;294i++295 296){297 298tabs[i].id=i+1;299 300}301 302saveTabs();303 304User.setProperty(305"discord_action",306""307);308 309Api.sendMessage({310 311text:312"✅ Đã xóa Tab\n\n"+313name314 315});316 317return;318 319}320//==================================321// DISCORD MANAGER322// PART 3323// EDIT + DELAY324//==================================325 326//=========================327// EDIT NAME328//=========================329 330if(message=="✏️ Chỉnh sửa"){331 332if(tabs.length==0){333 334Api.sendMessage({335text:"❌ Không có Tab."336});337 338return;339 340}341 342let txt="✏️ Chọn ID cần đổi tên\n\n";343 344for(let i=0;i<tabs.length;i++){345 346txt+=(i+1)+". "+tabs[i].name+"\n";347 348}349 350User.setProperty(351"discord_action",352"edit_select"353);354 355Api.sendMessage({356text:txt357});358 359return;360 361}362 363if(action=="edit_select"){364 365let id=parseInt(message);366 367if(368 369isNaN(id)||370id<1||371id>tabs.length372 373){374 375Api.sendMessage({376text:"❌ ID không hợp lệ."377});378 379return;380 381}382 383User.setProperty(384"discord_select",385id-1386);387 388User.setProperty(389"discord_action",390"edit_name"391);392 393Api.sendMessage({394 395text:"📝 Nhập tên mới:"396 397});398 399return;400 401}402 403if(action=="edit_name"){404 405let index=User.getProperty(406"discord_select"407);408 409tabs[index].name=message;410 411saveTabs();412 413User.setProperty(414"discord_action",415""416);417 418Api.sendMessage({419 420text:"✅ Đã đổi tên."421 422});423 424return;425 426}427 428//=========================429// DELAY430//=========================431 432if(message=="⏱ Delay"){433 434if(tabs.length==0){435 436Api.sendMessage({437text:"❌ Không có Tab."438});439 440return;441 442}443 444let txt="⏱ Chọn ID cần sửa Delay\n\n";445 446for(let i=0;i<tabs.length;i++){447 448txt+=449(i+1)+". "+450tabs[i].name+451" ("+452tabs[i].delay+453"s)\n";454 455}456 457User.setProperty(458"discord_action",459"delay_select"460);461 462Api.sendMessage({463 464text:txt465 466});467 468return;469 470}471 472if(action=="delay_select"){473 474let id=parseInt(message);475 476if(477 478isNaN(id)||479id<1||480id>tabs.length481 482){483 484Api.sendMessage({485 486text:"❌ ID không hợp lệ."487 488});489 490return;491 492}493 494User.setProperty(495"discord_select",496id-1497);498 499User.setProperty(500"discord_action",501"delay_edit"502);503 504Api.sendMessage({505 506text:"⏱ Nhập Delay mới (giây):"507 508});509 510return;511 512}513 514if(action=="delay_edit"){515 516let delay=parseInt(message);517 518if(519 520isNaN(delay)||521delay<0522 523){524 525Api.sendMessage({526 527text:"❌ Delay không hợp lệ."528 529});530 531return;532 533}534 535let index=User.getProperty(536"discord_select"537);538 539tabs[index].delay=delay;540 541saveTabs();542 543User.setProperty(544"discord_action",545""546);547 548Api.sendMessage({549 550text:551"✅ Delay mới: "+552delay+553" giây."554 555});556 557return;558 559   }560//==================================561// DISCORD MANAGER562// PART 4563// LANGUAGE + TOKEN564//==================================565 566//=========================567// LANGUAGE568//=========================569 570if(message=="🌐 Language"){571 572if(tabs.length==0){573 574Api.sendMessage({575text:"❌ Không có Tab."576});577 578return;579 580}581 582let txt="🌐 Chọn ID cần sửa Language\n\n";583 584for(let i=0;i<tabs.length;i++){585 586txt+=587(i+1)+". "+588tabs[i].name+589" ("+590tabs[i].language+591")\n";592 593}594 595User.setProperty(596"discord_action",597"language_select"598);599 600Api.sendMessage({601text:txt602});603 604return;605 606}607 608if(action=="language_select"){609 610let id=parseInt(message);611 612if(613isNaN(id)||614id<1||615id>tabs.length616){617 618Api.sendMessage({619text:"❌ ID không hợp lệ."620});621 622return;623 624}625 626User.setProperty(627"discord_select",628id-1629);630 631User.setProperty(632"discord_action",633"language_edit"634);635 636Api.sendMessage({637text:"🌐 Nhập Language mới (vd: vi, en, ja)"638});639 640return;641 642}643 644if(action=="language_edit"){645 646let index=User.getProperty("discord_select");647 648tabs[index].language=message;649 650saveTabs();651 652User.setProperty(653"discord_action",654""655);656 657Api.sendMessage({658text:"✅ Đã cập nhật Language."659});660 661return;662 663}664 665//=========================666// TOKEN667//=========================668 669if(message=="🔑 Token"){670 671if(tabs.length==0){672 673Api.sendMessage({674text:"❌ Không có Tab."675});676 677return;678 679}680 681let txt="🔑 Chọn ID cần sửa Token\n\n";682 683for(let i=0;i<tabs.length;i++){684 685txt+=686(i+1)+". "+687tabs[i].name+688"\n";689 690}691 692User.setProperty(693"discord_action",694"token_select"695);696 697Api.sendMessage({698text:txt699});700 701return;702 703}704 705if(action=="token_select"){706 707let id=parseInt(message);708 709if(710isNaN(id)||711id<1||712id>tabs.length713){714 715Api.sendMessage({716text:"❌ ID không hợp lệ."717});718 719return;720 721}722 723User.setProperty(724"discord_select",725id-1726);727 728User.setProperty(729"discord_action",730"token_edit"731);732 733Api.sendMessage({734text:"🔑 Nhập Token mới:"735});736 737return;738 739}740 741if(action=="token_edit"){742 743let index=User.getProperty("discord_select");744 745tabs[index].token=message;746 747saveTabs();748 749User.setProperty(750"discord_action",751""752);753 754Api.sendMessage({755text:"✅ Đã cập nhật Token."756});757 758return;759 760      }761//==================================762// DISCORD MANAGER763// PART 5764// START + STOP765//==================================766 767//=========================768// STOP769//=========================770 771if(message=="⏸️ Dừng"){772 773if(tabs.length==0){774 775Api.sendMessage({776text:"❌ Không có Tab."777});778 779return;780 781}782 783let txt="⏸️ Chọn ID cần dừng\n\n";784 785for(let i=0;i<tabs.length;i++){786 787txt+=788(i+1)+". "+789tabs[i].name+790" "+791(tabs[i].status?"🟢":"🔴")+792"\n";793 794}795 796User.setProperty(797"discord_action",798"stop_select"799);800 801Api.sendMessage({802text:txt803});804 805return;806 807}808 809if(action=="stop_select"){810 811let id=parseInt(message);812 813if(814isNaN(id)||815id<1||816id>tabs.length817){818 819Api.sendMessage({820text:"❌ ID không hợp lệ."821});822 823return;824 825}826 827tabs[id-1].status=false;828 829saveTabs();830 831User.setProperty(832"discord_action",833""834);835 836User.setProperty(837"discord_select",838-1839);840 841Api.sendMessage({842 843text:844"⏸️ Đã dừng Tab:\n"+845tabs[id-1].name846 847});848 849return;850 851}852 853//=========================854// START855//=========================856 857if(message=="▶️ Bật"){858 859if(tabs.length==0){860 861Api.sendMessage({862text:"❌ Không có Tab."863});864 865return;866 867}868 869let txt="▶️ Chọn ID cần bật\n\n";870 871for(let i=0;i<tabs.length;i++){872 873txt+=874(i+1)+". "+875tabs[i].name+876" "+877(tabs[i].status?"🟢":"🔴")+878"\n";879 880}881 882User.setProperty(883"discord_action",884"start_select"885);886 887Api.sendMessage({888text:txt889});890 891return;892 893}894 895if(action=="start_select"){896 897let id=parseInt(message);898 899if(900isNaN(id)||901id<1||902id>tabs.length903){904 905Api.sendMessage({906text:"❌ ID không hợp lệ."907});908 909return;910 911}912 913tabs[id-1].status=true;914 915saveTabs();916 917User.setProperty(918"discord_action",919""920);921 922User.setProperty(923"discord_select",924-1925);926 927Api.sendMessage({928 929text:930"▶️ Đã bật Tab:\n"+931tabs[id-1].name932 933});934 935return;936 937}938 939//=========================940// RESET ACTION941//=========================942 943if(message=="🔙 Quay lại"){944 945User.setProperty(946"discord_action",947""948);949 950User.setProperty(951"discord_select",952-1953);954 955Api.sendMessage({956 957text:"🏠 Đã quay lại."958 959});960 961return;962 963  }