priyanshbot12 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.Dockerignore +4 -0
- package/.dockerignore +4 -0
- package/.github/workflows/publish.yml +20 -0
- package/Dockerfile +5 -0
- package/Priyansh.js +601 -0
- package/appcap.json +0 -0
- package/appstate.json +263 -0
- package/config.json +231 -0
- package/includes/antist.sqlite +0 -0
- package/includes/controllers/currencies.js +100 -0
- package/includes/controllers/threads.js +89 -0
- package/includes/controllers/users.js +96 -0
- package/includes/database/index.js +41 -0
- package/includes/database/model.js +22 -0
- package/includes/database/models/currencies.js +26 -0
- package/includes/database/models/threads.js +21 -0
- package/includes/database/models/users.js +21 -0
- package/includes/handle/handleCommand.js +140 -0
- package/includes/handle/handleCommandEvent.js +43 -0
- package/includes/handle/handleCreateDatabase.js +62 -0
- package/includes/handle/handleEvent.js +37 -0
- package/includes/handle/handleNotification.js +47 -0
- package/includes/handle/handleReaction.js +44 -0
- package/includes/handle/handleRefresh.js +66 -0
- package/includes/handle/handleReply.js +44 -0
- package/includes/listen.js +307 -0
- package/index.js +93 -0
- package/languages/en.lang +103 -0
- package/languages/vi.lang +104 -0
- package/lol.json +4001 -0
- package/modChangeColorFca.js +78 -0
- package/modules/commands/0tom.js +25 -0
- package/modules/commands/6packs.js +142 -0
- package/modules/commands/Bio.js +18 -0
- package/modules/commands/Getavtfb.js +59 -0
- package/modules/commands/Google.js +77 -0
- package/modules/commands/Obama.js +74 -0
- package/modules/commands/Onbot.js +5 -0
- package/modules/commands/Priyanshu/approvedThreads.json +151 -0
- package/modules/commands/Priyanshu/pendingdThreads.json +1 -0
- package/modules/commands/Rank.js +201 -0
- package/modules/commands/Rushi.js +30 -0
- package/modules/commands/Simpson.js +76 -0
- package/modules/commands/Troll.json +26 -0
- package/modules/commands/Trump.js +76 -0
- package/modules/commands/Vonglap.js +24 -0
- package/modules/commands/Work-beta.js +113 -0
- package/modules/commands/aah-xsound.js +26 -0
- package/modules/commands/accept_fri.js +111 -0
- package/modules/commands/adc.js +106 -0
- package/modules/commands/adden.js +83 -0
- package/modules/commands/adduser.js +52 -0
- package/modules/commands/admin.js +254 -0
- package/modules/commands/ai.js +97 -0
- package/modules/commands/ai1.js +39 -0
- package/modules/commands/alert.js +1 -0
- package/modules/commands/allbox.js +194 -0
- package/modules/commands/alllin.js +85 -0
- package/modules/commands/altar.js +56 -0
- package/modules/commands/amogus.js +26 -0
- package/modules/commands/anifact.js +33 -0
- package/modules/commands/animalear.js +26 -0
- package/modules/commands/animeimg.js +25 -0
- package/modules/commands/animescrape.js +101 -0
- package/modules/commands/antichange.js +237 -0
- package/modules/commands/antijoin.js +22 -0
- package/modules/commands/antiout.js +22 -0
- package/modules/commands/antirobbery.js +22 -0
- package/modules/commands/approve.js +139 -0
- package/modules/commands/appstate.js +30 -0
- package/modules/commands/ara.js +28 -0
- package/modules/commands/art.js +39 -0
- package/modules/commands/astalk.json +85 -0
- package/modules/commands/autoban.js +45 -0
- package/modules/commands/automention.js +17 -0
- package/modules/commands/autoreact.js +62 -0
- package/modules/commands/autoreset.js +40 -0
- package/modules/commands/autoseen.js +1 -0
- package/modules/commands/autosetname.js +52 -0
- package/modules/commands/avatar.js +32 -0
- package/modules/commands/avt.js +76 -0
- package/modules/commands/award.js +84 -0
- package/modules/commands/ayaka.js +134 -0
- package/modules/commands/baicao.js +166 -0
- package/modules/commands/balance.js +42 -0
- package/modules/commands/ban.js +220 -0
- package/modules/commands/banking.js +132 -0
- package/modules/commands/banner.js +93 -0
- package/modules/commands/banner2.js +237 -0
- package/modules/commands/banner3.js +510 -0
- package/modules/commands/bard.js +59 -0
- package/modules/commands/batmanslap.js +79 -0
- package/modules/commands/baybayin.js +18 -0
- package/modules/commands/bbm.js +84 -0
- package/modules/commands/beast.js +62 -0
- package/modules/commands/bf.js +74 -0
- package/modules/commands/biden.js +25 -0
- package/modules/commands/bigtext.js +219 -0
- package/modules/commands/billboard.js +83 -0
- package/modules/commands/birthday.js +27 -0
- package/modules/commands/board.js +74 -0
- package/modules/commands/bot.js +245 -0
- package/modules/commands/bot1.js +414 -0
- package/modules/commands/botban.js +51 -0
- package/modules/commands/botsay.js +16 -0
- package/modules/commands/box.js +119 -0
- package/modules/commands/boxinfo.js +53 -0
- package/modules/commands/bruh.js +26 -0
- package/modules/commands/cache/1.png +0 -0
- package/modules/commands/cache/2.gif +0 -0
- package/modules/commands/cache/2.png +0 -0
- package/modules/commands/cache/20.jpg +0 -0
- package/modules/commands/cache/3.png +0 -0
- package/modules/commands/cache/4.png +0 -0
- package/modules/commands/cache/5.png +0 -0
- package/modules/commands/cache/50.jpg +0 -0
- package/modules/commands/cache/6.png +0 -0
- package/modules/commands/cache/7.png +0 -0
- package/modules/commands/cache/8.jpg +0 -0
- package/modules/commands/cache/8.png +0 -0
- package/modules/commands/cache/9.png +0 -0
- package/modules/commands/cache/AlegreyaSans-Regular.ttf +0 -0
- package/modules/commands/cache/ArialUnicodeMS.ttf +0 -0
- package/modules/commands/cache/Avthai.png +0 -0
- package/modules/commands/cache/Play-Bold.ttf +0 -0
- package/modules/commands/cache/SVN-Arial 2.ttf +0 -0
- package/modules/commands/cache/VNCORSI.ttf +0 -0
- package/modules/commands/cache/autoseen.txt +1 -0
- package/modules/commands/cache/autosetname.json +1 -0
- package/modules/commands/cache/avt.png +0 -0
- package/modules/commands/cache/avt2.png +0 -0
- package/modules/commands/cache/avt_100000377396525.png +0 -0
- package/modules/commands/cache/avt_100027379701085.png +0 -0
- package/modules/commands/cache/avtuserrd2.png +0 -0
- package/modules/commands/cache/avtuserrd3.png +0 -0
- package/modules/commands/cache/banner.gif +0 -0
- package/modules/commands/cache/biden1.png +2 -0
- package/modules/commands/cache/bill.json +1 -0
- package/modules/commands/cache/bold-font.ttf +0 -0
- package/modules/commands/cache/canvas/arr2.png +0 -0
- package/modules/commands/cache/canvas/choigay.png +0 -0
- package/modules/commands/cache/canvas/fuck.png +0 -0
- package/modules/commands/cache/canvas/fuckv2.png +0 -0
- package/modules/commands/cache/canvas/fuckv3.png +0 -0
- package/modules/commands/cache/canvas/fuckv4.png +0 -0
- package/modules/commands/cache/canvas/hug4.png +0 -0
- package/modules/commands/cache/canvas/hugp.png +0 -0
- package/modules/commands/cache/canvas/hugv1.png +0 -0
- package/modules/commands/cache/canvas/hugv2.png +0 -0
- package/modules/commands/cache/canvas/hugv3.png +0 -0
- package/modules/commands/cache/canvas/josh.png +0 -0
- package/modules/commands/cache/canvas/joshua.png +0 -0
- package/modules/commands/cache/canvas/love2.jpg +0 -0
- package/modules/commands/cache/canvas/marriedv1.png +0 -0
- package/modules/commands/cache/canvas/marriedv2.png +0 -0
- package/modules/commands/cache/canvas/marriedv3.png +0 -0
- package/modules/commands/cache/canvas/marriedv4.png +0 -0
- package/modules/commands/cache/canvas/marriedv5.png +0 -0
- package/modules/commands/cache/canvas/marriedv6.jpeg +0 -0
- package/modules/commands/cache/canvas/marrywi.png +0 -0
- package/modules/commands/cache/canvas/namtay.png +0 -0
- package/modules/commands/cache/canvas/pairing.jpg +0 -0
- package/modules/commands/cache/canvas/pj.png +0 -0
- package/modules/commands/cache/canvas/seophi.png +0 -0
- package/modules/commands/cache/checkttDay.json +11594 -0
- package/modules/commands/cache/chocolate.jpg +0 -0
- package/modules/commands/cache/customrank/.txt +1 -0
- package/modules/commands/cache/data.json +3 -0
- package/modules/commands/cache/datlich.json +1 -0
- package/modules/commands/cache/dhbc1.png +0 -0
- package/modules/commands/cache/dhbc2.png +0 -0
- package/modules/commands/cache/elaina.jpg +0 -0
- package/modules/commands/cache/fbcover.png +0 -0
- package/modules/commands/cache/giflove.png +0 -0
- package/modules/commands/cache/giflove1.png +0 -0
- package/modules/commands/cache/giflove2.png +0 -0
- package/modules/commands/cache/giflove3.png +0 -0
- package/modules/commands/cache/giflove4.png +0 -0
- package/modules/commands/cache/giflove5.png +0 -0
- package/modules/commands/cache/giflove6.png +0 -0
- package/modules/commands/cache/giflove7.png +0 -0
- package/modules/commands/cache/hon.png +0 -0
- package/modules/commands/cache/hon1.png +0 -0
- package/modules/commands/cache/hon2.png +0 -0
- package/modules/commands/cache/image-0.png +0 -0
- package/modules/commands/cache/image-1.png +0 -0
- package/modules/commands/cache/image-10.png +0 -0
- package/modules/commands/cache/image-11.png +0 -0
- package/modules/commands/cache/image-12.png +0 -0
- package/modules/commands/cache/image-13.png +0 -0
- package/modules/commands/cache/image-14.png +0 -0
- package/modules/commands/cache/image-15.png +0 -0
- package/modules/commands/cache/image-16.png +0 -0
- package/modules/commands/cache/image-17.png +0 -0
- package/modules/commands/cache/image-18.png +0 -0
- package/modules/commands/cache/image-19.png +0 -0
- package/modules/commands/cache/image-2.png +0 -0
- package/modules/commands/cache/image-20.png +0 -0
- package/modules/commands/cache/image-21.png +0 -0
- package/modules/commands/cache/image-22.png +0 -0
- package/modules/commands/cache/image-23.png +0 -0
- package/modules/commands/cache/image-24.png +0 -0
- package/modules/commands/cache/image-25.png +0 -0
- package/modules/commands/cache/image-26.png +0 -0
- package/modules/commands/cache/image-27.png +0 -0
- package/modules/commands/cache/image-28.png +0 -0
- package/modules/commands/cache/image-29.png +0 -0
- package/modules/commands/cache/image-3.png +0 -0
- package/modules/commands/cache/image-30.png +0 -0
- package/modules/commands/cache/image-31.png +0 -0
- package/modules/commands/cache/image-32.png +0 -0
- package/modules/commands/cache/image-33.png +0 -0
- package/modules/commands/cache/image-34.png +0 -0
- package/modules/commands/cache/image-35.png +0 -0
- package/modules/commands/cache/image-36.png +0 -0
- package/modules/commands/cache/image-37.png +0 -0
- package/modules/commands/cache/image-38.png +0 -0
- package/modules/commands/cache/image-39.png +0 -0
- package/modules/commands/cache/image-4.png +0 -0
- package/modules/commands/cache/image-40.png +0 -0
- package/modules/commands/cache/image-41.png +0 -0
- package/modules/commands/cache/image-42.png +0 -0
- package/modules/commands/cache/image-43.png +0 -0
- package/modules/commands/cache/image-44.png +0 -0
- package/modules/commands/cache/image-45.png +0 -0
- package/modules/commands/cache/image-46.png +0 -0
- package/modules/commands/cache/image-47.png +0 -0
- package/modules/commands/cache/image-48.png +0 -0
- package/modules/commands/cache/image-49.png +0 -0
- package/modules/commands/cache/image-5.png +0 -0
- package/modules/commands/cache/image-50.png +0 -0
- package/modules/commands/cache/image-51.png +0 -0
- package/modules/commands/cache/image-52.png +0 -0
- package/modules/commands/cache/image-53.png +0 -0
- package/modules/commands/cache/image-6.png +0 -0
- package/modules/commands/cache/image-7.png +0 -0
- package/modules/commands/cache/image-8.png +0 -0
- package/modules/commands/cache/image-9.png +0 -0
- package/modules/commands/cache/img1.png +0 -0
- package/modules/commands/cache/img2.png +0 -0
- package/modules/commands/cache/listwarning.json +1 -0
- package/modules/commands/cache/lyrics.png +0 -0
- package/modules/commands/cache/memory.ttf +1950 -0
- package/modules/commands/cache/memorygame.png +0 -0
- package/modules/commands/cache/menu.gif +0 -0
- package/modules/commands/cache/mikasa.jpg +0 -0
- package/modules/commands/cache/mirai.jpg +0 -0
- package/modules/commands/cache/nami.jpg +0 -0
- package/modules/commands/cache/night.jpg +0 -0
- package/modules/commands/cache/notes.json +1 -0
- package/modules/commands/cache/priyansh.jpg +0 -0
- package/modules/commands/cache/quybu.gif +0 -0
- package/modules/commands/cache/rankcard.png +0 -0
- package/modules/commands/cache/rankcard1.png +0 -0
- package/modules/commands/cache/rankcard10.png +0 -0
- package/modules/commands/cache/rankcard11.png +0 -0
- package/modules/commands/cache/rankcard12.png +0 -0
- package/modules/commands/cache/rankcard13.png +0 -0
- package/modules/commands/cache/rankcard14.png +0 -0
- package/modules/commands/cache/rankcard2.png +0 -0
- package/modules/commands/cache/rankcard3.png +0 -0
- package/modules/commands/cache/rankcard4.png +0 -0
- package/modules/commands/cache/rankcard5.png +0 -0
- package/modules/commands/cache/rankcard6.png +0 -0
- package/modules/commands/cache/rankcard7.png +0 -0
- package/modules/commands/cache/rankcard8.png +0 -0
- package/modules/commands/cache/rankcard9.png +0 -0
- package/modules/commands/cache/rankup/.txt +1 -0
- package/modules/commands/cache/regular-font.ttf +0 -0
- package/modules/commands/cache/rules.json +1 -0
- package/modules/commands/cache/shortcutdata.json +6 -0
- package/modules/commands/cache/snoti.jpg +0 -0
- package/modules/commands/cache/statusAuto.json +3 -0
- package/modules/commands/cache/tiktok.png +0 -0
- package/modules/commands/cache/toilet.png +0 -0
- package/modules/commands/cache/toilet1.png +0 -0
- package/modules/commands/cache/ttt.png +0 -0
- package/modules/commands/cache/urbanjungle.ttf +0 -0
- package/modules/commands/cache/wanted.png +3 -0
- package/modules/commands/cache.js +112 -0
- package/modules/commands/callad.js +215 -0
- package/modules/commands/cardbox.js +161 -0
- package/modules/commands/cardcute.js +122 -0
- package/modules/commands/cardinfo.js +106 -0
- package/modules/commands/cardinfotag.js +110 -0
- package/modules/commands/cardinfov2.js +103 -0
- package/modules/commands/cardinfov3.js +111 -0
- package/modules/commands/cardinfov4.js +104 -0
- package/modules/commands/caro.json +354 -0
- package/modules/commands/catsay.js +25 -0
- package/modules/commands/cave.js +51 -0
- package/modules/commands/chart.js +35 -0
- package/modules/commands/checktt.js +121 -0
- package/modules/commands/checkv1.js +181 -0
- package/modules/commands/cheems.js +88 -0
- package/modules/commands/chocolate.js +26 -0
- package/modules/commands/choose.js +28 -0
- package/modules/commands/chumma.js +25 -0
- package/modules/commands/clearcache.js +60 -0
- package/modules/commands/cmd.js +192 -0
- package/modules/commands/cnbh.js +118 -0
- package/modules/commands/code.js +101 -0
- package/modules/commands/communism.js +56 -0
- package/modules/commands/confess.js +25 -0
- package/modules/commands/console.js +46 -0
- package/modules/commands/cosplay.json +38 -0
- package/modules/commands/count-by-thread/.txt +1 -0
- package/modules/commands/count.js +82 -0
- package/modules/commands/couple.js +80 -0
- package/modules/commands/coupledp.js +40 -0
- package/modules/commands/covid.js +46 -0
- package/modules/commands/crypto.js +109 -0
- package/modules/commands/daily.js +46 -0
- package/modules/commands/darock.js +27 -0
- package/modules/commands/daru.js +26 -0
- package/modules/commands/data/.txt +1 -0
- package/modules/commands/date.js +80 -0
- package/modules/commands/date2.js +80 -0
- package/modules/commands/deletelogo.js +32 -0
- package/modules/commands/delmsg.js +25 -0
- package/modules/commands/delthread.js +26 -0
- package/modules/commands/details.js +112 -0
- package/modules/commands/dictionary.js +42 -0
- package/modules/commands/dog.js +27 -0
- package/modules/commands/dogfact.js +31 -0
- package/modules/commands/doof.js +74 -0
- package/modules/commands/dot.js +58 -0
- package/modules/commands/download.js +32 -0
- package/modules/commands/drake.js +84 -0
- package/modules/commands/drip.js +61 -0
- package/modules/commands/einstein.js +74 -0
- package/modules/commands/elon.js +78 -0
- package/modules/commands/emoji.js +83 -0
- package/modules/commands/enrile.js +76 -0
- package/modules/commands/event.js +223 -0
- package/modules/commands/example.js +49 -0
- package/modules/commands/fact.js +16 -0
- package/modules/commands/fact2.js +26 -0
- package/modules/commands/family.js +194 -0
- package/modules/commands/fbcover.js +183 -0
- package/modules/commands/fbcoverv2.js +101 -0
- package/modules/commands/fberror.js +74 -0
- package/modules/commands/fbget.js +41 -0
- package/modules/commands/file.js +106 -0
- package/modules/commands/fire.js +52 -0
- package/modules/commands/fish.js +48 -0
- package/modules/commands/fishing.json +330 -0
- package/modules/commands/fuck.js +74 -0
- package/modules/commands/fuck2.js +74 -0
- package/modules/commands/fuck3.js +74 -0
- package/modules/commands/fuck4.js +74 -0
- package/modules/commands/fuck5.js +74 -0
- package/modules/commands/fyoutoo.js +25 -0
- package/modules/commands/fyt.js +58 -0
- package/modules/commands/gali_reply.js +24 -0
- package/modules/commands/game1.js +34 -0
- package/modules/commands/getlink.js +26 -0
- package/modules/commands/gf.js +74 -0
- package/modules/commands/girl.js +11497 -0
- package/modules/commands/girl2.js +23319 -0
- package/modules/commands/girlnude.js +126 -0
- package/modules/commands/github.js +37 -0
- package/modules/commands/giveaway.js +122 -0
- package/modules/commands/gpt.js +39 -0
- package/modules/commands/groupemoji.js +17 -0
- package/modules/commands/groupimage.js +24 -0
- package/modules/commands/groupname.js +17 -0
- package/modules/commands/hack.js +103 -0
- package/modules/commands/help.js +122 -0
- package/modules/commands/help2.js +160 -0
- package/modules/commands/help3.js +83 -0
- package/modules/commands/hi.js +191 -0
- package/modules/commands/hi2.js +83 -0
- package/modules/commands/history.js +74 -0
- package/modules/commands/hold.js +80 -0
- package/modules/commands/hololive.js +63 -0
- package/modules/commands/hug.js +74 -0
- package/modules/commands/hug4.js +74 -0
- package/modules/commands/hug5.js +74 -0
- package/modules/commands/hugj.js +74 -0
- package/modules/commands/hugp.js +74 -0
- package/modules/commands/hugv2.js +74 -0
- package/modules/commands/hugv3.js +74 -0
- package/modules/commands/idst.js +25 -0
- package/modules/commands/imagesearch.js +96 -0
- package/modules/commands/imagine.js +143 -0
- package/modules/commands/info.js +62 -0
- package/modules/commands/infobox.js +161 -0
- package/modules/commands/infocardv7.js +112 -0
- package/modules/commands/infoip.js +24 -0
- package/modules/commands/infosite.js +47 -0
- package/modules/commands/insta.js +210 -0
- package/modules/commands/instagram.js +131 -0
- package/modules/commands/install.js +103 -0
- package/modules/commands/ip.js +55 -0
- package/modules/commands/isko.json +74 -0
- package/modules/commands/iss.js +29 -0
- package/modules/commands/japan.js +211 -0
- package/modules/commands/jessica.js +74 -0
- package/modules/commands/join.js +51 -0
- package/modules/commands/kanna.js +27 -0
- package/modules/commands/khana.js +26 -0
- package/modules/commands/kick.js +51 -0
- package/modules/commands/kiss.js +79 -0
- package/modules/commands/kiss2.js +79 -0
- package/modules/commands/kiss3.js +85 -0
- package/modules/commands/language.js +37 -0
- package/modules/commands/ledtext.js +38 -0
- package/modules/commands/leni.js +84 -0
- package/modules/commands/lexi.js +74 -0
- package/modules/commands/listadmin.js +36 -0
- package/modules/commands/listbanbybot.js +165 -0
- package/modules/commands/listbox.js +203 -0
- package/modules/commands/listfriend.js +90 -0
- package/modules/commands/load.js +15 -0
- package/modules/commands/log.js +37 -0
- package/modules/commands/logobear.js +31 -0
- package/modules/commands/logogame.js +31 -0
- package/modules/commands/logogaming2.js +31 -0
- package/modules/commands/logogaming3.js +31 -0
- package/modules/commands/logogaming4.js +31 -0
- package/modules/commands/logogaming5.js +31 -0
- package/modules/commands/logogirlgame.js +31 -0
- package/modules/commands/logogold.js +31 -0
- package/modules/commands/logoninja.js +31 -0
- package/modules/commands/logout.js +16 -0
- package/modules/commands/logowolf.js +31 -0
- package/modules/commands/love.js +80 -0
- package/modules/commands/luatbot.js +24 -0
- package/modules/commands/luckynum.js +34 -0
- package/modules/commands/lyrics.js +34 -0
- package/modules/commands/mal.js +72 -0
- package/modules/commands/malnews.js +20 -0
- package/modules/commands/mark.js +74 -0
- package/modules/commands/markcmt.js +74 -0
- package/modules/commands/married.js +74 -0
- package/modules/commands/marriedj.js +74 -0
- package/modules/commands/marriedv2.js +74 -0
- package/modules/commands/marriedv3.js +74 -0
- package/modules/commands/marriedv4.js +74 -0
- package/modules/commands/marriedv5.js +74 -0
- package/modules/commands/marriedv6.js +74 -0
- package/modules/commands/marry.js +74 -0
- package/modules/commands/math.js +121 -0
- package/modules/commands/mathematics.js +37 -0
- package/modules/commands/mbbank.js +74 -0
- package/modules/commands/meme.js +31 -0
- package/modules/commands/memory.js +136 -0
- package/modules/commands/mention.js +22 -0
- package/modules/commands/menu.js +142 -0
- package/modules/commands/minari.js +49 -0
- package/modules/commands/minigame.js +32 -0
- package/modules/commands/minionslanguange.js +24 -0
- package/modules/commands/mlbb.js +1 -0
- package/modules/commands/mlstalk.js +22 -0
- package/modules/commands/mobilelegends.js +31 -0
- package/modules/commands/morse.js +27 -0
- package/modules/commands/music.js +138 -0
- package/modules/commands/music2.js +44 -0
- package/modules/commands/music3.js +124 -0
- package/modules/commands/mycoins.js +45 -0
- package/modules/commands/namtay.js +80 -0
- package/modules/commands/natsuki.json +63 -0
- package/modules/commands/naughty.js +58 -0
- package/modules/commands/newbox.js +22 -0
- package/modules/commands/news.js +64 -0
- package/modules/commands/nhentai.js +47 -0
- package/modules/commands/night.js +26 -0
- package/modules/commands/ninja.js +18 -0
- package/modules/commands/noitu.js +42 -0
- package/modules/commands/noprefix/Yest +1 -0
- package/modules/commands/noprefix/ara.mp3 +0 -0
- package/modules/commands/noprefix/box.mp4 +0 -0
- package/modules/commands/noprefix/daru.mp4 +0 -0
- package/modules/commands/noprefix/dk.mp3 +0 -0
- package/modules/commands/noprefix/fuck.gif +0 -0
- package/modules/commands/noprefix/hi.gif +0 -0
- package/modules/commands/noprefix/instagram.jpg +0 -0
- package/modules/commands/noprefix/rankup/.txt +1 -0
- package/modules/commands/noprefix/solar.gif +0 -0
- package/modules/commands/noprefix/sub.mp3 +0 -0
- package/modules/commands/noprefix/sus.mp3 +0 -0
- package/modules/commands/noprefix/tea.mp4 +0 -0
- package/modules/commands/noprefix/totalChat.json +1 -0
- package/modules/commands/noprefix/v.mp3 +0 -0
- package/modules/commands/noprefix/vineboom.gif +0 -0
- package/modules/commands/noprefix/wednesday.mp4 +0 -0
- package/modules/commands/noprefix/wn.mp4 +0 -0
- package/modules/commands/noprefix/xf.mp3 +0 -0
- package/modules/commands/noprefix/xxx.mp3 +0 -0
- package/modules/commands/noprefix/yamate.mp3 +0 -0
- package/modules/commands/note.js +86 -0
- package/modules/commands/npm.js +30 -0
- package/modules/commands/nsfw.js +43 -0
- package/modules/commands/nsfwanime.js +101 -0
- package/modules/commands/nude.js +25 -0
- package/modules/commands/osu.js +21 -0
- package/modules/commands/out.js +23 -0
- package/modules/commands/outall.js +26 -0
- package/modules/commands/outbox.js +117 -0
- package/modules/commands/package.js +119 -0
- package/modules/commands/pair.js +86 -0
- package/modules/commands/pair1.js +86 -0
- package/modules/commands/pair2.js +51 -0
- package/modules/commands/pair3.js +51 -0
- package/modules/commands/pair4.js +51 -0
- package/modules/commands/pair5.js +51 -0
- package/modules/commands/pair6.js +51 -0
- package/modules/commands/pair7.js +51 -0
- package/modules/commands/pair8.js +51 -0
- package/modules/commands/pantiesclose.js +199 -0
- package/modules/commands/pantiesclosev2.js +199 -0
- package/modules/commands/password.js +83 -0
- package/modules/commands/pat.js +43 -0
- package/modules/commands/pay.json +64 -0
- package/modules/commands/pending.js +83 -0
- package/modules/commands/penis.js +11 -0
- package/modules/commands/penticlose.js +199 -0
- package/modules/commands/petmonsters.js +138 -0
- package/modules/commands/phub.js +83 -0
- package/modules/commands/pin.js +36 -0
- package/modules/commands/ping.js +30 -0
- package/modules/commands/pingv2.js +32 -0
- package/modules/commands/pinterest.js +37 -0
- package/modules/commands/playstore.js +103 -0
- package/modules/commands/poli.js +25 -0
- package/modules/commands/pooh.js +28 -0
- package/modules/commands/post.js +272 -0
- package/modules/commands/prefix.js +43 -0
- package/modules/commands/prefixv2.js +91 -0
- package/modules/commands/prince.js +245 -0
- package/modules/commands/priyansh.js +33 -0
- package/modules/commands/pubg.js +31 -0
- package/modules/commands/punch.js +44 -0
- package/modules/commands/qr.js +36 -0
- package/modules/commands/quiz.js +51 -0
- package/modules/commands/rainbow.js +29 -0
- package/modules/commands/randomicon.js +36 -0
- package/modules/commands/rankcard (copy).js +257 -0
- package/modules/commands/rankcard.js +216 -0
- package/modules/commands/rankgif.js +375 -0
- package/modules/commands/rankup.js +123 -0
- package/modules/commands/red.js +29 -0
- package/modules/commands/red2.js +1 -0
- package/modules/commands/reload.js +22 -0
- package/modules/commands/removebg.js +61 -0
- package/modules/commands/resend.js +86 -0
- package/modules/commands/resetexp.js +25 -0
- package/modules/commands/resetmoney.js +25 -0
- package/modules/commands/restart.js +32 -0
- package/modules/commands/rip.js +32 -0
- package/modules/commands/rnamebot.js +39 -0
- package/modules/commands/rnamebox.js +27 -0
- package/modules/commands/rule.js +86 -0
- package/modules/commands/sauce.js +56 -0
- package/modules/commands/say.js +62 -0
- package/modules/commands/schoolid.js +107 -0
- package/modules/commands/screenshot.js +44 -0
- package/modules/commands/screenshotv2.js +44 -0
- package/modules/commands/search.js +21 -0
- package/modules/commands/selflisten.js +30 -0
- package/modules/commands/sendfile.js +102 -0
- package/modules/commands/sendnoti.js +76 -0
- package/modules/commands/sendnoti1.js +40 -0
- package/modules/commands/sendnoti2.js +75 -0
- package/modules/commands/sendnoti5.js +113 -0
- package/modules/commands/sentnoti.js +49 -0
- package/modules/commands/setall.js +24 -0
- package/modules/commands/setcoins.js +21 -0
- package/modules/commands/setdatabox.js +26 -0
- package/modules/commands/setdatauser.js +28 -0
- package/modules/commands/setemoji.js +15 -0
- package/modules/commands/setexp.js +64 -0
- package/modules/commands/setjoin.js +94 -0
- package/modules/commands/setkey.js +18 -0
- package/modules/commands/setmoney.js +63 -0
- package/modules/commands/setname.js +17 -0
- package/modules/commands/setnameall.js +24 -0
- package/modules/commands/setprefix.js +58 -0
- package/modules/commands/setrankup.js +90 -0
- package/modules/commands/shayri.js +34 -0
- package/modules/commands/shell.js +31 -0
- package/modules/commands/shortcut.js +177 -0
- package/modules/commands/siesta.js +25 -0
- package/modules/commands/sim.js +51 -0
- package/modules/commands/sing.js +1 -0
- package/modules/commands/slap.js +44 -0
- package/modules/commands/sleep.js +61 -0
- package/modules/commands/slot.js +61 -0
- package/modules/commands/slotwaifu.js +254 -0
- package/modules/commands/solarsystem.js +102 -0
- package/modules/commands/spamban.js +69 -0
- package/modules/commands/spamban1.js +69 -0
- package/modules/commands/spank.js +30 -0
- package/modules/commands/status.js +37 -0
- package/modules/commands/steal.js +41 -0
- package/modules/commands/student.js +75 -0
- package/modules/commands/studentv2.js +75 -0
- package/modules/commands/studentv3.js +74 -0
- package/modules/commands/sub.js +26 -0
- package/modules/commands/system.js +82 -0
- package/modules/commands/tea.js +26 -0
- package/modules/commands/teach.js +70 -0
- package/modules/commands/textpro.js +445 -0
- package/modules/commands/thread.js +272 -0
- package/modules/commands/tictactoe.json +219 -0
- package/modules/commands/tid.js +15 -0
- package/modules/commands/tiki.js +74 -0
- package/modules/commands/tikvideo.js +59 -0
- package/modules/commands/tile.js +43 -0
- package/modules/commands/time.js +19 -0
- package/modules/commands/toctoc.js +1 -0
- package/modules/commands/toilet.js +79 -0
- package/modules/commands/token.js +42 -0
- package/modules/commands/top.js +160 -0
- package/modules/commands/trans.js +44 -0
- package/modules/commands/triggered.js +25 -0
- package/modules/commands/try.js +35 -0
- package/modules/commands/tweet-tag.json +1 -0
- package/modules/commands/tweet.js +75 -0
- package/modules/commands/tweet.json +92 -0
- package/modules/commands/tweetv2.json +92 -0
- package/modules/commands/uid.js +17 -0
- package/modules/commands/unban.js +186 -0
- package/modules/commands/unsend.js +27 -0
- package/modules/commands/unsentvip.js +16 -0
- package/modules/commands/uptime.js +141 -0
- package/modules/commands/uptime2.js +151 -0
- package/modules/commands/uptime3.js +151 -0
- package/modules/commands/user.js +278 -0
- package/modules/commands/vanilla.json +38 -0
- package/modules/commands/video.js +2 -0
- package/modules/commands/videov2.js +124 -0
- package/modules/commands/virgin.js +25 -0
- package/modules/commands/vtuber.js +109 -0
- package/modules/commands/vtuberWiki.js +164 -0
- package/modules/commands/wall/MTOJamai.ttf +0 -0
- package/modules/commands/wanted.json +32 -0
- package/modules/commands/war.js +54 -0
- package/modules/commands/warning.js +88 -0
- package/modules/commands/wasted.json +56 -0
- package/modules/commands/weather.js +50 -0
- package/modules/commands/wednesday.js +26 -0
- package/modules/commands/wiki.js +37 -0
- package/modules/commands/wom.js +26 -0
- package/modules/commands/work.js +93 -0
- package/modules/commands/xavier.js +75 -0
- package/modules/commands/xvideo.js +1 -0
- package/modules/commands/yaoi.json +31 -0
- package/modules/commands/yes.js +74 -0
- package/modules/commands/yuri.json +34 -0
- package/modules/commands/zackv.js +105 -0
- package/modules/commands/zalgo.js +16 -0
- package/modules/commands/zerotwo.js +52 -0
- package/modules/commands/zuck.js +77 -0
- package/modules/commands/zz.js +43 -0
- package/modules/commands/zzz.js +50 -0
- package/modules/commands/zzzz.js +48 -0
- package/modules/commands/zzzzz.js +116 -0
- package/modules/events/antijoin.js +25 -0
- package/modules/events/antiout.js +22 -0
- package/modules/events/antirobbery.js +43 -0
- package/modules/events/antist.js +216 -0
- package/modules/events/autosent.js +27 -0
- package/modules/events/autosetname.js +28 -0
- package/modules/events/cache/1689024290268.jpg +0 -0
- package/modules/events/cache/1689024291948.jpg +0 -0
- package/modules/events/cache/1689338091241.jpg +0 -0
- package/modules/events/cache/1689338091358.jpg +0 -0
- package/modules/events/cache/1689338161936.jpg +0 -0
- package/modules/events/cache/1689338162061.jpg +0 -0
- package/modules/events/cache/1689782720063.jpg +0 -0
- package/modules/events/cache/1696308600074.jpg +0 -0
- package/modules/events/cache/1696330171870.jpg +0 -0
- package/modules/events/cache/1696432181920.jpg +0 -0
- package/modules/events/cache/1696489190436.jpg +0 -0
- package/modules/events/cache/1696529399872.jpg +0 -0
- package/modules/events/cache/1696585758189.jpg +0 -0
- package/modules/events/cache/1696595392125.jpg +0 -0
- package/modules/events/cache/1696675929706.jpg +0 -0
- package/modules/events/cache/1696773555786.jpg +0 -0
- package/modules/events/cache/1697903362006.jpg +0 -0
- package/modules/events/cache/1697967586121.jpg +0 -0
- package/modules/events/cache/1698479390255.jpg +0 -0
- package/modules/events/cache/1698479678850.jpg +0 -0
- package/modules/events/cache/1698484313383.jpg +0 -0
- package/modules/events/cache/1698493158950.jpg +0 -0
- package/modules/events/cache/1700485758929.jpg +0 -0
- package/modules/events/cache/1701466775429.jpg +0 -0
- package/modules/events/cache/1701466776229.jpg +0 -0
- package/modules/events/cache/1701467351100.jpg +0 -0
- package/modules/events/cache/1701502759299.jpg +0 -0
- package/modules/events/cache/1701502759797.jpg +0 -0
- package/modules/events/cache/1703741413729.jpg +0 -0
- package/modules/events/cache/1703741413899.jpg +0 -0
- package/modules/events/cache/1703745121246.jpg +0 -0
- package/modules/events/cache/1703745121366.jpg +0 -0
- package/modules/events/cache/1703968162735.jpg +0 -0
- package/modules/events/cache/1703968162770.jpg +0 -0
- package/modules/events/cache/1704008949591.jpg +0 -0
- package/modules/events/cache/1704008949769.jpg +0 -0
- package/modules/events/cache/1704028197166.jpg +0 -0
- package/modules/events/cache/1704028197470.jpg +0 -0
- package/modules/events/cache/1704184158582.jpg +0 -0
- package/modules/events/cache/1704184158811.jpg +0 -0
- package/modules/events/cache/CourierNewPS-BoldMT.ttf +0 -0
- package/modules/events/cache/avt.png +0 -0
- package/modules/events/cache/avtuserrd.png +0 -0
- package/modules/events/cache/joinGif/randomgif/join.png +0 -0
- package/modules/events/cache/joinGif/randomgif/join2.gif +0 -0
- package/modules/events/cache/joinGif/randomgif/welc.gif +0 -0
- package/modules/events/cache/joinMp4/hello.gif +0 -0
- package/modules/events/cache/joinnoti.png +0 -0
- package/modules/events/emoji.json +1 -0
- package/modules/events/join.js +4 -0
- package/modules/events/joinNoti.js +82 -0
- package/modules/events/leave.js +34 -0
- package/modules/events/log.js +106 -0
- package/package.json +121 -0
- package/utils/index.html +519 -0
- package/utils/index.js +159 -0
- package/utils/log.js +29 -0
- package/werewolfConfig.js +229 -0
@@ -0,0 +1,414 @@
|
|
1
|
+
const chalk = require('chalk');
|
2
|
+
module.exports.config = {
|
3
|
+
name: "bot1",
|
4
|
+
version: "0.0.1",
|
5
|
+
hasPermssion: 1,
|
6
|
+
credits: "Adonis",
|
7
|
+
description: "xem thông tin về bot",
|
8
|
+
commandCategory: "Box Chat",
|
9
|
+
usages: "",
|
10
|
+
cooldowns: 0
|
11
|
+
};
|
12
|
+
|
13
|
+
const totalPath = __dirname + '/noprefix/totalChat.json';
|
14
|
+
const _24hours = 86400000;
|
15
|
+
const fs = require("fs-extra");
|
16
|
+
function handleByte(byte) {
|
17
|
+
const units = ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
18
|
+
|
19
|
+
let i = 0, usage = parseInt(byte, 10) || 0;
|
20
|
+
|
21
|
+
while(usage >= 1024 && ++i){
|
22
|
+
usage = usage/1024;
|
23
|
+
}
|
24
|
+
|
25
|
+
return(usage.toFixed(usage < 10 && i > 0 ? 1 : 0) + ' ' + units[i]);
|
26
|
+
}
|
27
|
+
|
28
|
+
function handleOS(ping) {
|
29
|
+
var os = require("os");
|
30
|
+
var cpus = os.cpus();
|
31
|
+
var speed, chips;
|
32
|
+
for (var i of cpus) chips = i.model, speed = i.speed;
|
33
|
+
if (cpus == undefined) return;
|
34
|
+
else return msg =
|
35
|
+
`📌 Ping: ${Date.now() - ping}ms.\n\n`;
|
36
|
+
|
37
|
+
}
|
38
|
+
module.exports.onLoad = function() {
|
39
|
+
const { writeFileSync, existsSync } = require('fs-extra');
|
40
|
+
const { resolve } = require("path");
|
41
|
+
const path = resolve(__dirname, 'cache', 'data.json');
|
42
|
+
if (!existsSync(path)) {
|
43
|
+
const obj = {
|
44
|
+
adminbox: {}
|
45
|
+
};
|
46
|
+
writeFileSync(path, JSON.stringify(obj, null, 4));
|
47
|
+
} else {
|
48
|
+
const data = require(path);
|
49
|
+
if (!data.hasOwnProperty('adminbox')) data.adminbox = {};
|
50
|
+
writeFileSync(path, JSON.stringify(data, null, 4));
|
51
|
+
}
|
52
|
+
}
|
53
|
+
console.log(chalk.bold.hex("# 00FF00").bold("=======[ COMMAND LOADED SUCCESSFULLY ]======="));
|
54
|
+
module.exports.run = async function({ api, args, event, Users,handleReply,permssion }) {
|
55
|
+
const moment = require("moment-timezone");
|
56
|
+
const gio = moment.tz("Asia/").format("HH");
|
57
|
+
var phut = moment.tz("Asia/").format("mm");
|
58
|
+
var giay = moment.tz("Asia/").format("ss");
|
59
|
+
const axios = require("axios")
|
60
|
+
const fs = require('fs-extra');
|
61
|
+
const request = require('request')
|
62
|
+
const picture = (await axios.get(`https://i.imgur.com/GZm17PU.jpeg`, { responseType: "stream"})).data
|
63
|
+
const { threadID, messageID, senderID } = event;
|
64
|
+
return api.sendMessage({body: "======= [ 𝐀𝐃𝐌𝐈𝐍 ] =======\n𝟭. 𝗦𝗲𝗲 𝗔𝗱𝗺𝗶𝗻 𝗠𝗲𝘀𝘀𝗮𝗴𝗲 𝗗𝗶𝗿𝗲𝗰𝘁𝗹𝘆 💳\n𝟮. 𝗦𝗲𝗲 𝗟𝗶𝘃𝗲 𝗡𝗲𝘄𝘀 𝗕𝗼𝘁 👾\n𝟯. 𝗟𝗼𝗴𝗼𝘂𝘁 𝗜𝘀 𝗜𝘁 𝗡𝗼𝘁 𝗔𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲 🖥\n𝟰. 𝗥𝗲𝗹𝗼𝗮𝗱 𝗖𝗼𝗻𝗳𝗶𝗴 ♻️\n𝟱. 𝗥𝗲𝘀𝘁𝗮𝗿𝘁 𝘁𝗵𝗲 𝗯𝗼𝘁 🎀\n====[ 𝐀𝐃𝐌𝐈𝐍 𝐓𝐎𝐎𝐋𝐒 ]====\n𝟲. 𝗧𝘂𝗿𝗻 𝗢𝗻/𝗢𝗳𝗳 𝗥𝗮𝗻𝗸𝘂𝗽 💌\n𝟳. 𝗢𝗻/𝗢𝗳𝗳 𝗺𝗼𝗱𝗲 𝗤𝗧𝗩 𝗢𝗻𝗹𝘆 🎐\n𝟴\. 𝗢𝗻/𝗢𝗳𝗳 𝗺𝗼𝗱𝗲 𝗔𝗻𝘁𝗶 𝗝𝗼𝗶𝗻 🚫\n𝟵. 𝗢𝗻/𝗢𝗳𝗳 𝗺𝗼𝗱𝘂𝗹𝗲 𝗰𝗹𝗶𝗽 𝗯𝗼𝘅 🔰\n𝟭𝟬. 𝗢𝗻/𝗢𝗳𝗳 𝗔𝗻𝘁𝗶𝗼𝘂𝘁 🛡\n=====[ 𝐎𝐰𝐧𝐞𝐫 𝐓𝐨𝐨𝐥𝐬 ]=====\n𝟭𝟭. 𝗹𝗶𝘀𝘁 𝗔𝗱𝗺𝗶𝗻 𝗕𝗼𝘁 🤖\n𝟭𝟮. 𝗹𝗶𝘀𝘁 𝗧𝗼𝘁𝗮𝗹 𝗔𝗱𝗺𝗶𝗻𝗶𝘀𝘁𝗮𝘁𝗼𝗿 𝗢𝗳 𝗯𝗼𝘅 📌\n𝟭𝟯. 𝗩𝗶𝘄𝗲 𝗗𝗶𝗿𝗲𝗰𝘁 𝗠𝗲𝘀𝘀𝗮𝗴𝗲 𝗼𝗳 𝘁𝗵𝗲 𝗕𝗼𝘅 📱\n---------------------------\n💟 𝗧𝗵𝗶𝘀 𝗕𝗼𝘁 𝗠𝗮𝗱𝗲 𝗕𝘆 𝗠𝗲𝗲𝗿𝗮 𝗥𝗮𝗷𝗽𝘂𝘁 💌\n",attachment: (picture)
|
65
|
+
}, threadID, (error, info) => {
|
66
|
+
global.client.handleReply.push({
|
67
|
+
name: this.config.name,
|
68
|
+
messageID: info.messageID,
|
69
|
+
author: event.senderID,
|
70
|
+
type: "choosee",
|
71
|
+
})
|
72
|
+
}, event.messageID)
|
73
|
+
}
|
74
|
+
module.exports.handleReply = async function({
|
75
|
+
args, event, Users,Threads, api, handleReply, permssion
|
76
|
+
}) {
|
77
|
+
const { threadID, messageID, senderID } = event;
|
78
|
+
switch (handleReply.type) {
|
79
|
+
case "choosee": {
|
80
|
+
switch (event.body) {
|
81
|
+
case "2": {
|
82
|
+
const moment = require("moment-timezone");
|
83
|
+
const gio = moment.tz("Asia/Kolkata").format("HH");
|
84
|
+
var phut = moment.tz("Asia/").format("mm");
|
85
|
+
var giay = moment.tz("Asia/").format("ss");
|
86
|
+
const namebot = config.BOTNAME
|
87
|
+
const PREFIX = config.PREFIX
|
88
|
+
const admin = config.ADMINBOT
|
89
|
+
const ndh = config.NDH
|
90
|
+
const { commands } = global.client;
|
91
|
+
const threadSetting = (await Threads.getData(String(event.threadID))).data ||
|
92
|
+
{};
|
93
|
+
const prefix = (threadSetting.hasOwnProperty("PREFIX")) ? threadSetting.PREFIX
|
94
|
+
: global.config.PREFIX;
|
95
|
+
var ping = Date.now();
|
96
|
+
|
97
|
+
var threadInfo = await api.getThreadInfo(event.threadID);
|
98
|
+
var time = process.uptime(),
|
99
|
+
hours = Math.floor(time / (60 * 60)),
|
100
|
+
minutes = Math.floor((time % (60 * 60)) / 60),
|
101
|
+
seconds = Math.floor(time % 60);
|
102
|
+
var severInfo = handleOS(ping);
|
103
|
+
var msg =`⏰ 𝗡𝗼𝘄 𝗶𝘀: ${gio} 𝗛𝗼𝘂𝗿𝘀 ${phut} 𝗠𝗶𝗻𝘂𝘁𝗲𝘀 ${giay} 𝗦𝗲𝗰𝗼𝗻𝗱𝘀\n👾 𝗢𝗻 𝐁𝐨𝐭: ${namebot}\n⏱ 𝐁𝐨𝐭 𝗜𝘀 𝗻𝗼𝘄 𝐨𝐧𝐥𝐢𝐧𝐞:${hours < 10 ? (hours > 0 ? " 0" + hours + " 𝗛𝗼𝘂𝗿𝘀" :
|
104
|
+
"") : (hours > 0 ? " " + hours + " 𝗛𝗼𝘂𝗿𝘀" : "")} ${minutes < 10 ? (minutes > 0 ? " 0" + minutes + " 𝗠𝗶𝗻𝘂𝘁𝗲𝘀" : "") : (minutes > 0 ? " " + minutes + " 𝗠𝗶𝗻𝘂𝘁𝗲𝘀" :
|
105
|
+
"")}${seconds < 10 ? (seconds > 0 ? " 0" + seconds + " 𝗦𝗲𝗰𝗼𝗻𝗱𝘀" : "") : (seconds > 0 ? " " +
|
106
|
+
seconds + " 𝗦𝗲𝗰𝗼𝗻𝗱𝘀" : "")}\n----------------------------\n` +
|
107
|
+
`👨👨👧👦 𝗧𝗼𝘁𝗮𝗹 𝗚𝗿𝗼𝘂𝗽𝘀: ${global.data.allThreadID.length} 𝗚𝗿𝗼𝘂𝗽𝘀.\n👥 𝗧𝗼𝘁𝗮𝗹 𝗨𝘀𝗲𝗿𝘀: ${global.data.allUserID.length} 𝗣𝗲𝗼𝗽𝗹𝗲\n👑 𝐀𝐝𝐦𝐢𝐧 𝐁𝐨𝐭: ${admin.length}.\n👤 𝗕𝗼𝘁 𝘀𝘂𝗽𝗽𝗼𝗿𝘁𝗲𝗿: ${ndh.length}.\n` +
|
108
|
+
`📝 𝗧𝗼𝘁𝗮𝗹 𝗼𝗿𝗱𝗲𝗿𝘀: ${commands.size }\n----------------------------\n`+`🖥 𝗦𝘆𝘀𝘁𝗲𝗺 𝗣𝗿𝗲𝗳𝗶𝘅: ${PREFIX}\n📲 𝐏𝐫𝐞𝐟𝐢𝐱 𝐁𝐨𝐱: ${prefix}\n${severInfo ? severInfo : `📌 𝐏𝐢𝐧𝐠:
|
109
|
+
${Date.now() - ping}ms.\n\n`}`
|
110
|
+
return api.sendMessage(msg, event.threadID)
|
111
|
+
}break;
|
112
|
+
case "1": {
|
113
|
+
const moment = require("moment-timezone");
|
114
|
+
const request = require("request")
|
115
|
+
var timeNow = moment.tz("Asia/").format("HH:mm:ss");
|
116
|
+
if (!fs.existsSync(totalPath)) fs.writeKlFileSync(totalPath, JSON.stringify({}));
|
117
|
+
let totalChat = JSON.parse(fs.readFileSync(totalPath));
|
118
|
+
let threadInfo = await api.getThreadInfo(event.threadID);
|
119
|
+
let timeByMS = Date.now();
|
120
|
+
|
121
|
+
var memLength = threadInfo.participantIDs.length;
|
122
|
+
let threadMem = threadInfo.participantIDs.length;
|
123
|
+
var nameMen = [];
|
124
|
+
var gendernam = [];
|
125
|
+
var gendernu = [];
|
126
|
+
var nope = [];
|
127
|
+
for (let z in threadInfo.userInfo) {
|
128
|
+
var gioitinhone = threadInfo.userInfo[z].gender;
|
129
|
+
var nName = threadInfo.userInfo[z].name;
|
130
|
+
if (gioitinhone == "MALE") {
|
131
|
+
gendernam.push(z + gioitinhone)
|
132
|
+
} else if (gioitinhone == "FEMALE") {
|
133
|
+
gendernu.push(gioitinhone)
|
134
|
+
} else {
|
135
|
+
nope.push(nName)
|
136
|
+
}
|
137
|
+
};
|
138
|
+
var nam = gendernam.length;
|
139
|
+
var nu = gendernu.length;
|
140
|
+
let qtv = threadInfo.adminIDs.length;
|
141
|
+
let sl = threadInfo.messageCount;
|
142
|
+
let u = threadInfo.nicknames;
|
143
|
+
let icon = threadInfo.emoji;
|
144
|
+
|
145
|
+
let threadName = threadInfo.threadName;
|
146
|
+
let id = threadInfo.threadID;
|
147
|
+
let sex = threadInfo.approvalMode;
|
148
|
+
var pd = sex == false ? '𝐭𝐚̆́𝐭' : sex == true ? '𝐛𝐚̣̂𝐭' : 'Kh';
|
149
|
+
|
150
|
+
|
151
|
+
if (!totalChat[event.threadID]) {
|
152
|
+
totalChat[event.threadID] = {
|
153
|
+
time: timeByMS,
|
154
|
+
count: sl,
|
155
|
+
ytd: 0
|
156
|
+
}
|
157
|
+
fs.writeFileSync(totalPath, JSON.stringify(totalChat, null, 2));
|
158
|
+
}
|
159
|
+
|
160
|
+
let mdtt = "𝗖𝗵𝘂̛𝗮 𝗰𝗼́ 𝘁𝗵𝗼̂́𝗻𝗴 𝗸𝗲̂";
|
161
|
+
let preCount = totalChat[event.threadID].count || 0;
|
162
|
+
let ytd = totalChat[event.threadID].ytd || 0;
|
163
|
+
let hnay = (ytd != 0) ? (sl - preCount) : "𝗖𝗵𝘂̛𝗮 𝗰𝗼́ 𝘁𝗵𝗼̂́𝗻𝗴 𝗸𝗲̂";
|
164
|
+
let hqua = (ytd != 0) ? ytd : "𝗖𝗵𝘂̛𝗮 𝗰𝗼́ 𝘁𝗵𝗼̂́𝗻𝗴 𝗸𝗲̂";
|
165
|
+
if (timeByMS - totalChat[event.threadID].time > _24hours) {
|
166
|
+
if (timeByMS - totalChat[event.threadID].time > (_24hours * 2)) {
|
167
|
+
totalChat[event.threadID].count = sl;
|
168
|
+
totalChat[event.threadID].time = timeByMS - _24hours;
|
169
|
+
totalChat[event.threadID].ytd = sl - preCount;
|
170
|
+
fs.writeFileSync(totalPath, JSON.stringify(totalChat, null, 2));
|
171
|
+
}
|
172
|
+
getHour = Math.ceil((timeByMS - totalChat[event.threadID].time - _24hours) / 3600000);
|
173
|
+
if (ytd == 0) mdtt = 100;
|
174
|
+
else mdtt = ((((hnay) / ((hqua / 24) * getHour))) * 100).toFixed(0);
|
175
|
+
mdtt += "%";
|
176
|
+
}
|
177
|
+
api.unsendMessage(handleReply.messageID);
|
178
|
+
var callback = () =>
|
179
|
+
api.sendMessage({
|
180
|
+
body: `ㅤㅤ🌸 𝐀𝐃𝐌𝐈𝐍 𝐁𝐎𝐓 🌸\n
|
181
|
+
👀 𝗢𝘄𝗻𝗲𝗿: 𝗠𝗲𝗲𝗿𝗮 𝗥𝗮𝗷𝗽𝘂𝘁 (𝗕𝗿𝗮𝗻𝗱𝗲𝗱 𝗤𝘂𝗲𝗲𝗻)
|
182
|
+
❎ 𝐓𝗶𝗱 𝗟𝗶𝘀𝘁: 9
|
183
|
+
👤 𝗚𝗲𝗻𝗱𝗲𝗿: 𝗙𝗲𝗺𝗮𝗹𝗲
|
184
|
+
💫 𝗛𝗶𝗴𝗵𝘁 𝗢𝗳 𝗧𝗵𝗲 𝗧𝗿𝗮𝗻𝗺𝗮𝘀𝗶𝗼𝗻: 𝟭𝗺𝟳 𝘅 𝟱𝟮𝗸𝗴
|
185
|
+
💘 𝗟𝗼𝘃𝗲𝘀: 𝗢𝗻𝗹𝘆 𝗦𝗵𝗿𝗲𝗲 𝗛𝗮𝗿𝗶 𝗡𝗮𝗿𝗮𝘆𝗮𝗻
|
186
|
+
🌎 𝗖𝗼𝗻𝘁𝗿𝘆: 𝗜𝗻𝗱𝗶𝗮 (𝗛𝗶𝗺𝗮𝗰𝗵𝗮𝗹)
|
187
|
+
👫 𝗛𝗮𝘃𝗲 𝗔𝗻𝘆 𝗣𝗮𝗿𝘁𝗻𝗲𝗿?, 𝗡𝗼
|
188
|
+
🌸 𝗛𝗼𝗯𝗯𝘆: 𝗦𝗵𝗿𝗲𝗲 𝗞𝗿𝗶𝘀𝗵𝗻𝗮 𝗞𝗮 𝗡𝗮𝗺𝗲 𝗝𝗮𝗽𝗻𝗮
|
189
|
+
🌀 𝗛𝗼𝘄 𝗣𝗲𝗼𝗽𝗹𝗲 𝗞𝗻𝗼𝘄𝘀 𝗬𝗼𝘂: 𝗕𝗵𝗮𝘃𝗻𝗮 𝗦𝗶𝗻𝗴𝗵 𝗥𝗮𝗷𝗽𝘂𝘁
|
190
|
+
💻 𝐂𝐨𝐧𝐭𝐚𝐜𝐭 💻
|
191
|
+
☎ 𝗘𝗺𝗮𝗶𝗹: 𝗾𝘂𝗲𝗲𝗻𝘃𝗮𝗶𝘀𝗵𝗻𝗮𝘃𝗶643@𝗴𝗺𝗮𝗶𝗹.𝗰𝗼𝗺
|
192
|
+
🌐 𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: https://www.facebook.com/profile.php?id=100004654449847`,
|
193
|
+
attachment: fs.createReadStream(__dirname + "/cache/1.png")}, event.threadID, () =>
|
194
|
+
fs.unlinkSync(__dirname + "/cache/1.png"));
|
195
|
+
return request(
|
196
|
+
encodeURI(`https://graph.facebook.com/${100040494708143}/picture?height=720&width=720&access_token=1073911769817594|aa417da57f9e260d1ac1ec4530b417de`)).pipe(
|
197
|
+
fs.createWriteStream(__dirname+'/cache/1.png')).on('close',() => callback());
|
198
|
+
}break;
|
199
|
+
case "13": {
|
200
|
+
const moment = require("moment-timezone");
|
201
|
+
const request = require("request")
|
202
|
+
var timeNow = moment.tz("Asia/").format("HH:mm:ss");
|
203
|
+
if (!fs.existsSync(totalPath)) fs.writeFileSync(totalPath, JSON.stringify({}));
|
204
|
+
let totalChat = JSON.parse(fs.readFileSync(totalPath));
|
205
|
+
let threadInfo = await api.getThreadInfo(event.threadID);
|
206
|
+
let timeByMS = Date.now();
|
207
|
+
|
208
|
+
var memLength = threadInfo.participantIDs.length;
|
209
|
+
let threadMem = threadInfo.participantIDs.length;
|
210
|
+
var nameMen = [];
|
211
|
+
var gendernam = [];
|
212
|
+
var gendernu = [];
|
213
|
+
var nope = [];
|
214
|
+
for (let z in threadInfo.userInfo) {
|
215
|
+
var gioitinhone = threadInfo.userInfo[z].gender;
|
216
|
+
var nName = threadInfo.userInfo[z].name;
|
217
|
+
if (gioitinhone == "MALE") {
|
218
|
+
gendernam.push(z + gioitinhone)
|
219
|
+
} else if (gioitinhone == "FEMALE") {
|
220
|
+
gendernu.push(gioitinhone)
|
221
|
+
} else {
|
222
|
+
nope.push(nName)
|
223
|
+
}
|
224
|
+
};
|
225
|
+
var nam = gendernam.length;
|
226
|
+
var nu = gendernu.length;
|
227
|
+
let qtv = threadInfo.adminIDs.length;
|
228
|
+
let sl = threadInfo.messageCount;
|
229
|
+
let u = threadInfo.nicknames;
|
230
|
+
let icon = threadInfo.emoji;
|
231
|
+
|
232
|
+
let threadName = threadInfo.threadName;
|
233
|
+
let id = threadInfo.threadID;
|
234
|
+
let sex = threadInfo.approvalMode;
|
235
|
+
var pd = sex == false ? '𝐭𝐚̆́𝐭' : sex == true ? '𝐛𝐚̣̂𝐭' : 'Kh';
|
236
|
+
|
237
|
+
|
238
|
+
if (!totalChat[event.threadID]) {
|
239
|
+
totalChat[event.threadID] = {
|
240
|
+
time: timeByMS,
|
241
|
+
count: sl,
|
242
|
+
ytd: 0
|
243
|
+
}
|
244
|
+
fs.writeFileSync(totalPath, JSON.stringify(totalChat, null, 2));
|
245
|
+
}
|
246
|
+
|
247
|
+
let mdtt = "𝗖𝗵𝘂̛𝗮 𝗰𝗼́ 𝘁𝗵𝗼̂́𝗻𝗴 𝗸𝗲̂";
|
248
|
+
let preCount = totalChat[event.threadID].count || 0;
|
249
|
+
let ytd = totalChat[event.threadID].ytd || 0;
|
250
|
+
let hnay = (ytd != 0) ? (sl - preCount) : "𝗖𝗵𝘂̛𝗮 𝗰𝗼́ 𝘁𝗵𝗼̂́𝗻𝗴 𝗸𝗲̂";
|
251
|
+
let hqua = (ytd != 0) ? ytd : "𝗖𝗵𝘂̛𝗮 𝗰𝗼́ 𝘁𝗵𝗼̂́𝗻𝗴 𝗸𝗲̂";
|
252
|
+
if (timeByMS - totalChat[event.threadID].time > _24hours) {
|
253
|
+
if (timeByMS - totalChat[event.threadID].time > (_24hours * 2)) {
|
254
|
+
totalChat[event.threadID].count = sl;
|
255
|
+
totalChat[event.threadID].time = timeByMS - _24hours;
|
256
|
+
totalChat[event.threadID].ytd = sl - preCount;
|
257
|
+
fs.writeFileSync(totalPath, JSON.stringify(totalChat, null, 2));
|
258
|
+
}
|
259
|
+
getHour = Math.ceil((timeByMS - totalChat[event.threadID].time - _24hours) / 3600000);
|
260
|
+
if (ytd == 0) mdtt = 100;
|
261
|
+
else mdtt = ((((hnay) / ((hqua / 24) * getHour))) * 100).toFixed(0);
|
262
|
+
mdtt += "%";
|
263
|
+
}
|
264
|
+
api.unsendMessage(handleReply.messageID);
|
265
|
+
var callback = () =>
|
266
|
+
api.sendMessage({
|
267
|
+
body: `⭐️ 𝐁𝐨𝐱: ${threadName}\n🎮 𝐈𝐃 𝐁𝐨𝐱: ${id}\n📱 𝗨𝗻𝗶𝗾𝘂𝗲 𝗡𝗮𝗺𝗲: ${pd}\n🐰 𝐄𝐦𝐨𝐣𝐢: ${icon}\n📌 𝗜𝗻𝗳𝗼: ${threadMem} 𝗠𝗮𝗹𝗲𝐧\n𝗦𝗗 𝗙𝗲𝗺𝗮𝗹𝗲 🧑🦰: ${nam} 𝐭𝐡𝐚̀𝐧𝐡 𝐯𝐢𝐞̂𝐧\n𝐒𝐨̂́ 𝐭𝐯 𝐧𝐮̛̃ 👩🦰: ${nu} 𝐭𝐡𝐚̀𝐧𝐡 𝐯𝐢𝐞̂𝐧\n🕵️♂️ 𝐆𝐨̂̀𝐦 ${qtv} 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧\n💬 𝐓𝐨̂̉𝐧𝐠: ${sl} 𝐭𝐢𝐧 𝐧𝐡𝐚̆́𝐧\n📈 𝐌𝐮̛́𝐜 𝐭𝐮̛𝐨̛𝐧𝐠 𝐭𝐚́𝐜: ${mdtt}\n🌟 𝐓𝐨̂̉𝐧𝐠 𝐬𝐨̂́ 𝐭𝐢𝐧 𝐧𝐡𝐚̆́𝐧 𝐡𝐨̂𝐦 𝐪𝐮𝐚: ${hqua}\n🌟 𝐓𝐨̂̉𝐧𝐠 𝐬𝐨̂́ 𝐭𝐢𝐧 𝐧𝐡𝐚̆́𝐧 𝐡𝐨̂𝐦 𝐧𝐚𝐲: ${hnay}\n === 「${timeNow}」 ===`,
|
268
|
+
attachment: fs.createReadStream(__dirname + '/cache/box.png')
|
269
|
+
},
|
270
|
+
threadID,
|
271
|
+
() => fs.unlinkSync(__dirname + '/cache/box.png')
|
272
|
+
);
|
273
|
+
return request(encodeURI(`${threadInfo.imageSrc}`))
|
274
|
+
.pipe(fs.createWriteStream(__dirname + '/cache/box.png'))
|
275
|
+
.on('close', () => callback());
|
276
|
+
}break;
|
277
|
+
case "3": {
|
278
|
+
const listAdmin = global.config.ADMINBOT[0];
|
279
|
+
if (senderID != listAdmin) return api.sendMessage("𝗖𝘂́𝘁 𝗺𝗲̣ 𝗺𝗮̀𝘆 𝗻𝗵𝗮𝗻𝗵, 𝗽𝗵𝗮́ 𝗰𝗼𝗻 𝗰𝗮̣̆𝗰 👊", threadID, messageID);
|
280
|
+
api.sendMessage("𝐒𝐢𝐠𝐧 𝐨𝐮𝐭 𝐨𝐟 𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤...",event.threadID,event.messageID)
|
281
|
+
api.logout()
|
282
|
+
}break;
|
283
|
+
//// reload config///
|
284
|
+
case "4": {
|
285
|
+
const listAdmin = global.config.ADMINBOT[0];
|
286
|
+
if (senderID != listAdmin) return api.sendMessage("𝗖𝘂́𝘁 𝗺𝗲̣ 𝗺𝗮̀𝘆 𝗻𝗵𝗮𝗻𝗵, 𝗽𝗵𝗮́ 𝗰𝗼𝗻 𝗰𝗮̣̆𝗰 👊", threadID, messageID);
|
287
|
+
delete require.cache[require.resolve(global.client.configPath)];
|
288
|
+
global.config = require(global.client.configPath);
|
289
|
+
return api.sendMessage("𝐒𝐮𝐜𝐜𝐞𝐬𝐬𝐟𝐮𝐥𝐥𝐲 𝐫𝐞𝐥𝐨𝐚𝐝𝐞𝐝 𝐜𝐨𝐧𝐟𝐢𝐠.𝐣𝐬𝐨𝐧", event.threadID, event.messageID);
|
290
|
+
}break;
|
291
|
+
///// end
|
292
|
+
|
293
|
+
/// admin only ///
|
294
|
+
case "5": {
|
295
|
+
if (event.senderID != 100040494708143) return api.sendMessage(`» 𝐌𝐚̀𝐲 𝐓𝐮𝐨̂̉𝐢 𝐂𝐚̣̆𝐜 𝐆𝐢̀ 𝐌𝐚̀ 𝐗𝐚̀𝐢 😏`, event.threadID, event.messageID)
|
296
|
+
const { threadID, messageID } = event;
|
297
|
+
return api.sendMessage(`𝗥𝗲𝘀𝘁𝗮𝗿𝘁 𝗹𝗮̣𝗶 𝗯𝗼𝘁 𝘁𝗵𝗮̀𝗻𝗵 𝗰𝗼̂𝗻𝗴 💋`, threadID, () => process.exit(1));
|
298
|
+
}break;
|
299
|
+
///end
|
300
|
+
|
301
|
+
//admin box only
|
302
|
+
case "7": {
|
303
|
+
const { writeFileSync } = global.nodemodule["fs-extra"];
|
304
|
+
const { resolve } = require("path");
|
305
|
+
const pathData = resolve(__dirname, 'cache', 'data.json');
|
306
|
+
const database = require(pathData);
|
307
|
+
const { adminbox } = database;
|
308
|
+
if (adminbox[threadID] == true) {
|
309
|
+
adminbox[threadID] = false;
|
310
|
+
api.sendMessage("[ 𝐌𝐎𝐃𝐄 ] » 𝐓𝐚̆́𝐭 𝐭𝐡𝐚̀𝐧𝐡 𝐜𝐨̂𝐧𝐠 𝐦𝐨𝐝𝐞 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧 𝐨𝐧𝐥𝐲 𝐜𝐡𝐢̉ 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧 𝐦𝐨̛́𝐢 𝐜𝐨́ 𝐭𝐡𝐞̂̉ 𝐬𝐮̛̉ 𝐝𝐮̣𝐧𝐠 𝐛𝐨𝐭 🎀", threadID, messageID);
|
311
|
+
} else {
|
312
|
+
api.sendMessage("[ 𝐌𝐎𝐃𝐄 ] » 𝐁𝐚̣̂𝐭 𝐭𝐡𝐚̀𝐧𝐡 𝐜𝐨̂𝐧𝐠 𝐦𝐨𝐝𝐞 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧 𝐨𝐧𝐥𝐲 𝐜𝐡𝐢̉ 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧 𝐦𝐨̛́𝐢 𝐜𝐨́ 𝐭𝐡𝐞̂̉ 𝐬𝐮̛̉ 𝐝𝐮̣𝐧𝐠 𝐛𝐨𝐭 🎀", threadID, messageID);
|
313
|
+
adminbox[threadID] = true;
|
314
|
+
}
|
315
|
+
writeFileSync(pathData, JSON.stringify(database, null, 4));
|
316
|
+
}break;
|
317
|
+
////end
|
318
|
+
|
319
|
+
case "6": {
|
320
|
+
const { threadID, messageID } = event;
|
321
|
+
let data = (await Threads.getData(threadID)).data;
|
322
|
+
|
323
|
+
if (typeof data["rankup"] == "undefined" || data["rankup"] == false) data["rankup"] = true;
|
324
|
+
else data["rankup"] = false;
|
325
|
+
await Threads.setData(threadID, { data });
|
326
|
+
global.data.threadData.set(threadID, data);
|
327
|
+
return api.sendMessage(`𝗞𝗶́𝗰𝗵 𝗵𝗼𝗮̣𝘁 ${(data["rankup"] == true) ? "𝐛𝐚̣̂𝐭" : "𝐭𝐚̆́𝐭"} 𝐭𝐡𝐚̀𝐧𝐡 𝐜𝐨̂𝐧𝐠 𝘁𝗵𝗼̂𝗻𝗴 𝗯𝗮́𝗼 𝗿𝗮𝗻𝗸𝘂𝗽 ✔️`, event.threadID);
|
328
|
+
break;
|
329
|
+
}
|
330
|
+
case "8": {
|
331
|
+
const info = await api.getThreadInfo(event.threadID);
|
332
|
+
if (!info.adminIDs.some(item => item.id == api.getCurrentUserID()))
|
333
|
+
return api.sendMessage('» 𝐁𝐨𝐭 𝐜𝐚̂̀𝐧 𝐪𝐮𝐲𝐞̂̀𝐧 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧 𝐧𝐡𝐨́𝐦 💕', event.threadID, event.messageID);
|
334
|
+
const data = (await Threads.getData(event.threadID)).data || {};
|
335
|
+
if (typeof data.newMember == "undefined" || data.newMember == false) data.newMember = true;
|
336
|
+
else data.newMember = false;
|
337
|
+
await Threads.setData(event.threadID, { data });
|
338
|
+
global.data.threadData.set(parseInt(event.threadID), data);
|
339
|
+
return api.sendMessage(`𝗞𝗶́𝗰𝗵 𝗵𝗼𝗮̣𝘁 ${(data.newMember == true) ? "𝐛𝐚̣̂𝐭" : "𝐭𝐚̆́𝐭"} 𝐭𝐡𝐚̀𝐧𝐡 𝐜𝐨̂𝐧𝐠 𝐜𝐚̂́𝐦 𝐧𝐠𝐮̛𝐨̛̀𝐢 𝐝𝐮̀𝐧𝐠 𝐯𝐚̀𝐨 𝐛𝐨𝐱 ✔️`, event.threadID, event.messageID);
|
340
|
+
}break;
|
341
|
+
case "9": {
|
342
|
+
const info = await api.getThreadInfo(event.threadID);
|
343
|
+
if (!info.adminIDs.some(item => item.id == api.getCurrentUserID()))
|
344
|
+
return api.sendMessage('» 𝐁𝐨𝐭 𝐜𝐚̂̀𝐧 𝐪𝐮𝐲𝐞̂̀𝐧 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧 𝐧𝐡𝐨́𝐦 💕', event.threadID, event.messageID);
|
345
|
+
const data = (await Threads.getData(event.threadID)).data || {};
|
346
|
+
if (typeof data["guard"] == "guard" || data["guard"] == false) data["guard"] = true;
|
347
|
+
else data["guard"] = false;
|
348
|
+
await Threads.setData(event.threadID, { data });
|
349
|
+
global.data.threadData.set(parseInt(event.threadID), data);
|
350
|
+
return api.sendMessage(`𝗞𝗶́𝗰𝗵 𝗵𝗼𝗮̣𝘁 ${(data["guard"] == true) ? "𝐛𝐚̣̂𝐭" : "𝐭𝐚̆́𝐭"} 𝐭𝐡𝐚̀𝐧𝐡 𝐜𝐨̂𝐧𝐠 𝗰𝗵𝗼̂́𝗻𝗴 𝗰𝘂̛𝗼̛́𝗽 𝗯𝗼𝘅 ✔️`, event.threadID, event.messageID);
|
351
|
+
}break;
|
352
|
+
case "10": {
|
353
|
+
var info = await api.getThreadInfo(event.threadID);
|
354
|
+
let data = (await Threads.getData(event.threadID)).data || {};
|
355
|
+
if (typeof data["antiout"] == "undefined" || data["antiout"] == false) data["antiout"] = true;
|
356
|
+
else data["antiout"] = false;
|
357
|
+
await Threads.setData(event.threadID, { data });
|
358
|
+
global.data.threadData.set(parseInt(event.threadID), data);
|
359
|
+
return api.sendMessage(`𝗞𝗶́𝗰𝗵 𝗵𝗼𝗮̣𝘁 ${(data["antiout"] == true) ? "𝐛𝐚̣̂𝐭" : "𝐭𝐚̆́𝐭"} 𝐭𝐡𝐚̀𝐧𝐡 𝐜𝐨̂𝐧𝐠 𝗰𝗮̂́𝗺 𝗼𝘂𝘁 𝗰𝗵𝘂̀𝗮 ✔️`, event.threadID);
|
360
|
+
|
361
|
+
}break;
|
362
|
+
case "11": {
|
363
|
+
const { ADMINBOT } = global.config;
|
364
|
+
listAdmin = ADMINBOT || config.ADMINBOT || [];
|
365
|
+
var msg = [];
|
366
|
+
for (const idAdmin of listAdmin) {
|
367
|
+
if (parseInt(idAdmin)) {
|
368
|
+
const name = (await Users.getData(idAdmin)).name
|
369
|
+
msg.push(`» ${name}\nLink: fb.me/${idAdmin} 💌`);
|
370
|
+
}
|
371
|
+
}
|
372
|
+
return api.sendMessage(`======〘『 𝐀𝐃𝐌𝐈𝐍 』〙======\n${msg.join("\n")}\n`, event.threadID, event.messageID);
|
373
|
+
}break;
|
374
|
+
case "12": {
|
375
|
+
var threadInfo = await api.getThreadInfo(event.threadID);
|
376
|
+
let qtv = threadInfo.adminIDs.length;
|
377
|
+
var listad = '';
|
378
|
+
var qtv2 = threadInfo.adminIDs;
|
379
|
+
dem = 1;
|
380
|
+
for (let i = 0; i < qtv2.length; i++) {
|
381
|
+
const info = (await api.getUserInfo(qtv2[i].id));
|
382
|
+
const name = info[qtv2[i].id].name;
|
383
|
+
listad += '' + `${dem++}` + '. ' + name + '\n';
|
384
|
+
}
|
385
|
+
|
386
|
+
api.sendMessage(
|
387
|
+
`📜 𝐃𝐚𝐧𝐡 𝐬𝐚́𝐜𝐡 ${qtv} 𝐪𝐮𝐚̉𝐧 𝐭𝐫𝐢̣ 𝐯𝐢𝐞̂𝐧 𝐠𝐨̂̀𝐦:\n${listad}`,event.threadID,event.messageID)
|
388
|
+
|
389
|
+
}break;
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
}
|
395
|
+
}
|
396
|
+
}
|
397
|
+
}
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
module.exports.handleEvent = async ({ api, event }) => {
|
402
|
+
if (!fs.existsSync(totalPath)) fs.writeFileSync(totalPath, JSON.stringify({}));
|
403
|
+
let totalChat = JSON.parse(fs.readFileSync(totalPath));
|
404
|
+
if (!totalChat[event.threadID]) return;
|
405
|
+
if (Date.now() - totalChat[event.threadID].time > (_24hours * 2)) {
|
406
|
+
let sl = (await api.getThreadInfo(event.threadID)).messageCount;
|
407
|
+
totalChat[event.threadID] = {
|
408
|
+
time: Date.now() - _24hours,
|
409
|
+
count: sl,
|
410
|
+
ytd: sl - totalChat[event.threadID].count
|
411
|
+
}
|
412
|
+
fs.writeFileSync(totalPath, JSON.stringify(totalChat, null, 2));
|
413
|
+
}
|
414
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "otherbots",
|
3
|
+
version: "1.0.0",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "ban otherbot",
|
7
|
+
commandCategory: "config",
|
8
|
+
cooldowns: 0
|
9
|
+
};
|
10
|
+
module.exports.handleEvent = async ({
|
11
|
+
event: o,
|
12
|
+
api: t,
|
13
|
+
Users: n
|
14
|
+
}) => {
|
15
|
+
var {
|
16
|
+
threadID: e,
|
17
|
+
messageID: a,
|
18
|
+
body: b,
|
19
|
+
senderID: s,
|
20
|
+
reason: d
|
21
|
+
} = o;
|
22
|
+
const i = require("moment-timezone").tz("Asia/Kolkata").format("HH:MM:ss L");
|
23
|
+
if (s == t.getCurrentUserID()) return;
|
24
|
+
let c = await n.getNameUser(o.senderID);
|
25
|
+
var h = {
|
26
|
+
body: `${c}\nYou have been detected as a bot so you will be banned to avoid spam`
|
27
|
+
};
|
28
|
+
//Add curse words without capital letters
|
29
|
+
["Other Bot"].forEach((a => {
|
30
|
+
|
31
|
+
const s = o.senderID;
|
32
|
+
let haha = o.body;
|
33
|
+
if (haha.includes("your keyboard level has reached level") || haha.includes("Command not found") || haha.includes("The command you used") || haha.includes("How's your eat?, have you eaten? 🙄🙄") || haha.includes("Unsend this message") || haha.includes("You are unable to use bot") || haha.includes("»» NOTICE «« Update user nicknames") || haha.includes("just removed 1 Attachments") || haha.includes("message removedcontent") || haha.includes("The current preset is") || haha.includes("Here Is My Prefix") || haha.includes("just removed 1 attachment.") || haha.includes("Unable to re-add members") || haha.includes("removed 1 message content:") || haha.includes("Here's your music, enjoy!🥰") || haha.includes("Ye Raha Aapka Music, enjoy!🥰") || haha.includes("your keyboard Power level Up") || haha.inclueds("️Kya soch rahe ho etna 🤨") || haha.includes("your keyboard hero level has reached level")) {
|
34
|
+
modules = "[ BOT BAN ]", console.log(c, modules, a);
|
35
|
+
const o = n .getData(s).data || {};
|
36
|
+
n.setData(s, {
|
37
|
+
data: o
|
38
|
+
}), o.banned = 1, o.reason = a || null, o.dateAdded = i, global.data.userBanned.set(s, {
|
39
|
+
reason: o.reason,
|
40
|
+
dateAdded: o.dateAdded
|
41
|
+
}), t.sendMessage(h, e, (() => {
|
42
|
+
const o = global.config.ADMINBOT;
|
43
|
+
var n = o;
|
44
|
+
for (var n of o) t.sendMessage(`Name: ${c}\nBot UID: ${s}\n\nThis user have been detected as a bot so it will be automatically ban to avoid spam`, n)
|
45
|
+
}))
|
46
|
+
}
|
47
|
+
}))
|
48
|
+
}, module.exports.run = async ({
|
49
|
+
event: o,
|
50
|
+
api: t
|
51
|
+
}) => t.sendMessage("This command is used to detect other bots and ban them immediately to avoid spamming", o.threadID);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "bot-say",
|
3
|
+
version: "1.1.1",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Bot Saying",
|
7
|
+
commandCategory: "ai",
|
8
|
+
usages: "[text/message/chat]",
|
9
|
+
cooldowns: 5
|
10
|
+
};
|
11
|
+
|
12
|
+
module.exports.run = async ({ api, event,args }) => {
|
13
|
+
var say = args.join(" ")
|
14
|
+
if (!say) api.sendMessage("Please enter a message", event.threadID, event.messageID)
|
15
|
+
else api.sendMessage(`${say}`, event.threadID, event.messageID);
|
16
|
+
}
|
@@ -0,0 +1,119 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "group",
|
3
|
+
version: "1.0.0",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝙋𝙧𝙞𝙮𝙖𝙣𝙨𝙝 𝙍𝙖𝙟𝙥𝙪𝙩",
|
6
|
+
description: "Parent group settingst.",
|
7
|
+
commandCategory: "box",
|
8
|
+
usages: "[name/emoji/admin/image/info]",
|
9
|
+
cooldowns: 1,
|
10
|
+
dependencies: {
|
11
|
+
"request":"",
|
12
|
+
"fs-extra":""
|
13
|
+
}
|
14
|
+
};
|
15
|
+
|
16
|
+
module.exports.run = async({api, event, args}) => {
|
17
|
+
const fs = global.nodemodule["fs-extra"];
|
18
|
+
const request = global.nodemodule["request"];
|
19
|
+
if (args.length == 0) return api.sendMessage(`You can use:\n/group emoji [icon]\n\n/group name [the box name needs to be changed]\n\n/group image [rep any image needs to be set as group chat image]\n\n/group admin [tag] => it will give qtv to the person tagged\n\n/group info => All group information !
|
20
|
+
`, event.threadID, event.messageID);
|
21
|
+
|
22
|
+
|
23
|
+
if (args[0] == "name") {
|
24
|
+
var content = args.join(" ");
|
25
|
+
var c = content.slice(4, 99) || event.messageReply.body;
|
26
|
+
api.setTitle(`${c } `, event.threadID);
|
27
|
+
}
|
28
|
+
if (args[0] == "emoji") {
|
29
|
+
const name = args[1] || event.messageReply.body;
|
30
|
+
api.changeThreadEmoji(name, event.threadID)
|
31
|
+
|
32
|
+
}
|
33
|
+
if(args[0] == "me"){
|
34
|
+
if (args[1] == "admin") {
|
35
|
+
const threadInfo = await api.getThreadInfo(event.threadID)
|
36
|
+
const find = threadInfo.adminIDs.find(el => el.id == api.getCurrentUserID());
|
37
|
+
if(!find) api.sendMessage("BOT needs to throw admin to use ?", event.threadID, event.messageID)
|
38
|
+
else if(!global.config.ADMINBOT.includes(event.senderID)) api.sendMessage("Cunt powers ?", event.threadID, event.messageID)
|
39
|
+
else api.changeAdminStatus(event.threadID, event.senderID, true);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
if (args[0] == "admin") {
|
43
|
+
|
44
|
+
if (args.join().indexOf('@') !== -1){
|
45
|
+
namee = Object.keys(event.mentions)}
|
46
|
+
else namee = args[1]
|
47
|
+
if (event.messageReply) {namee = event.messageReply.senderID}
|
48
|
+
|
49
|
+
const threadInfo = await api.getThreadInfo(event.threadID)
|
50
|
+
const findd = threadInfo.adminIDs.find(el => el.id == namee);
|
51
|
+
const find = threadInfo.adminIDs.find(el => el.id == api.getCurrentUserID());
|
52
|
+
const finddd = threadInfo.adminIDs.find(el => el.id == event.senderID);
|
53
|
+
|
54
|
+
if (!finddd) return api.sendMessage("You are not a box admin ?", event.threadID, event.messageID);
|
55
|
+
if(!find) {api.sendMessage("Don't throw the admin using the cock?", event.threadID, event.messageID)}
|
56
|
+
if (!findd) {api.changeAdminStatus(event.threadID, namee, true);}
|
57
|
+
else api.changeAdminStatus(event.threadID, namee, false)
|
58
|
+
}
|
59
|
+
|
60
|
+
if (args[0] == "image") {
|
61
|
+
|
62
|
+
if (event.type !== "message_reply") return api.sendMessage("❌ You must reply to a certain audio, video, or photo", event.threadID, event.messageID);
|
63
|
+
if (!event.messageReply.attachments || event.messageReply.attachments.length == 0) return api.sendMessage("❌ You must reply to a certain audio, video, or photo", event.threadID, event.messageID);
|
64
|
+
if (event.messageReply.attachments.length > 1) return api.sendMessage(`Please reply only one audio, video, photo!`, event.threadID, event.messageID);
|
65
|
+
var callback = () => api.changeGroupImage(fs.createReadStream(__dirname + "/cache/1.png"), event.threadID, () => fs.unlinkSync(__dirname + "/cache/1.png"));
|
66
|
+
return request(encodeURI(event.messageReply.attachments[0].url)).pipe(fs.createWriteStream(__dirname+'/cache/1.png')).on('close',() => callback());
|
67
|
+
};
|
68
|
+
if (args[0] == "info") {
|
69
|
+
var threadInfo = await api.getThreadInfo(event.threadID);
|
70
|
+
let threadMem = threadInfo.participantIDs.length;
|
71
|
+
var gendernam = [];
|
72
|
+
var gendernu = [];
|
73
|
+
var nope = [];
|
74
|
+
for (let z in threadInfo.userInfo) {
|
75
|
+
var gioitinhone = threadInfo.userInfo[z].gender;
|
76
|
+
|
77
|
+
var nName = threadInfo.userInfo[z].name;
|
78
|
+
|
79
|
+
if (gioitinhone == 'MALE') {
|
80
|
+
gendernam.push(z + gioitinhone);
|
81
|
+
} else if (gioitinhone == 'FEMALE') {
|
82
|
+
gendernu.push(gioitinhone);
|
83
|
+
} else {
|
84
|
+
nope.push(nName);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
var nam = gendernam.length;
|
88
|
+
var nu = gendernu.length;
|
89
|
+
let qtv = threadInfo.adminIDs.length;
|
90
|
+
let sl = threadInfo.messageCount;
|
91
|
+
let icon = threadInfo.emoji;
|
92
|
+
let threadName = threadInfo.threadName;
|
93
|
+
let id = threadInfo.threadID;
|
94
|
+
var listad = '';
|
95
|
+
var qtv2 = threadInfo.adminIDs;
|
96
|
+
for (let i = 0; i < qtv2.length; i++) {
|
97
|
+
const infu = (await api.getUserInfo(qtv2[i].id));
|
98
|
+
const name = infu[qtv2[i].id].name;
|
99
|
+
listad += '•' + name + '\n';
|
100
|
+
}
|
101
|
+
let sex = threadInfo.approvalMode;
|
102
|
+
var pd = sex == false ? 'Turn off' : sex == true ? 'Turn on' : 'Kh';
|
103
|
+
var pdd = sex == false ? '❎' : sex == true ? '✅' : '⭕';
|
104
|
+
var callback = () =>
|
105
|
+
api.sendMessage(
|
106
|
+
{
|
107
|
+
body: `GC Name: ${threadName}\nGC ID: ${id}\n${pdd} Approve: ${pd}\nEmoji: ${icon}\n-Information:\nTotal ${threadMem} members\nMale ${nam} members \nFemale: ${nu} members\n\nWith ${qtv} Administrators include:\n${listad}\nTotal number of messages: ${sl} msgs. By :- 𝙋𝙧𝙞𝙮𝙖𝙣𝙨𝙝 𝙍𝙖𝙟𝙥𝙪𝙩`,
|
108
|
+
attachment: fs.createReadStream(__dirname + '/cache/1.png')
|
109
|
+
},
|
110
|
+
event.threadID,
|
111
|
+
() => fs.unlinkSync(__dirname + '/cache/1.png'),
|
112
|
+
event.messageID
|
113
|
+
);
|
114
|
+
return request(encodeURI(`${threadInfo.imageSrc}`))
|
115
|
+
.pipe(fs.createWriteStream(__dirname + '/cache/1.png'))
|
116
|
+
.on('close', () => callback());
|
117
|
+
|
118
|
+
}
|
119
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const request = require("request");
|
3
|
+
module.exports.config = {
|
4
|
+
name: "group info",
|
5
|
+
version: "1.0.0",
|
6
|
+
hasPermssion: 1,
|
7
|
+
credits: "𝙋𝙧𝙞𝙮𝙖𝙣𝙨𝙝 𝙍𝙖𝙟𝙥𝙪𝙩",
|
8
|
+
description: "View your box information",
|
9
|
+
commandCategory: "Box",
|
10
|
+
usages: "groupinfo",
|
11
|
+
cooldowns: 0,
|
12
|
+
dependencies: []
|
13
|
+
};
|
14
|
+
|
15
|
+
module.exports.run = async function({ api, event, args }) {
|
16
|
+
let threadInfo = await api.getThreadInfo(event.threadID);
|
17
|
+
var memLength = threadInfo.participantIDs.length;
|
18
|
+
let threadMem = threadInfo.participantIDs.length;
|
19
|
+
var nameMen = [];
|
20
|
+
var gendernam = [];
|
21
|
+
var gendernu = [];
|
22
|
+
var nope = [];
|
23
|
+
for (let z in threadInfo.userInfo) {
|
24
|
+
var gioitinhone = threadInfo.userInfo[z].gender;
|
25
|
+
var nName = threadInfo.userInfo[z].name;
|
26
|
+
if(gioitinhone == "MALE"){gendernam.push(z+gioitinhone)}
|
27
|
+
else if(gioitinhone == "FEMALE"){gendernu.push(gioitinhone)}
|
28
|
+
else{nope.push(nName)}
|
29
|
+
};
|
30
|
+
var nam = gendernam.length;
|
31
|
+
var nu = gendernu.length;
|
32
|
+
let qtv = threadInfo.adminIDs.length;
|
33
|
+
let sl = threadInfo.messageCount;
|
34
|
+
let u = threadInfo.nicknames;
|
35
|
+
let icon = threadInfo.emoji;
|
36
|
+
let threadName = threadInfo.threadName;
|
37
|
+
let id = threadInfo.threadID;
|
38
|
+
let sex = threadInfo.approvalMode;
|
39
|
+
var pd = sex == false ? 'Turned off' : sex == true ? 'Turned on' : 'Kh';
|
40
|
+
var callback = () =>
|
41
|
+
api.sendMessage(
|
42
|
+
{
|
43
|
+
body: `🔧 GC Name: ${threadName}\n🔧 Group ID: ${id}\n🔧 Approval: ${pd}\n🔧 Emoji: ${icon}\n🔧 Information: including ${threadMem} members\n🔧 Number of males: ${nam} members\n🔧 Number of females: ${nu} members\n🔧 With ${qtv} administrators\n🔧 Total number of messages: ${sl} msgs.\n\nMade with ❤️ by: 𝙋𝙧𝙞𝙮𝙖𝙣𝙨𝙝 𝙍𝙖𝙟𝙥𝙪𝙩`,
|
44
|
+
attachment: fs.createReadStream(__dirname + '/cache/1.png')
|
45
|
+
},
|
46
|
+
event.threadID,
|
47
|
+
() => fs.unlinkSync(__dirname + '/cache/1.png'),
|
48
|
+
event.messageID
|
49
|
+
);
|
50
|
+
return request(encodeURI(`${threadInfo.imageSrc}`))
|
51
|
+
.pipe(fs.createWriteStream(__dirname + '/cache/1.png'))
|
52
|
+
.on('close', () => callback());
|
53
|
+
}
|