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,330 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "fishing",
|
3
|
+
version: "1.0.1",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Where can you share your favorite group right now?",
|
7
|
+
commandCategory: "game",
|
8
|
+
usages: "help",
|
9
|
+
cooldowns: 0,
|
10
|
+
dependencies: {
|
11
|
+
"fs-extra": "",
|
12
|
+
"path": "",
|
13
|
+
"moment-timezone": "",
|
14
|
+
"semver": ""
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
module.exports.onLoad = async function () {
|
19
|
+
const _0x2308=['\x70\x61\x74\x68','\x64\x61\x74\x61','\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x20\x4b\x48','\x37\x34\x33\x37\x47\x59\x6a\x49\x47\x44','\x6d\x6f\x64\x75\x6c\x65\x73','\x46\x69\x73\x68\x69\x6e\x67\x44\x61\x74','\x31\x36\x38\x39\x35\x32\x37\x4e\x54\x73\x64\x55\x55','\x73\x65\x6d\x76\x65\x72','\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65','\x70\x61\x72\x73\x65','\x6e\x61\x6d\x65','\x20\x43\x48\x4f\x20\x53\x4f\x55\x52\x43','\x66\x73\x2d\x65\x78\x74\x72\x61','\x76\x65\x72\x73\x69\x6f\x6e','\x52\x4f\x44\x44\x41\x54\x41','\x61\x73\x73\x65\x74\x73','\x66\x69\x73\x68\x44\x61\x74\x61','\x72\x6f\x64\x44\x61\x74\x61','\x31\x35\x39\x31\x32\x32\x32\x46\x65\x73\x54\x76\x41','\x64\x69\x72\x44\x61\x74\x61','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\u00d4\x4e\x47\x20\x48\u1ed6\x20\x54\x52\u1ee2','\x46\x49\x53\x48\x44\x41\x54\x41','\x63\x6f\x6e\x66\x69\x67','\x31\x32\x33\x35\x36\x33\x32\x47\x71\x51\x76\x4d\x53','\x31\x31\x39\x34\x31\x32\x37\x68\x4b\x66\x59\x45\x48','\x31\x36\x37\x75\x43\x44\x71\x6c\x4c','\x63\x6f\x6e\x66\x69\x67\x4d\x6f\x64\x75','\x75\x74\x69\x6c\x73','\x31\x33\x30\x35\x31\x33\x37\x52\x52\x4a\x64\x6e\x5a','\x31\x2e\x32\x2e\x31\x30','\x3d\x3d\x3d\x3d\x3d\x3d\x3d','\x33\x36\x34\x36\x35\x32\x30\x75\x56\x49\x76\x4e\x73'];(function(_0x591223,_0x2a336c){function _0x11e237(_0x17743d,_0x2686cd){return _0x4338(_0x2686cd- -0x4c,_0x17743d);}while(!![]){try{const _0x12118e=-parseInt(_0x11e237(0x136,0x126))+parseInt(_0x11e237(0x122,0x11b))+-parseInt(_0x11e237(0x127,0x121))+-parseInt(_0x11e237(0x127,0x130))+parseInt(_0x11e237(0x11b,0x122))+-parseInt(_0x11e237(0x113,0x123))*parseInt(_0x11e237(0x11c,0x12d))+parseInt(_0x11e237(0x134,0x129));if(_0x12118e===_0x2a336c)break;else _0x591223['push'](_0x591223['shift']());}catch(_0x115a2f){_0x591223['push'](_0x591223['shift']());}}}(_0x2308,0x193752+-0x1942d+-0x8febb));const {mkdirSync,existsSync,readFileSync}=global[_0x26f4c3(0x492,0x49d)][_0x26f4c3(0x471,0x480)],{join}=global[_0x26f4c3(0x48c,0x49d)][_0x26f4c3(0x494,0x495)],semver=global['\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65'][_0x26f4c3(0x48d,0x49c)],dirmain=join(global['\x63\x6c\x69\x65\x6e\x74']['\x6d\x61\x69\x6e\x50\x61\x74\x68'],_0x26f4c3(0x48b,0x499),'\x63\x6f\x6d\x6d\x61\x6e\x64\x73','\x63\x61\x63\x68\x65',_0x26f4c3(0x48a,0x49a)+'\x61');if(semver['\x6c\x74'](global['\x63\x6f\x6e\x66\x69\x67'][_0x26f4c3(0x47d,0x481)],_0x26f4c3(0x488,0x492)))return console['\x6c\x6f\x67'](_0x26f4c3(0x48a,0x497)+_0x26f4c3(0x484,0x489)+_0x26f4c3(0x489,0x47f)+'\x45\x20\x43\x4f\x44\x45\x20\x43\u0168\x20'+_0x26f4c3(0x49c,0x493));if(!existsSync(dirmain))mkdirSync(dirmain);if(typeof global[_0x26f4c3(0x499,0x48f)+'\x6c\x65'][this['\x63\x6f\x6e\x66\x69\x67'][_0x26f4c3(0x4ac,0x49f)]]==_0x26f4c3(0x498,0x488))global['\x63\x6f\x6e\x66\x69\x67\x4d\x6f\x64\x75'+'\x6c\x65'][this[_0x26f4c3(0x47a,0x48b)][_0x26f4c3(0x4af,0x49f)]]={};function _0x26f4c3(_0x247b32,_0x4f5ae4){return _0x4338(_0x4f5ae4-0x31f,_0x247b32);}if(typeof global[_0x26f4c3(0x493,0x48f)+'\x6c\x65'][this[_0x26f4c3(0x49a,0x48b)]['\x6e\x61\x6d\x65']]['\x66\x69\x73\x68\x44\x61\x74\x61']==_0x26f4c3(0x47f,0x488))global['\x63\x6f\x6e\x66\x69\x67\x4d\x6f\x64\x75'+'\x6c\x65'][this[_0x26f4c3(0x48b,0x48b)][_0x26f4c3(0x48f,0x49f)]][_0x26f4c3(0x47d,0x484)]=[];if(typeof global[_0x26f4c3(0x495,0x48f)+'\x6c\x65'][this['\x63\x6f\x6e\x66\x69\x67'][_0x26f4c3(0x496,0x49f)]][_0x26f4c3(0x488,0x485)]==_0x26f4c3(0x485,0x488))global['\x63\x6f\x6e\x66\x69\x67\x4d\x6f\x64\x75'+'\x6c\x65'][this[_0x26f4c3(0x48b,0x48b)]['\x6e\x61\x6d\x65']][_0x26f4c3(0x480,0x485)]=[];global[_0x26f4c3(0x48d,0x48f)+'\x6c\x65'][this[_0x26f4c3(0x48f,0x48b)][_0x26f4c3(0x490,0x49f)]][_0x26f4c3(0x48f,0x487)]=dirmain||null;if(global[_0x26f4c3(0x480,0x48f)+'\x6c\x65'][this[_0x26f4c3(0x483,0x48b)][_0x26f4c3(0x4a8,0x49f)]][_0x26f4c3(0x481,0x484)]['\x6c\x65\x6e\x67\x74\x68']==-0x1*-0x24+-0x16b*-0x2+-0x2fa){const fishData=JSON['\x70\x61\x72\x73\x65'](readFileSync(await global[_0x26f4c3(0x48e,0x490)][_0x26f4c3(0x48a,0x483)]['\x64\x61\x74\x61'](_0x26f4c3(0x489,0x48a))));for(const singleData of fishData)await global[_0x26f4c3(0x497,0x48f)+'\x6c\x65'][this['\x63\x6f\x6e\x66\x69\x67'][_0x26f4c3(0x4ac,0x49f)]][_0x26f4c3(0x47c,0x484)]['\x70\x75\x73\x68'](singleData);}if(global[_0x26f4c3(0x484,0x48f)+'\x6c\x65'][this[_0x26f4c3(0x496,0x48b)][_0x26f4c3(0x49f,0x49f)]][_0x26f4c3(0x481,0x485)]['\x6c\x65\x6e\x67\x74\x68']==0xdfd+0x73c+-0x1539){const rodData=JSON[_0x26f4c3(0x491,0x49e)](readFileSync(await global[_0x26f4c3(0x489,0x490)]['\x61\x73\x73\x65\x74\x73'][_0x26f4c3(0x48c,0x496)](_0x26f4c3(0x489,0x482))));for(const singleData of rodData)await global[_0x26f4c3(0x49b,0x48f)+'\x6c\x65'][this['\x63\x6f\x6e\x66\x69\x67'][_0x26f4c3(0x4a0,0x49f)]][_0x26f4c3(0x494,0x485)]['\x70\x75\x73\x68'](singleData);}function _0x4338(_0x275237,_0x44db97){return _0x4338=function(_0x63942f,_0x10f388){_0x63942f=_0x63942f-(-0xc94+-0x543*-0x5+-0xc5b);let _0x2fdcaa=_0x2308[_0x63942f];return _0x2fdcaa;},_0x4338(_0x275237,_0x44db97);}return;
|
20
|
+
}
|
21
|
+
|
22
|
+
module.exports.makeEmptySlot = function () {
|
23
|
+
var fishingSlot = [];
|
24
|
+
for (i = 0; i <9; i++) fishingSlot.push({
|
25
|
+
name: "Empty",
|
26
|
+
size: 0.0,
|
27
|
+
price: 0
|
28
|
+
})
|
29
|
+
return fishingSlot;
|
30
|
+
}
|
31
|
+
|
32
|
+
module.exports.getRarity = function () {
|
33
|
+
return this.getRarityRecursion(Math.floor(Math.random() * Math.floor(100)), -1, 0)
|
34
|
+
}
|
35
|
+
|
36
|
+
module.exports.getFish = function (fishRarity, currentHour) {
|
37
|
+
return global.configModule[this.config.name].fishData.filter(fish => fish.time.includes(currentHour) && fish.rarity.includes(fishRarity));
|
38
|
+
}
|
39
|
+
|
40
|
+
module.exports.addToInventory = (dataUser, critter) => {
|
41
|
+
try {
|
42
|
+
if (dataUser.inventory[dataUser.inventory.length - 1].price != 0 || typeof dataUser.inventory[dataUser.inventory.length - 1].price == "undefined") throw "[ Fishing ] Túi của bạn không còn đủ không gian lưu trữ";
|
43
|
+
else {
|
44
|
+
for (i = 0; i < dataUser.inventory.length; i++) {
|
45
|
+
if (dataUser.inventory[i].price == 0) {
|
46
|
+
dataUser.inventory[i] = critter;
|
47
|
+
i = dataUser.inventory.length;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
return [null, dataUser.inventory];
|
52
|
+
}
|
53
|
+
catch (error) { return [error, null] }
|
54
|
+
}
|
55
|
+
|
56
|
+
module.exports.getRarityRecursion = function (chance, index, number) {
|
57
|
+
const catchChance = {
|
58
|
+
'Very Common': 46,
|
59
|
+
'Common': 30,
|
60
|
+
'Uncommon': 20,
|
61
|
+
'Rare': 5,
|
62
|
+
'Very Rare': 1
|
63
|
+
}
|
64
|
+
const rarityList = [
|
65
|
+
'Very Common',
|
66
|
+
'Common',
|
67
|
+
'Uncommon',
|
68
|
+
'Rare',
|
69
|
+
'Very Rare'
|
70
|
+
]
|
71
|
+
|
72
|
+
if (index === 0 && chance <= catchChance[rarityList[0]]) return rarityList[0]
|
73
|
+
else if (index >= rarityList.length - 1 && chance >= catchChance[rarityList[rarityList.length - 1]]) return rarityList[rarityList.length - 1]
|
74
|
+
else if (chance > number && chance <= (number + catchChance[rarityList[index + 1]])) return rarityList[index + 1];
|
75
|
+
else return this.getRarityRecursion(chance, index + 1, (number + catchChance[rarityList[index + 1]]));
|
76
|
+
}
|
77
|
+
|
78
|
+
module.exports.handleReply = async function ({ event, api, Currencies, handleReply }) {
|
79
|
+
if (String(event.senderID) !== String(handleReply.author)) return;
|
80
|
+
const { readFileSync, writeFileSync } = global.nodemodule["fs-extra"];
|
81
|
+
const { increaseMoney, decreaseMoney } = Currencies;
|
82
|
+
const { body, threadID, messageID, senderID } = event;
|
83
|
+
const { type, dirUser } = handleReply;
|
84
|
+
|
85
|
+
switch (type) {
|
86
|
+
case "menushop": {
|
87
|
+
if (isNaN(body)) return api.sendMessage("[ Fishing Shop ] Lựa chọn của bạn không phải là một con số!", threadID, messageID);
|
88
|
+
if (body > 4 || body < 1) return api.sendMessage("[ Fishing Shop ] Lựa chọn của bạn không tồn tại!", threadID, messageID);
|
89
|
+
switch (body) {
|
90
|
+
case "1": {
|
91
|
+
var listItems = [], i = 1;
|
92
|
+
for (const item of global.configModule[this.config.name].rodData) listItems.push(`❯ ${i++}/ ${item.name}: ${item.cost}$ - Độ bền: ${item.durability}, thời gian chờ: ${item.cooldown} giây(s)`);
|
93
|
+
return api.sendMessage(`「 Fishing Buy 」\nHãy reply(Phản hồi) tin nhắn này số bạn chọn\n\n${listItems.join("\n")}`, event.threadID, (error, info) => {
|
94
|
+
client.handleReply.push({
|
95
|
+
name: this.config.name,
|
96
|
+
messageID: info.messageID,
|
97
|
+
author: event.senderID,
|
98
|
+
type: "buymenu",
|
99
|
+
dirUser
|
100
|
+
});
|
101
|
+
}, event.messageID);
|
102
|
+
}
|
103
|
+
|
104
|
+
case "2": {
|
105
|
+
return api.sendMessage("「 Fishing Buy 」\nHãy reply(Phản hồi) tin nhắn này số bạn chọn\n\n❯ 1/ Bán toàn bộ.\n❯ 2/ Bán cá loại 'Rare'.\n❯ 3/ Bán cá loại 'Common'\n❯ 4/ Bán cá loại 'Uncommon'\n❯ 5/ Bán cá loại 'Very common'\n❯ 6/ Bán cá loại 'Very Rare'", threadID, (error, info) => {
|
106
|
+
client.handleReply.push({
|
107
|
+
name: this.config.name,
|
108
|
+
messageID: info.messageID,
|
109
|
+
author: senderID,
|
110
|
+
type: "sellmenu",
|
111
|
+
dirUser
|
112
|
+
});
|
113
|
+
}, messageID);
|
114
|
+
}
|
115
|
+
|
116
|
+
case "3": {
|
117
|
+
return api.sendMessage("「 Fishing Upgrade 」\nHãy reply(Phản hồi) tin nhắn này số bạn chọn\n\n❯ 1/ Upgrade inventory - Nâng cấp túi đồ\n❯ 2/ Fix fishing rod - Sửa chữa cần câu của bạn",threadID, (error, info) => {
|
118
|
+
client.handleReply.push({
|
119
|
+
name: this.config.name,
|
120
|
+
messageID: info.messageID,
|
121
|
+
author: event.senderID,
|
122
|
+
type: "upgrademenu",
|
123
|
+
dirUser
|
124
|
+
});
|
125
|
+
}, messageID);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
case "buymenu": {
|
131
|
+
try {
|
132
|
+
if (isNaN(body)) return api.sendMessage("[ Fishing Buy ] Lựa chọn của bạn không phải là một con số!", threadID, messageID);
|
133
|
+
const dataItems = global.configModule[this.config.name].rodData
|
134
|
+
if (body > dataItems.length || body < 1) return api.sendMessage("[ Fishing Buy ] Lựa chọn của bạn không tồn tại!", threadID, messageID);
|
135
|
+
var dataUser = JSON.parse(readFileSync(dirUser, "utf-8"));
|
136
|
+
let userMoney = (await Currencies.getData(senderID)).money;
|
137
|
+
const itemUserChoose = dataItems[parseInt(body) - 1];
|
138
|
+
if (userMoney < itemUserChoose.cost) return api.sendMessage(`[ Fishing Buy ] Bạn không đủ tiền để có thể mua cần câu mà bạn đã chọn, bạn còn thiếu khoảng ${itemUserChoose.cost - userMoney}$`, threadID, messageID);
|
139
|
+
dataUser.fishingrod.rodType = itemUserChoose.rodType;
|
140
|
+
dataUser.fishingrod.rodName = itemUserChoose.name;
|
141
|
+
dataUser.fishingrod.cooldownTime = itemUserChoose.cooldown;
|
142
|
+
dataUser.fishingrod.durability = dataUser.fishingrod.durabilityDefault = itemUserChoose.durability;
|
143
|
+
dataUser.fishingrod.moneyFix = Math.floor(Math.random() * (itemUserChoose.moneyFix[1] - itemUserChoose.moneyFix[0] + 1) + itemUserChoose.moneyFix[0]);
|
144
|
+
dataUser.fishingrod.rateBroken = itemUserChoose.rateBroken;
|
145
|
+
await decreaseMoney(senderID, itemUserChoose.cost);
|
146
|
+
writeFileSync(dirUser, JSON.stringify(dataUser, null, 4), "utf-8");
|
147
|
+
return api.sendMessage(`[ Fishing Buy ] Bạn đã mua thành công "${itemUserChoose.name}" với giá ${itemUserChoose.cost}$`, threadID, messageID);
|
148
|
+
} catch (error) { console.log(error); return api.sendMessage("[ Fishing Buy ] Đã xảy ra lỗi không mong muốn khi bạn đang giao dịch!", threadID, messageID) }
|
149
|
+
}
|
150
|
+
|
151
|
+
case "sellmenu": {
|
152
|
+
if (isNaN(body)) return api.sendMessage("[ Fishing Sell ] Lựa chọn của bạn không phải là một con số!", threadID, messageID);
|
153
|
+
if (body > 6 || body < 1) return api.sendMessage("[ Fishing Sell ] Lựa chọn của bạn không tồn tại!", threadID, messageID);
|
154
|
+
switch (body) {
|
155
|
+
case "1": {
|
156
|
+
try {
|
157
|
+
var dataUser = JSON.parse(readFileSync(dirUser, "utf-8")), index = 0, totalAll = 0;
|
158
|
+
for (item of dataUser.inventory) {
|
159
|
+
totalAll += item.price;
|
160
|
+
dataUser.inventory[index++] = {
|
161
|
+
name: "Empty",
|
162
|
+
size: 0.0,
|
163
|
+
price: 0
|
164
|
+
};
|
165
|
+
}
|
166
|
+
await increaseMoney(senderID, totalAll);
|
167
|
+
writeFileSync(dirUser, JSON.stringify(dataUser, null, 4), "utf-8");
|
168
|
+
return api.sendMessage(`[ Fishing Sell ] Bạn đã bán thành công toàn bộ cá trong túi và thu về được ${totalAll}$`, threadID, messageID);
|
169
|
+
} catch (error) { console.log(error); return api.sendMessage("[ Fishing Sell ] Đã xảy ra lỗi không mong muốn khi bạn đang giao dịch!", threadID, messageID) }
|
170
|
+
}
|
171
|
+
|
172
|
+
case "2": {
|
173
|
+
return api.sendMessage("WIP", threadID, messageID);
|
174
|
+
}
|
175
|
+
|
176
|
+
case "3": {
|
177
|
+
return api.sendMessage("WIP", threadID, messageID);
|
178
|
+
}
|
179
|
+
|
180
|
+
case "4": {
|
181
|
+
return api.sendMessage("WIP", threadID, messageID);
|
182
|
+
}
|
183
|
+
|
184
|
+
case "5": {
|
185
|
+
return api.sendMessage("WIP", threadID, messageID);
|
186
|
+
}
|
187
|
+
|
188
|
+
case "6": {
|
189
|
+
return api.sendMessage("WIP", threadID, messageID);
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
case "upgrademenu": {
|
195
|
+
if (isNaN(body)) return api.sendMessage("[ Fishing Sell ] Lựa chọn của bạn không phải là một con số!", threadID, messageID);
|
196
|
+
if (body > 2 || body < 1) return api.sendMessage("[ Fishing Sell ] Lựa chọn của bạn không tồn tại!", threadID, messageID);
|
197
|
+
switch (body) {
|
198
|
+
case "1": {
|
199
|
+
const dataUser = JSON.parse(readFileSync(dirUser, "utf-8"));
|
200
|
+
return api.sendMessage(`[ Fishing Upgrage ] Hiện tại bạn đang có ${dataUser.inventory.length + 1} vị trí có thể chứa đồ\nĐể mua thêm vị trí chứa đồ, bạn hãy reply(phản hồi) tin nhắn này số lượng vị trí bạn muốn mua!`, threadID, (error, info) => {
|
201
|
+
client.handleReply.push({
|
202
|
+
name: this.config.name,
|
203
|
+
messageID: info.messageID,
|
204
|
+
author: senderID,
|
205
|
+
type: "upgradestorage",
|
206
|
+
dirUser
|
207
|
+
});
|
208
|
+
}, messageID);
|
209
|
+
}
|
210
|
+
|
211
|
+
case "2": {
|
212
|
+
try {
|
213
|
+
var dataUser = JSON.parse(readFileSync(dirUser, "utf-8"));
|
214
|
+
let userMoney = (await Currencies.getData(event.senderID)).money;
|
215
|
+
if (dataUser.fishingrod.durability > dataUser.fishingrod.durabilityDefault / 2) return api.sendMessage("[ Fishing Upgrade ] Cần câu của bạn hiện tại vẫn chưa cần sửa chữa", threadID, messageID);
|
216
|
+
if (userMoney < dataUser.fishingrod.moneyFix) return api.sendMessage(`[ Fishing Upgrade ] Bạn không đủ tiền để có thể sửa chữa cần câu của bạn, bạn còn thiếu khoảng ${moneyOfUpgrade - userMoney}$`, threadID, messageID);
|
217
|
+
dataUser.fishingrod.durability = dataUser.fishingrod.durabilityDefault;
|
218
|
+
await decreaseMoney(senderID, dataUser.fishingrod.moneyFix);
|
219
|
+
writeFileSync(dirUser, JSON.stringify(dataUser, null, 4), "utf-8");
|
220
|
+
return api.sendMessage(`[ Fishing Upgrade ] Bạn đã sửa chữa thành công cần câu với giá ${dataUser.fishingrod.moneyFix}$`, threadID, messageID);
|
221
|
+
} catch (error) { console.log(error); return api.sendMessage("[ Fishing Upgrade ] Đã xảy ra lỗi không mong muốn khi bạn đang giao dịch!", threadID, messageID) }
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
case "upgradestorage": {
|
227
|
+
try {
|
228
|
+
if (isNaN(body)) return api.sendMessage("[ Fishing Upgrade ] Lựa chọn của bạn không phải là một con số!", threadID, messageID);
|
229
|
+
if (body < 0) return api.sendMessage("[ Fishing Upgrade ] Lựa chọn của bạn không phải là số âm!", threadID, messageID);
|
230
|
+
var dataUser = JSON.parse(readFileSync(dirUser, "utf-8"));
|
231
|
+
let userMoney = (await Currencies.getData(senderID)).money;
|
232
|
+
const moneyOfUpgrade = parseInt(body) * 2000;
|
233
|
+
if (userMoney < moneyOfUpgrade) return api.sendMessage(`[ Fishing Upgrade ] Bạn không đủ tiền để có thể mua thêm vị trí chứa đồ, bạn còn thiếu khoảng ${moneyOfUpgrade - userMoney}$`, threadID, messageID);
|
234
|
+
for (var i = 0; i < parseInt(body) - 1; i++) dataUser.inventory.push({
|
235
|
+
name: "Empty",
|
236
|
+
size: 0.0,
|
237
|
+
price: 0,
|
238
|
+
});
|
239
|
+
await decreaseMoney(senderID, moneyOfUpgrade);
|
240
|
+
writeFileSync(dirUser, JSON.stringify(dataUser, null, 4), "utf-8");
|
241
|
+
return api.sendMessage(`[ Fishing Upgrade ] Bạn đã mua thành công ${body} vị trí với giá ${moneyOfUpgrade}$!`, threadID, messageID);
|
242
|
+
} catch (error) { console.log(error); return api.sendMessage("[ Fishing Upgrade ] Đã xảy ra lỗi không mong muốn khi bạn đang giao dịch!", threadID, messageID) }
|
243
|
+
}
|
244
|
+
|
245
|
+
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
module.exports.run = async function ({ event, api, args }) {
|
250
|
+
const { readFileSync, writeFileSync, existsSync } = global.nodemodule["fs-extra"];
|
251
|
+
const { join } = global.nodemodule["path"];
|
252
|
+
const moment = global.nodemodule["moment-timezone"];
|
253
|
+
const { threadID, messageID, senderID } = event;
|
254
|
+
const dirUser = join(global.configModule[this.config.name].dirData, `${senderID}.json`);
|
255
|
+
|
256
|
+
switch ((args[0] || "").toLowerCase()) {
|
257
|
+
case "register":
|
258
|
+
case "-r": {
|
259
|
+
try {
|
260
|
+
if (existsSync(dirUser)) return api.sendMessage("[ Fishing ] Bạn đã từng đăng ký câu cá tại khu vực này!", threadID, messageID);
|
261
|
+
var newData = {};
|
262
|
+
newData.fishingrod = {
|
263
|
+
"rodType": 0,
|
264
|
+
"enchantRod": {}
|
265
|
+
};
|
266
|
+
newData.inventory = this.makeEmptySlot();
|
267
|
+
newData.totalCatch = newData.totalMoney = newData.point = newData.lastTimeFishing = 0;
|
268
|
+
writeFileSync(dirUser, JSON.stringify(newData, null, 4), "utf-8");
|
269
|
+
return api.sendMessage("[ Fishing Register ] Bạn đã đăng ký câu cá thành công!", threadID, messageID);
|
270
|
+
} catch { return api.sendMessage("[ Fishing Register ] Đã có xảy ra lỗi không mong muốn!", threadID, messageID) }
|
271
|
+
}
|
272
|
+
|
273
|
+
case "shop": {
|
274
|
+
if (!existsSync(dirUser)) return api.sendMessage("[ Fishing Shop ] Bạn chưa đăng ký câu cá để có thể sử dụng chức năng mua đồ!", threadID, messageID);
|
275
|
+
return api.sendMessage("「 Fishing Shop 」\nHãy reply(Phản hồi) tin nhắn này số bạn chọn\n\n❯ 1/ Buy - Mua vật phẩm.\n❯ 2/ Sell - Bán vật phẩm câu được.\n❯ 3/ Upgrade - Nâng cấp vật phẩm.\n❯ 4/ Enchant - Phù phép vật phẩm.", threadID, (error, info) => {
|
276
|
+
global.client.handleReply.push({
|
277
|
+
name: this.config.name,
|
278
|
+
messageID: info.messageID,
|
279
|
+
author: event.senderID,
|
280
|
+
type: "menushop",
|
281
|
+
dirUser
|
282
|
+
})
|
283
|
+
}, messageID);
|
284
|
+
}
|
285
|
+
|
286
|
+
case "inventory":
|
287
|
+
case "inv": {
|
288
|
+
if (!existsSync(dirUser)) return api.sendMessage("[ Fishing ] Bạn chưa đăng ký câu cá để có thể sử dụng chức năng mua đồ!", threadID, messageID);
|
289
|
+
return api.sendMessage("「 Fishing Shop 」\nHãy reply(Phản hồi) tin nhắn này số bạn chọn\n\n❯ 1/ Xem thông số cần câu\n❯ 2/ Xem túi đồ", threadID, (error, info) => {
|
290
|
+
global.client.handleReply.push({
|
291
|
+
name: this.config.name,
|
292
|
+
messageID: info.messageID,
|
293
|
+
author: event.senderID,
|
294
|
+
type: "inventorymenu",
|
295
|
+
dirUser
|
296
|
+
})
|
297
|
+
}, messageID);
|
298
|
+
}
|
299
|
+
|
300
|
+
default: {
|
301
|
+
try {
|
302
|
+
if (!existsSync(dirUser)) return api.sendMessage(`[ Fishing ] Bạn chưa đăng ký câu cá tại khu vực này! Hãy đăng kí bằng cách nhấn "/fishing register" để tham đăng kí câu cá 🥳`, threadID, messageID);
|
303
|
+
var dataUser = JSON.parse(readFileSync(dirUser, "utf-8"));
|
304
|
+
const dateNow = moment().tz("Asia/Ho_Chi_minh");
|
305
|
+
const format = new Intl.NumberFormat();
|
306
|
+
if (dataUser.fishingrod.rodType == 0) return api.sendMessage("[ Fishing ] Hiện tại bạn chưa có cần câu, hãy mua cần câu mới và thử lại!", threadID, messageID);
|
307
|
+
if (dataUser.fishingrod.durability <= 0) return api.sendMessage("[ Fishing ] Cần câu của bạn đã bị gãy từ trước, hãy sửa chữa lại hoặc mua mới để có thể tiếp tục câu cá", threadID, messageID);
|
308
|
+
if (Math.floor((dataUser.fishingrod.cooldownTime) - (dateNow.unix() - dataUser.lastTimeFishing)) > 0) return api.sendMessage("[ Fishing ] Hiện tại bạn đang trong thời gian chờ, vui lòng đợi một chút và sau đó thử lại", threadID, messageID);
|
309
|
+
|
310
|
+
const fishRarity = this .getRarity();
|
311
|
+
const currentHour = dateNow.hours();
|
312
|
+
const fishData = await this.getFish(fishRarity, currentHour);
|
313
|
+
if (!fishData) return api.sendMessage("[ Fishing ] Hiện tại trong hồ không có cá để câu", threadID, messageID);
|
314
|
+
|
315
|
+
var caught = fishData[Math.floor(Math.random() * ((fishData.length - 1) - 0 + 1)) + 0];
|
316
|
+
caught.size = (typeof caught.size != "array") ? caught.size : (Math.random() * (caught.size[1] - caught.size[0]) + caught.size[0]).toFixed(1);
|
317
|
+
dataUser.fishingrod.durability = dataUser.fishingrod.durability - Math.floor(Math.random() * (dataUser.fishingrod.rateBroken[1] - dataUser.fishingrod.rateBroken[0] + 1) + dataUser.fishingrod.rateBroken[0]);
|
318
|
+
dataUser.lastTimeFishing = dateNow.unix();
|
319
|
+
dataUser.totalCatch += 1;
|
320
|
+
dataUser.point += caught.price;
|
321
|
+
const [error, inventory] = this.addToInventory(dataUser, caught);
|
322
|
+
if (error) return api.sendMessage(error, threadID, messageID);
|
323
|
+
dataUser.inventory = inventory;
|
324
|
+
writeFileSync(dirUser, JSON.stringify(dataUser, null, 4), "utf-8");
|
325
|
+
|
326
|
+
return api.sendMessage(`=== Bạn đã bắt được một con: ${caught.name} ===\n\n❯ Kích thước: ${caught.size} cm\n❯ Độ hiếm: ${caught.rarity}\n❯ Số tiền kiếm được: ${format.format(caught.price)}$`, threadID, messageID);
|
327
|
+
} catch (error) { console.log(error); return api.sendMessage("[ Fishing ] Đã có lỗi xảy ra không mong muốn\n'Tau quên dọn hồ nên cá chết hết rồi bây' ", threadID, messageID) }
|
328
|
+
}
|
329
|
+
}
|
330
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "fuck",
|
3
|
+
version: "2.0.0",
|
4
|
+
hasPermssion: 2,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Get fuck",
|
7
|
+
commandCategory: "nsfw",
|
8
|
+
usages: "[@mention]",
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"axios": "",
|
12
|
+
"fs-extra": "",
|
13
|
+
"path": "",
|
14
|
+
"jimp": ""
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
module.exports.onLoad = async() => {
|
19
|
+
const { resolve } = global.nodemodule["path"];
|
20
|
+
const { existsSync, mkdirSync } = global.nodemodule["fs-extra"];
|
21
|
+
const { downloadFile } = global.utils;
|
22
|
+
const dirMaterial = __dirname + `/cache/canvas/`;
|
23
|
+
const path = resolve(__dirname, 'cache/canvas', 'fuck.png');
|
24
|
+
if (!existsSync(dirMaterial + "canvas")) mkdirSync(dirMaterial, { recursive: true });
|
25
|
+
if (!existsSync(path)) await downloadFile("https://i.imgur.com/my71Hjk.png", path);
|
26
|
+
}
|
27
|
+
|
28
|
+
async function makeImage({ one, two }) {
|
29
|
+
const fs = global.nodemodule["fs-extra"];
|
30
|
+
const path = global.nodemodule["path"];
|
31
|
+
const axios = global.nodemodule["axios"];
|
32
|
+
const jimp = global.nodemodule["jimp"];
|
33
|
+
const __root = path.resolve(__dirname, "cache", "canvas");
|
34
|
+
|
35
|
+
let batgiam_img = await jimp.read(__root + "/fuck.png");
|
36
|
+
let pathImg = __root + `/batman${one}_${two}.png`;
|
37
|
+
let avatarOne = __root + `/avt_${one}.png`;
|
38
|
+
let avatarTwo = __root + `/avt_${two}.png`;
|
39
|
+
|
40
|
+
let getAvatarOne = (await axios.get(`https://graph.facebook.com/${one}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
41
|
+
fs.writeFileSync(avatarOne, Buffer.from(getAvatarOne, 'utf-8'));
|
42
|
+
|
43
|
+
let getAvatarTwo = (await axios.get(`https://graph.facebook.com/${two}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
44
|
+
fs.writeFileSync(avatarTwo, Buffer.from(getAvatarTwo, 'utf-8'));
|
45
|
+
|
46
|
+
let circleOne = await jimp.read(await circle(avatarOne));
|
47
|
+
let circleTwo = await jimp.read(await circle(avatarTwo));
|
48
|
+
batgiam_img.composite(circleOne.resize(150, 150), 250, 100).composite(circleTwo.resize(150, 150), 680, 40);
|
49
|
+
|
50
|
+
let raw = await batgiam_img.getBufferAsync("image/png");
|
51
|
+
|
52
|
+
fs.writeFileSync(pathImg, raw);
|
53
|
+
fs.unlinkSync(avatarOne);
|
54
|
+
fs.unlinkSync(avatarTwo);
|
55
|
+
|
56
|
+
return pathImg;
|
57
|
+
}
|
58
|
+
async function circle(image) {
|
59
|
+
const jimp = require("jimp");
|
60
|
+
image = await jimp.read(image);
|
61
|
+
image.circle();
|
62
|
+
return await image.getBufferAsync("image/png");
|
63
|
+
}
|
64
|
+
|
65
|
+
module.exports.run = async function ({ event, api, args }) {
|
66
|
+
const fs = global.nodemodule["fs-extra"];
|
67
|
+
const { threadID, messageID, senderID } = event;
|
68
|
+
const mention = Object.keys(event.mentions);
|
69
|
+
if (!mention[0]) return api.sendMessage("Please mention 1 person.", threadID, messageID);
|
70
|
+
else {
|
71
|
+
const one = senderID, two = mention[0];
|
72
|
+
return makeImage({ one, two }).then(path => api.sendMessage({ body: "ughhh🥵", attachment: fs.createReadStream(path) }, threadID, () => fs.unlinkSync(path), messageID));
|
73
|
+
}
|
74
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "fuck2",
|
3
|
+
version: "2.0.0",
|
4
|
+
hasPermssion: 2,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Get fuck",
|
7
|
+
commandCategory: "nsfw",
|
8
|
+
usages: "[@mention]",
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"axios": "",
|
12
|
+
"fs-extra": "",
|
13
|
+
"path": "",
|
14
|
+
"jimp": ""
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
module.exports.onLoad = async() => {
|
19
|
+
const { resolve } = global.nodemodule["path"];
|
20
|
+
const { existsSync, mkdirSync } = global.nodemodule["fs-extra"];
|
21
|
+
const { downloadFile } = global.utils;
|
22
|
+
const dirMaterial = __dirname + `/cache/canvas/`;
|
23
|
+
const path = resolve(__dirname, 'cache/canvas', 'choigay.png');
|
24
|
+
if (!existsSync(dirMaterial + "canvas")) mkdirSync(dirMaterial, { recursive: true });
|
25
|
+
if (!existsSync(path)) await downloadFile("https://i.imgur.com/A7T04KJ.jpg", path);
|
26
|
+
}
|
27
|
+
|
28
|
+
async function makeImage({ one, two }) {
|
29
|
+
const fs = global.nodemodule["fs-extra"];
|
30
|
+
const path = global.nodemodule["path"];
|
31
|
+
const axios = global.nodemodule["axios"];
|
32
|
+
const jimp = global.nodemodule["jimp"];
|
33
|
+
const __root = path.resolve(__dirname, "cache", "canvas");
|
34
|
+
|
35
|
+
let batgiam_img = await jimp.read(__root + "/choigay.png");
|
36
|
+
let pathImg = __root + `/batman${one}_${two}.png`;
|
37
|
+
let avatarOne = __root + `/avt_${one}.png`;
|
38
|
+
let avatarTwo = __root + `/avt_${two}.png`;
|
39
|
+
|
40
|
+
let getAvatarOne = (await axios.get(`https://graph.facebook.com/${one}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
41
|
+
fs.writeFileSync(avatarOne, Buffer.from(getAvatarOne, 'utf-8'));
|
42
|
+
|
43
|
+
let getAvatarTwo = (await axios.get(`https://graph.facebook.com/${two}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
44
|
+
fs.writeFileSync(avatarTwo, Buffer.from(getAvatarTwo, 'utf-8'));
|
45
|
+
|
46
|
+
let circleOne = await jimp.read(await circle(avatarOne));
|
47
|
+
let circleTwo = await jimp.read(await circle(avatarTwo));
|
48
|
+
batgiam_img.composite(circleOne.resize(150, 150), 52, 164).composite(circleTwo.resize(150, 150), 380, 190);
|
49
|
+
|
50
|
+
let raw = await batgiam_img.getBufferAsync("image/png");
|
51
|
+
|
52
|
+
fs.writeFileSync(pathImg, raw);
|
53
|
+
fs.unlinkSync(avatarOne);
|
54
|
+
fs.unlinkSync(avatarTwo);
|
55
|
+
|
56
|
+
return pathImg;
|
57
|
+
}
|
58
|
+
async function circle(image) {
|
59
|
+
const jimp = require("jimp");
|
60
|
+
image = await jimp.read(image);
|
61
|
+
image.circle();
|
62
|
+
return await image.getBufferAsync("image/png");
|
63
|
+
}
|
64
|
+
|
65
|
+
module.exports.run = async function ({ event, api, args }) {
|
66
|
+
const fs = global.nodemodule["fs-extra"];
|
67
|
+
const { threadID, messageID, senderID } = event;
|
68
|
+
const mention = Object.keys(event.mentions);
|
69
|
+
if (!mention[0]) return api.sendMessage("Please mention 1 person.", threadID, messageID);
|
70
|
+
else {
|
71
|
+
const one = senderID, two = mention[0];
|
72
|
+
return makeImage({ one, two }).then(path => api.sendMessage({ body: "ughhh🥵", attachment: fs.createReadStream(path) }, threadID, () => fs.unlinkSync(path), messageID));
|
73
|
+
}
|
74
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "fuck3",
|
3
|
+
version: "2.0.0",
|
4
|
+
hasPermssion: 2,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Get fuck",
|
7
|
+
commandCategory: "nsfw",
|
8
|
+
usages: "[@mention]",
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"axios": "",
|
12
|
+
"fs-extra": "",
|
13
|
+
"path": "",
|
14
|
+
"jimp": ""
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
module.exports.onLoad = async() => {
|
19
|
+
const { resolve } = global.nodemodule["path"];
|
20
|
+
const { existsSync, mkdirSync } = global.nodemodule["fs-extra"];
|
21
|
+
const { downloadFile } = global.utils;
|
22
|
+
const dirMaterial = __dirname + `/cache/canvas/`;
|
23
|
+
const path = resolve(__dirname, 'cache/canvas', 'fuckv2.png');
|
24
|
+
if (!existsSync(dirMaterial + "canvas")) mkdirSync(dirMaterial, { recursive: true });
|
25
|
+
if (!existsSync(path)) await downloadFile("https://i.imgur.com/A7T04KJ.jpg", path);
|
26
|
+
}
|
27
|
+
|
28
|
+
async function makeImage({ one, two }) {
|
29
|
+
const fs = global.nodemodule["fs-extra"];
|
30
|
+
const path = global.nodemodule["path"];
|
31
|
+
const axios = global.nodemodule["axios"];
|
32
|
+
const jimp = global.nodemodule["jimp"];
|
33
|
+
const __root = path.resolve(__dirname, "cache", "canvas");
|
34
|
+
|
35
|
+
let batgiam_img = await jimp.read(__root + "/fuckv2.png");
|
36
|
+
let pathImg = __root + `/batman${one}_${two}.png`;
|
37
|
+
let avatarOne = __root + `/avt_${one}.png`;
|
38
|
+
let avatarTwo = __root + `/avt_${two}.png`;
|
39
|
+
|
40
|
+
let getAvatarOne = (await axios.get(`https://graph.facebook.com/${one}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
41
|
+
fs.writeFileSync(avatarOne, Buffer.from(getAvatarOne, 'utf-8'));
|
42
|
+
|
43
|
+
let getAvatarTwo = (await axios.get(`https://graph.facebook.com/${two}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
44
|
+
fs.writeFileSync(avatarTwo, Buffer.from(getAvatarTwo, 'utf-8'));
|
45
|
+
|
46
|
+
let circleOne = await jimp.read(await circle(avatarOne));
|
47
|
+
let circleTwo = await jimp.read(await circle(avatarTwo));
|
48
|
+
batgiam_img.composite(circleOne.resize(150, 150), 220, 164).composite(circleTwo.resize(150, 150), 380, 190);
|
49
|
+
|
50
|
+
let raw = await batgiam_img.getBufferAsync("image/png");
|
51
|
+
|
52
|
+
fs.writeFileSync(pathImg, raw);
|
53
|
+
fs.unlinkSync(avatarOne);
|
54
|
+
fs.unlinkSync(avatarTwo);
|
55
|
+
|
56
|
+
return pathImg;
|
57
|
+
}
|
58
|
+
async function circle(image) {
|
59
|
+
const jimp = require("jimp");
|
60
|
+
image = await jimp.read(image);
|
61
|
+
image.circle();
|
62
|
+
return await image.getBufferAsync("image/png");
|
63
|
+
}
|
64
|
+
|
65
|
+
module.exports.run = async function ({ event, api, args }) {
|
66
|
+
const fs = global.nodemodule["fs-extra"];
|
67
|
+
const { threadID, messageID, senderID } = event;
|
68
|
+
const mention = Object.keys(event.mentions);
|
69
|
+
if (!mention[0]) return api.sendMessage("Please mention 1 person.", threadID, messageID);
|
70
|
+
else {
|
71
|
+
const one = senderID, two = mention[0];
|
72
|
+
return makeImage({ one, two }).then(path => api.sendMessage({ body: "ughhh🥵", attachment: fs.createReadStream(path) }, threadID, () => fs.unlinkSync(path), messageID));
|
73
|
+
}
|
74
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "fuck4",
|
3
|
+
version: "2.0.0",
|
4
|
+
hasPermssion: 2,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Get fuck",
|
7
|
+
commandCategory: "nsfw",
|
8
|
+
usages: "[@mention]",
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"axios": "",
|
12
|
+
"fs-extra": "",
|
13
|
+
"path": "",
|
14
|
+
"jimp": ""
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
module.exports.onLoad = async() => {
|
19
|
+
const { resolve } = global.nodemodule["path"];
|
20
|
+
const { existsSync, mkdirSync } = global.nodemodule["fs-extra"];
|
21
|
+
const { downloadFile } = global.utils;
|
22
|
+
const dirMaterial = __dirname + `/cache/canvas/`;
|
23
|
+
const path = resolve(__dirname, 'cache/canvas', 'fuckv3.png');
|
24
|
+
if (!existsSync(dirMaterial + "canvas")) mkdirSync(dirMaterial, { recursive: true });
|
25
|
+
if (!existsSync(path)) await downloadFile("https://i.imgur.com/A7T04KJ.jpg", path);
|
26
|
+
}
|
27
|
+
|
28
|
+
async function makeImage({ one, two }) {
|
29
|
+
const fs = global.nodemodule["fs-extra"];
|
30
|
+
const path = global.nodemodule["path"];
|
31
|
+
const axios = global.nodemodule["axios"];
|
32
|
+
const jimp = global.nodemodule["jimp"];
|
33
|
+
const __root = path.resolve(__dirname, "cache", "canvas");
|
34
|
+
|
35
|
+
let batgiam_img = await jimp.read(__root + "/fuckv3.png");
|
36
|
+
let pathImg = __root + `/batman${one}_${two}.png`;
|
37
|
+
let avatarOne = __root + `/avt_${one}.png`;
|
38
|
+
let avatarTwo = __root + `/avt_${two}.png`;
|
39
|
+
|
40
|
+
let getAvatarOne = (await axios.get(`https://graph.facebook.com/${one}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
41
|
+
fs.writeFileSync(avatarOne, Buffer.from(getAvatarOne, 'utf-8'));
|
42
|
+
|
43
|
+
let getAvatarTwo = (await axios.get(`https://graph.facebook.com/${two}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
44
|
+
fs.writeFileSync(avatarTwo, Buffer.from(getAvatarTwo, 'utf-8'));
|
45
|
+
|
46
|
+
let circleOne = await jimp.read(await circle(avatarOne));
|
47
|
+
let circleTwo = await jimp.read(await circle(avatarTwo));
|
48
|
+
batgiam_img.composite(circleOne.resize(120, 120), 40, 270).composite(circleTwo.resize(120, 120), 130, 30);
|
49
|
+
|
50
|
+
let raw = await batgiam_img.getBufferAsync("image/png");
|
51
|
+
|
52
|
+
fs.writeFileSync(pathImg, raw);
|
53
|
+
fs.unlinkSync(avatarOne);
|
54
|
+
fs.unlinkSync(avatarTwo);
|
55
|
+
|
56
|
+
return pathImg;
|
57
|
+
}
|
58
|
+
async function circle(image) {
|
59
|
+
const jimp = require("jimp");
|
60
|
+
image = await jimp.read(image);
|
61
|
+
image.circle();
|
62
|
+
return await image.getBufferAsync("image/png");
|
63
|
+
}
|
64
|
+
|
65
|
+
module.exports.run = async function ({ event, api, args }) {
|
66
|
+
const fs = global.nodemodule["fs-extra"];
|
67
|
+
const { threadID, messageID, senderID } = event;
|
68
|
+
const mention = Object.keys(event.mentions);
|
69
|
+
if (!mention[0]) return api.sendMessage("Please mention 1 person.", threadID, messageID);
|
70
|
+
else {
|
71
|
+
const one = senderID, two = mention[0];
|
72
|
+
return makeImage({ one, two }).then(path => api.sendMessage({ body: "ughhh🥵", attachment: fs.createReadStream(path) }, threadID, () => fs.unlinkSync(path), messageID));
|
73
|
+
}
|
74
|
+
}
|