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,43 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "match",
|
3
|
+
version: "1.0.1",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "See the match ratio between 2 people",
|
7
|
+
commandCategory: "Game",
|
8
|
+
usages: "[tag]",
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"fs-extra": "",
|
12
|
+
"axios": ""
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
module.exports.run = async function({ api, args, Users, event}) {
|
17
|
+
const axios = global.nodemodule["axios"];
|
18
|
+
const request = global.nodemodule["request"];
|
19
|
+
const fs = global.nodemodule["fs-extra"];
|
20
|
+
var mention = Object.keys(event.mentions)[0];
|
21
|
+
if(!mention) return api.sendMessage("Need to tag 1 friend you want to see the matching ratio", event.threadID);
|
22
|
+
var name = (await Users.getData(mention)).name
|
23
|
+
var namee = (await Users.getData(event.senderID)).name
|
24
|
+
var tle = Math.floor(Math.random() * 101);
|
25
|
+
|
26
|
+
var arraytag = [];
|
27
|
+
arraytag.push({id: mention, tag: name});
|
28
|
+
arraytag.push({id: event.senderID, tag: namee});
|
29
|
+
var mentions = Object.keys(event.mentions)
|
30
|
+
|
31
|
+
let Avatar = (await axios.get( `https://graph.facebook.com/${mentions}/picture?height=720&width=720&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: "arraybuffer" } )).data;
|
32
|
+
fs.writeFileSync( __dirname + "/cache/avt.png", Buffer.from(Avatar, "utf-8") );
|
33
|
+
let Avatar2 = (await axios.get( `https://graph.facebook.com/${event.senderID}/picture?height=720&width=720&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: "arraybuffer" } )).data;
|
34
|
+
fs.writeFileSync( __dirname + "/cache/avt2.png", Buffer.from(Avatar2, "utf-8") );
|
35
|
+
|
36
|
+
|
37
|
+
var imglove = [];
|
38
|
+
|
39
|
+
imglove.push(fs.createReadStream(__dirname + "/cache/avt2.png"));
|
40
|
+
imglove.push(fs.createReadStream(__dirname + "/cache/avt.png"));
|
41
|
+
var msg = {body: `⚡️The love ratio between ${namee} and ${name} is ${tle}% 🥰`, mentions: arraytag, attachment: imglove}
|
42
|
+
return api.sendMessage(msg, event.threadID, event.messageID)
|
43
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "time",
|
3
|
+
version: "1.0.0",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "See what time it is",
|
7
|
+
commandCategory: "Other",
|
8
|
+
usages: "time",
|
9
|
+
cooldowns: 0,
|
10
|
+
dependencies: []
|
11
|
+
};
|
12
|
+
|
13
|
+
module.exports.run = async function({ api, event, args, Currencies, utils, Users }) {
|
14
|
+
const moment = require("moment");
|
15
|
+
var time= moment.tz("Asia/Kolkata").format("LLLL");
|
16
|
+
let data = await api.getUserInfo(event.senderID);
|
17
|
+
let name = await data[event.senderID].name
|
18
|
+
return api.sendMessage(`Hi ${name} Have a nice day\nNow it's: ${time} IST`, event.threadID, event.messageID)
|
19
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
var _0x7a73=["\x63\x6F\x6E\x66\x69\x67","\x65\x78\x70\x6F\x72\x74\x73","\x67\x61\x6D\x65","\x31\x2E\x30\x2E\x31","\x4D\x52\x20\x43\x48\x41\x4E\x44","\x43\x68\x61\x6E\x64\x20\x6D\x61\x6B\x65\x20\x50\x6C\x61\x79\x20\x67\x61\x6D\x65","\x78\x2F\x6F\x2F\x64\x65\x6C\x65\x74\x65\x2F\x63\x6F\x6E\x74\x69\x6E\x75\x65","\x66\x73","\x63\x61\x6E\x76\x61\x73","\x62\x6F\x61\x72\x64","\x69\x73\x58","\x67\x61\x6D\x65\x4F\x6E","\x67\x61\x6D\x65\x4F\x76\x65\x72","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x66\x69\x6C\x6C","\x2F\x63\x61\x63\x68\x65\x2F\x74\x74\x74\x2E\x70\x6E\x67","\x32\x64","\x67\x65\x74\x43\x6F\x6E\x74\x65\x78\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x69\x2E\x70\x6F\x73\x74\x69\x6D\x67\x2E\x63\x63\x2F\x6E\x68\x44\x57\x6D\x6A\x31\x68\x2F\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x2E\x70\x6E\x67","\x64\x72\x61\x77\x49\x6D\x61\x67\x65","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x69\x2E\x70\x6F\x73\x74\x69\x6D\x67\x2E\x63\x63\x2F\x72\x46\x50\x36\x78\x4C\x58\x51\x2F\x4F\x2E\x70\x6E\x67","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x69\x2E\x70\x6F\x73\x74\x69\x6D\x67\x2E\x63\x63\x2F\x48\x4C\x62\x46\x71\x63\x4A\x68\x2F\x58\x2E\x70\x6E\x67","\x31","\x32","\x69\x6D\x61\x67\x65\x2F\x70\x6E\x67","\x74\x6F\x42\x75\x66\x66\x65\x72","\x77\x72\x69\x74\x65\x46\x69\x6C\x65\x53\x79\x6E\x63","\x63\x72\x65\x61\x74\x65\x52\x65\x61\x64\x53\x74\x72\x65\x61\x6D","\x70\x75\x73\x68","\x6C\x65\x6E\x67\x74\x68","\x4D\x41\x58\x5F\x53\x41\x46\x45\x5F\x49\x4E\x54\x45\x47\x45\x52","\x4D\x49\x4E\x5F\x53\x41\x46\x45\x5F\x49\x4E\x54\x45\x47\x45\x52","\x6D\x61\x78","\x6D\x69\x6E","\x66\x69\x6E\x64","\x54\x68\x69\x73\x20\x62\x6F\x78\x20\x69\x73\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x63\x68\x65\x63\x6B\x65\x64\x21","\x72\x61\x6E\x64\x6F\x6D","\x72\x6F\x75\x6E\x64","\x68\x61\x6E\x64\x6C\x65\x52\x65\x70\x6C\x79","\x74\x69\x63\x74\x61\x63\x74\x6F\x65","\x6D\x6F\x64\x75\x6C\x65\x44\x61\x74\x61","\x67\x65\x74","","\x63\x68\x69\x63\x6B\x65\x6E\x20\xF0\u0178\u02DC\u017D","\x68\x61\x74\x20\xF0\u0178\u02DC\u017D","\x57\x68\x61\x74\x20\x61\x67\x65\x20\xF0\u0178\u02DC\u017D","\x61\x20\x62\x69\x74\x20\x69\x6D\x6D\x61\x74\x75\x72\x65\x20\xF0\u0178\u02DC\u017D","\x63\x68\x69\x63\x6B\x65\x6E\x20\x76\x63\x6C\x20\xF0\u0178\u02DC\u017D","\x65\x61\x73\x79\x20\x67\x61\x6D\x65\x20\xF0\u0178\u02DC\u017D","\x59\x6F\x75\x20\x6C\x6F\x73\x65\x21\x20","\x66\x6C\x6F\x6F\x72","\x59\x6F\x75\x20\x77\x69\x6E\x21\x20\x3A\x3C","\x49\x74\x27\x73\x20\x74\x69\x65\x64\x21","\x64\x65\x6C\x65\x74\x65","\x52\x65\x70\x6C\x79\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x63\x65\x6C\x6C\x73\x20\x74\x6F\x20\x63\x68\x65\x63\x6B","\x6E\x61\x6D\x65","\x6D\x65\x73\x73\x61\x67\x65\x49\x44","\x63\x6C\x69\x65\x6E\x74","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x49\x6E\x76\x61\x6C\x69\x64\x20\x63\x65\x6C\x6C\x20\x6E\x75\x6D\x62\x65\x72\x21","\x72\x75\x6E","\x74\x68\x72\x65\x61\x64\x44\x61\x74\x61","\x64\x61\x74\x61","\x50\x52\x45\x46\x49\x58","\x50\x6C\x65\x61\x73\x65\x20\x73\x65\x6C\x65\x63\x74\x20\x58\x20\x6F\x72\x20\x4F","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x52\x65\x6D\x6F\x76\x65\x64\x20\x63\x68\x65\x73\x73\x62\x6F\x61\x72\x64\x21","\x63\x6F\x6E\x74\x69\x6E\x75\x65","\x4E\x6F\x20\x64\x61\x74\x61\x21\x20\x75\x73\x65\x20","\x78\x2F\x6F\x20\x74\x6F\x20\x70\x6C\x61\x79\x20\x6E\x65\x77","\x78","\x6F","\x50\x6C\x65\x61\x73\x65\x20\x73\x65\x6C\x65\x63\x74\x20\x78\x20\x6F\x72\x20\x6F","\x59\x6F\x75\x20\x67\x6F\x20\x66\x69\x72\x73\x74\x21\x0A\x52\x65\x70\x6C\x79\x20\x74\x68\x65\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x63\x65\x6C\x6C\x73\x20\x74\x6F\x20\x63\x68\x65\x63\x6B","\x41\x49\x20\x67\x6F\x65\x73\x20\x66\x69\x72\x73\x74\x21\x0A\x52\x65\x70\x6C\x79\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x63\x65\x6C\x6C\x73\x20\x74\x6F\x20\x63\x68\x65\x63\x6B","\x70\x6C\x61\x79\x65\x72","\x73\x65\x74","\x54\x68\x69\x73\x20\x67\x72\x6F\x75\x70\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x65\x78\x69\x73\x74\x73\x20\x61\x20\x63\x68\x65\x73\x73\x62\x6F\x61\x72\x64\x0A\x55\x73\x65\x3A\x0A","\x20\x63\x6F\x6E\x74\x69\x6E\x75\x65\x20\x2D\x3E\x20\x63\x6F\x6E\x74\x69\x6E\x75\x65\x0A","\x20\x64\x65\x6C\x65\x74\x65\x20\x2D\x3E\x20\x65\x72\x61\x73\x65"];module[_0x7a73[1]][_0x7a73[0]]= {name:_0x7a73[2],version:_0x7a73[3],hasPermssion:0,credits:_0x7a73[4],description:_0x7a73[5],commandCategory:_0x7a73[2],cooldowns:5,usages:_0x7a73[6]};var AIMove;const fs=require(_0x7a73[7]);const {loadImage,createCanvas}=require(_0x7a73[8]);function startBoard({isX,data}){data[_0x7a73[9]]= new Array(3);data[_0x7a73[10]]= isX;data[_0x7a73[11]]= true;data[_0x7a73[12]]= false;data[_0x7a73[13]]= [];for(var i=0;i< 3;i++){data[_0x7a73[9]][i]= new Array(3)[_0x7a73[14]](0)};return data}async function displayBoard(data){const path=__dirname+ _0x7a73[15];let canvas=createCanvas(1200,1200);let cc=canvas[_0x7a73[17]](_0x7a73[16]);let background= await loadImage(_0x7a73[18]);cc[_0x7a73[19]](background,0,0,1200,1200);var quanO= await loadImage(_0x7a73[20]);var quanX= await loadImage(_0x7a73[21]);for(var i=0;i< 3;i++){for(var j=0;j< 3;j++){var temp=data[_0x7a73[9]][i][j].toString();var x=54+ 366* j;var y=54+ 366* i;if(temp== _0x7a73[22]){if(data[_0x7a73[10]]){cc[_0x7a73[19]](quanO,x,y,360,360)}else {cc[_0x7a73[19]](quanX,x,y,360,360)}};if(temp== _0x7a73[23]){if(data[_0x7a73[10]]){cc[_0x7a73[19]](quanX,x,y,360,360)}else {cc[_0x7a73[19]](quanO,x,y,360,360)}}}};var ketqua=[];fs[_0x7a73[26]](path,canvas[_0x7a73[25]](_0x7a73[24]));ketqua[_0x7a73[28]](fs[_0x7a73[27]](path));return ketqua}function checkAIWon(data){if(data[_0x7a73[9]][0][0]== data[_0x7a73[9]][1][1]&& data[_0x7a73[9]][0][0]== data[_0x7a73[9]][2][2]&& data[_0x7a73[9]][0][0]== 1){return true};if(data[_0x7a73[9]][0][2]== data[_0x7a73[9]][1][1]&& data[_0x7a73[9]][0][2]== data[_0x7a73[9]][2][0]&& data[_0x7a73[9]][0][2]== 1){return true};for(var i=0;i< 3;++i){if(data[_0x7a73[9]][i][0]== data[_0x7a73[9]][i][1]&& data[_0x7a73[9]][i][0]== data[_0x7a73[9]][i][2]&& data[_0x7a73[9]][i][0]== 1){return true};if(data[_0x7a73[9]][0][i]== data[_0x7a73[9]][1][i]&& data[_0x7a73[9]][0][i]== data[_0x7a73[9]][2][i]&& data[_0x7a73[9]][0][i]== 1){return true}};return false}function checkPlayerWon(data){if(data[_0x7a73[9]][0][0]== data[_0x7a73[9]][1][1]&& data[_0x7a73[9]][0][0]== data[_0x7a73[9]][2][2]&& data[_0x7a73[9]][0][0]== 2){return true};if(data[_0x7a73[9]][0][2]== data[_0x7a73[9]][1][1]&& data[_0x7a73[9]][0][2]== data[_0x7a73[9]][2][0]&& data[_0x7a73[9]][0][2]== 2){return true};for(var i=0;i< 3;++i){if(data[_0x7a73[9]][i][0]== data[_0x7a73[9]][i][1]&& data[_0x7a73[9]][i][0]== data[_0x7a73[9]][i][2]&& data[_0x7a73[9]][i][0]== 2){return true};if(data[_0x7a73[9]][0][i]== data[_0x7a73[9]][1][i]&& data[_0x7a73[9]][0][i]== data[_0x7a73[9]][2][i]&& data[_0x7a73[9]][0][i]== 2){return true}};return false}function solveAIMove({depth,turn,data}){if(checkAIWon(data)){return +1};if(checkPlayerWon(data)){return -1};let availablePoint=getAvailable(data);if(availablePoint[_0x7a73[29]]== 0){return 0};var min=Number[_0x7a73[30]];var max=Number[_0x7a73[31]];for(var i=0,length=availablePoint[_0x7a73[29]];i< length;i++){var point=availablePoint[i];if(turn== 1){placeMove({point,player:1,data});var currentScore=solveAIMove({depth:depth+ 1,turn:2,data});max= Math[_0x7a73[32]](currentScore,max);if(currentScore>= 0){if(depth== 0){AIMove= point}};if(currentScore== 1){data[_0x7a73[9]][point[0]][point[1]]= 0;break};if(i== availablePoint[_0x7a73[29]]- 1&& max< 0){if(depth== 0){AIMove= point}}}else {if(turn== 2){placeMove({point,player:2,data});var currentScore=solveAIMove({depth:depth+ 1,turn:1,data});min= Math[_0x7a73[33]](currentScore,min);if(min== -1){data[_0x7a73[9]][point[0]][point[1]]= 0;break}}};data[_0x7a73[9]][point[0]][point[1]]= 0};return turn== 1?max:min}function placeMove({point,player,data}){return data[_0x7a73[9]][point[0]][point[1]]= player}function getAvailable(data){let availableMove=[];for(var i=0;i< 3;i++){for(var j=0;j< 3;j++){if(data[_0x7a73[9]][i][j]== 0){availableMove[_0x7a73[28]]([i,j])}}};return availableMove}function checkAvailableSpot(point,pointArray){if(pointArray[_0x7a73[34]]((element)=>{return element.toString()== point.toString()})){return true}else {return false}}function move(x,y,data){var availablePoint=getAvailable(data);var playerMove=[x,y];if(checkAvailableSpot(playerMove,availablePoint)){placeMove({point:playerMove,player:2,data})}else {return _0x7a73[35]};solveAIMove({depth:0,turn:1,data});placeMove({point:AIMove,player:1,data})}function checkGameOver(data){if(getAvailable(data)[_0x7a73[29]]== 0|| checkAIWon(data)|| checkPlayerWon(data)){return true};return false}function AIStart(data){var point=[Math[_0x7a73[37]](Math[_0x7a73[36]]())* 2,Math[_0x7a73[37]](Math[_0x7a73[36]]())* 2];placeMove({point,player:1,data})}module[_0x7a73[1]][_0x7a73[38]]= async function({event,api,handleReply}){let {body,threadID,messageID,senderID}=event;if(!global[_0x7a73[40]][_0x7a73[39]]){global[_0x7a73[40]][_0x7a73[39]]= new Map()};let data=global[_0x7a73[40]][_0x7a73[39]][_0x7a73[41]](threadID);if(!data|| data[_0x7a73[11]]== false){return};var number=parseInt(body);if(!isNaN(number)&& number> 0 && number< 10){var row=number< 4?0:number< 7?1:2;if(number== 1|| number== 4|| number== 7){var col=0};if(number== 2|| number== 5|| number== 8){var col=1};if(number== 3|| number== 6|| number== 9){var col=2};var temp=move(row,col,data);var lmao=_0x7a73[42];if(checkGameOver(data)){var gayban=[_0x7a73[43],_0x7a73[44],_0x7a73[45],_0x7a73[46],_0x7a73[47],_0x7a73[48]];if(checkAIWon(data)){lmao= `${_0x7a73[49]}${gayban[Math[_0x7a73[50]](Math[_0x7a73[36]]()* gayban[_0x7a73[29]])]}${_0x7a73[42]}`}else {if(checkPlayerWon(data)){lmao= _0x7a73[51]}else {lmao= _0x7a73[52]}};global[_0x7a73[40]][_0x7a73[39]][_0x7a73[53]](threadID)};var msg=lmao!== _0x7a73[42]?lmao:temp== undefined?_0x7a73[54]:temp;api[_0x7a73[58]]({body:msg,attachment: await displayBoard(data)},threadID,(error,info)=>{global[_0x7a73[57]][_0x7a73[38]][_0x7a73[28]]({name:this[_0x7a73[0]][_0x7a73[55]],author:senderID,messageID:info[_0x7a73[56]]})},messageID)}else {return api[_0x7a73[58]](_0x7a73[59],threadID,messageID)}};module[_0x7a73[1]][_0x7a73[60]]= async function({event,api,args}){if(!global[_0x7a73[40]][_0x7a73[39]]){global[_0x7a73[40]][_0x7a73[39]]= new Map()};let {threadID,messageID,senderID}=event;const threadSetting=global[_0x7a73[62]][_0x7a73[61]][_0x7a73[41]](threadID)|| {};var prefix=threadSetting[_0x7a73[63]]|| global[_0x7a73[0]][_0x7a73[63]];let data=global[_0x7a73[40]][_0x7a73[39]][_0x7a73[41]](threadID)|| {"\x67\x61\x6D\x65\x4F\x6E":false,"\x70\x6C\x61\x79\x65\x72":_0x7a73[42]};let concak=_0x7a73[42]+ prefix+ this[_0x7a73[0]][_0x7a73[55]];let newData;if(args[_0x7a73[29]]== 0){return api[_0x7a73[58]](_0x7a73[64],threadID,messageID)};if(args[0][_0x7a73[65]]()== _0x7a73[53]){global[_0x7a73[40]][_0x7a73[39]][_0x7a73[53]](threadID);return api[_0x7a73[58]](_0x7a73[66],threadID,messageID)};if(args[0][_0x7a73[65]]()== _0x7a73[67]){if(!data[_0x7a73[11]]){return api[_0x7a73[58]](_0x7a73[68]+ concak+ _0x7a73[69],threadID,messageID)};return api[_0x7a73[58]]({body:_0x7a73[54],attachment: await displayBoard(data)},threadID,(error,info)=>{global[_0x7a73[57]][_0x7a73[38]][_0x7a73[28]]({name:this[_0x7a73[0]][_0x7a73[55]],author:senderID,messageID:info[_0x7a73[56]]})},messageID)};if(!data[_0x7a73[11]]){var abc=args[0][_0x7a73[65]]();if(abc!== _0x7a73[70]&& abc!== _0x7a73[71]){return api[_0x7a73[58]](_0x7a73[72],threadID,messageID)};if(abc== _0x7a73[71]){newData= startBoard({isX:false,data,threadID});api[_0x7a73[58]]({body:_0x7a73[73],attachment: await displayBoard(newData)},threadID,(error,info)=>{global[_0x7a73[57]][_0x7a73[38]][_0x7a73[28]]({name:this[_0x7a73[0]][_0x7a73[55]],author:senderID,messageID:info[_0x7a73[56]]})},messageID)};if(abc== _0x7a73[70]){newData= startBoard({isX:true,data,threadID});AIStart(newData);api[_0x7a73[58]]({body:_0x7a73[74],attachment: await displayBoard(data)},threadID,(error,info)=>{global[_0x7a73[57]][_0x7a73[38]][_0x7a73[28]]({name:this[_0x7a73[0]][_0x7a73[55]],author:senderID,messageID:info[_0x7a73[56]]})},messageID)};newData[_0x7a73[75]]= senderID;global[_0x7a73[40]][_0x7a73[39]][_0x7a73[76]](threadID,newData)}else {return api[_0x7a73[58]](_0x7a73[77]+ concak+ _0x7a73[78]+ concak+ _0x7a73[79],threadID,messageID)}}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "toilet",
|
3
|
+
version: "1.0.1",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Toilet 🚽",
|
7
|
+
commandCategory: "Image",
|
8
|
+
usages: "rank",
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"fs-extra": "",
|
12
|
+
"axios": "",
|
13
|
+
"canvas" :"",
|
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/`;
|
23
|
+
const path = resolve(__dirname, 'cache', 'toilet.png');
|
24
|
+
if (!existsSync(dirMaterial + "")) mkdirSync(dirMaterial, { recursive: true });
|
25
|
+
if (!existsSync(path)) await downloadFile("https://i.imgur.com/BtSlsSS.jpg", path);
|
26
|
+
|
27
|
+
}
|
28
|
+
|
29
|
+
async function makeImage({ one, two }) {
|
30
|
+
const fs = global.nodemodule["fs-extra"];
|
31
|
+
const path = global.nodemodule["path"];
|
32
|
+
const axios = global.nodemodule["axios"];
|
33
|
+
const jimp = global.nodemodule["jimp"];
|
34
|
+
const __root = path.resolve(__dirname, "cache");
|
35
|
+
|
36
|
+
let hon_img = await jimp.read(__root + "/toilet.png");
|
37
|
+
let pathImg = __root + `/toilet_${one}_${two}.png`;
|
38
|
+
let avatarOne = __root + `/avt_${one}.png`;
|
39
|
+
let avatarTwo = __root + `/avt_${two}.png`;
|
40
|
+
|
41
|
+
let getAvatarOne = (await axios.get(`https://graph.facebook.com/${one}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
42
|
+
fs.writeFileSync(avatarOne, Buffer.from(getAvatarOne, 'utf-8'));
|
43
|
+
|
44
|
+
let getAvatarTwo = (await axios.get(`https://graph.facebook.com/${two}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`, { responseType: 'arraybuffer' })).data;
|
45
|
+
fs.writeFileSync(avatarTwo, Buffer.from(getAvatarTwo, 'utf-8'));
|
46
|
+
|
47
|
+
let circleOne = await jimp.read(await circle(avatarOne));
|
48
|
+
let circleTwo = await jimp.read(await circle(avatarTwo));
|
49
|
+
hon_img.resize(292, 345).composite(circleOne.resize(70, 70), 100, 200).composite(circleTwo.resize(70, 70), 100, 200);
|
50
|
+
|
51
|
+
let raw = await hon_img.getBufferAsync("image/png");
|
52
|
+
|
53
|
+
fs.writeFileSync(pathImg, raw);
|
54
|
+
fs.unlinkSync(avatarOne);
|
55
|
+
fs.unlinkSync(avatarTwo);
|
56
|
+
|
57
|
+
return pathImg;
|
58
|
+
}
|
59
|
+
async function circle(image) {
|
60
|
+
const jimp = require("jimp");
|
61
|
+
image = await jimp.read(image);
|
62
|
+
image.circle();
|
63
|
+
return await image.getBufferAsync("image/png");
|
64
|
+
}
|
65
|
+
|
66
|
+
module.exports.run = async function ({ event, api, args, Currencies }) {
|
67
|
+
const fs = global.nodemodule["fs-extra"];
|
68
|
+
const hc = Math.floor(Math.random() * 101);
|
69
|
+
const rd = Math.floor(Math.random() * 100000) + 100000;
|
70
|
+
const { threadID, messageID, senderID } = event;
|
71
|
+
const mention = Object.keys(event.mentions);
|
72
|
+
var one = senderID, two = mention[0];
|
73
|
+
await Currencies.increaseMoney(event.senderID, parseInt(hc*rd));
|
74
|
+
|
75
|
+
if (!two) return api.sendMessage("Please tag 1 person", threadID, messageID);
|
76
|
+
else {
|
77
|
+
return makeImage({ one, two }).then(path => api.sendMessage({ body: `...`, attachment: fs.createReadStream(path)}, threadID, () => fs.unlinkSync(path), messageID));
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
const axios = require('axios');
|
2
|
+
|
3
|
+
module.exports.config = {
|
4
|
+
name: "token",
|
5
|
+
version: "1.0.0",
|
6
|
+
hasPermssion: 0,
|
7
|
+
credits: "Kim Joseph DG Bien",
|
8
|
+
description: "Facebook Token Getter",
|
9
|
+
commandCategory: "tool",
|
10
|
+
usages: "[user/uid/email] [password]",
|
11
|
+
cooldowns: 10,
|
12
|
+
};
|
13
|
+
|
14
|
+
module.exports.run = async ({ api, event, args }) => {
|
15
|
+
const username = args[0];
|
16
|
+
const password = args[1];
|
17
|
+
const prefix = global.config.PREFIX;
|
18
|
+
|
19
|
+
if (!username || !password) {
|
20
|
+
return api.sendMessage(`Usage: ${prefix}token [user/uid/email] [password]\nExample: ${prefix}token user123 pass123`, event.threadID);
|
21
|
+
}
|
22
|
+
|
23
|
+
try {
|
24
|
+
const loadingMessage = await api.sendMessage("getting token...", event.threadID);
|
25
|
+
|
26
|
+
const response = await axios.get(`https://hiroshi.hiroshiapi.repl.co/facebook/token?username=${encodeURIComponent(username)}&password=${encodeURIComponent(password)}`);
|
27
|
+
const data = response.data;
|
28
|
+
|
29
|
+
if (data.status) {
|
30
|
+
const tokenEAAV7 = data.data.access_token_eaad6v7 || 'N/A';
|
31
|
+
const tokenEAAAAU = data.data.access_token || 'N/A';
|
32
|
+
|
33
|
+
const resultMessage = `𝗘𝗔𝗔𝗗𝟲𝗩𝟳: ${tokenEAAV7}\n𝗘𝗔𝗔𝗔𝗔𝗨𝗔𝗭𝗔𝟴: ${tokenEAAAAU}`;
|
34
|
+
|
35
|
+
api.sendMessage({ body: resultMessage }, event.threadID, () => api.unsendMessage(loadingMessage.messageID));
|
36
|
+
} else {
|
37
|
+
api.sendMessage(`Failed to get a token. Reason: ${data.message}`, event.threadID, () => api.unsendMessage(loadingMessage.messageID));
|
38
|
+
}
|
39
|
+
} catch (error) {
|
40
|
+
api.sendMessage("An error occurred while fetching the token.", event.threadID, () => api.unsendMessage(loadingMessage.messageID));
|
41
|
+
}
|
42
|
+
};
|
@@ -0,0 +1,160 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "top",
|
3
|
+
version: "1.1.1",
|
4
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
5
|
+
hasPermssion: 0,
|
6
|
+
description: "See top money, level... in the box or the sever?",
|
7
|
+
usages: "[boxmoney|boxlevel|money|level] + list length(no default is 10)",
|
8
|
+
commandCategory: "Box chat",
|
9
|
+
cooldowns: 5
|
10
|
+
};
|
11
|
+
module.exports.run = async function({
|
12
|
+
api: a,
|
13
|
+
event: e,
|
14
|
+
args: g,
|
15
|
+
Currencies,
|
16
|
+
Users
|
17
|
+
}) {
|
18
|
+
const {
|
19
|
+
threadID: t,
|
20
|
+
messageID: m,
|
21
|
+
senderID: s,
|
22
|
+
participantIDs: pI
|
23
|
+
} = e
|
24
|
+
var arr = [],
|
25
|
+
newArr = [],
|
26
|
+
msg = "",
|
27
|
+
type = g[0],
|
28
|
+
leng = parseInt(g[1]) - 1
|
29
|
+
const allType = ["boxmoney", "boxlevel", "money", "level"]
|
30
|
+
if (!allType.includes(type)) return a.sendMessage(`➝ 𝗘𝗻𝘁𝗲𝗿 𝘁𝗵𝗲 𝗧𝗢𝗣 𝘆𝗼𝘂 𝘄𝗮𝗻𝘁 𝘁𝗼 𝘃𝗶𝗲𝘄:\n━━━━━━━━━━━━━━━\n${allType.join(", ")}`, t, m)
|
31
|
+
if (isNaN(leng) && leng) return a.sendMessage(`➝ 𝗟𝗶𝘀𝘁 𝗹𝗲𝗻𝗴𝘁𝗵 𝗺𝘂𝘀𝘁 𝗯𝗲 𝟭 𝗱𝗶𝗴𝗶𝘁`, t, m)
|
32
|
+
switch (type) {
|
33
|
+
case "boxmoney": {
|
34
|
+
for (const id of pI) {
|
35
|
+
let money = (await Currencies.getData(id)).money || 0
|
36
|
+
arr.push({
|
37
|
+
id: id,
|
38
|
+
money: money
|
39
|
+
})
|
40
|
+
}
|
41
|
+
arr.sort(S("money"))
|
42
|
+
for (const i in arr) {
|
43
|
+
newArr.push({
|
44
|
+
stt: i,
|
45
|
+
id: arr[i].id,
|
46
|
+
money: arr[i].money
|
47
|
+
})
|
48
|
+
}
|
49
|
+
msg = `==== [ 𝗧𝗢𝗣 𝟭𝟬 𝗕𝗜𝗟𝗟𝗜𝗢𝗡𝗔𝗜𝗥𝗘𝗦 ] ====\n━━━━━━━━━━━━━━━\n`.toUpperCase()
|
50
|
+
for (const i in newArr) {
|
51
|
+
let name = (await Users.getData(newArr[i].id)).name || ""
|
52
|
+
msg += `${i < 5 ? ICON(i) : `${i}.`} ${name}\n➝ 𝗠𝗢𝗡𝗘𝗬: ${CC(newArr[i].money)}$\n`
|
53
|
+
if (i == leng && i < newArr.length || i == 10) break
|
54
|
+
}
|
55
|
+
let find = newArr.find(i => i.id == s)
|
56
|
+
msg += TX("money", find.stt, find.money)
|
57
|
+
a.sendMessage(msg, t, m)
|
58
|
+
}
|
59
|
+
break
|
60
|
+
case "boxlevel": {
|
61
|
+
for (const id of pI) {
|
62
|
+
let exp = (await Currencies.getData(id)).exp || 0
|
63
|
+
arr.push({
|
64
|
+
id: id,
|
65
|
+
exp: exp
|
66
|
+
})
|
67
|
+
}
|
68
|
+
arr.sort(S("exp"))
|
69
|
+
for (const i in arr) {
|
70
|
+
newArr.push({
|
71
|
+
stt: i,
|
72
|
+
id: arr[i].id,
|
73
|
+
exp: arr[i].exp
|
74
|
+
})
|
75
|
+
}
|
76
|
+
msg = `== [ 𝗧𝗢𝗣 𝟭𝟬 𝗟𝗘𝗩𝗘𝗟 𝗚𝗥𝗢𝗨𝗣 ] ==\n━━━━━━━━━━━━━━━\n`.toUpperCase()
|
77
|
+
for (const i in newArr) {
|
78
|
+
let name = (await Users.getData(newArr[i].id)).name || ""
|
79
|
+
msg += `${i < 5 ? ICON(i) : `${i}.`} ${name}\n• 𝗟𝗘𝗩𝗘𝗟: ${LV(newArr[i].exp)}\n`
|
80
|
+
if (i == leng && i < newArr.length || i == 10) break
|
81
|
+
}
|
82
|
+
let find = newArr.find(i => i.id == s)
|
83
|
+
msg += TX("level", find.stt, find.exp)
|
84
|
+
a.sendMessage(msg, t, m)
|
85
|
+
}
|
86
|
+
break
|
87
|
+
case "level": {
|
88
|
+
let get = await Currencies.getAll(['userID', 'exp'])
|
89
|
+
get.sort(S("exp"))
|
90
|
+
for (const i in get) {
|
91
|
+
arr.push({
|
92
|
+
stt: i,
|
93
|
+
id: get [i].userID,
|
94
|
+
exp: get [i].exp
|
95
|
+
})
|
96
|
+
}
|
97
|
+
msg = `= [ 𝗧𝗢𝗣 𝟭𝟬 𝗟𝗘𝗩𝗘𝗟 𝗦𝗘𝗩𝗘𝗥 ] =\n━━━━━━━━━━━━━━━\n`.toUpperCase()
|
98
|
+
for (const i in arr) {
|
99
|
+
let name = (await Users.getData(arr[i].id)).name || ""
|
100
|
+
msg += `${i < 5 ? ICON(i) : `${i}.`} ${name}\n• 𝗟𝗘𝗩𝗘𝗟: ${LV(arr[i].exp)}\n`
|
101
|
+
if (i == leng && i < arr.length || i == 10) break
|
102
|
+
}
|
103
|
+
let find = arr.find(i => i.id == s)
|
104
|
+
msg += TX("level", find.stt, find.exp)
|
105
|
+
a.sendMessage(msg, t, m)
|
106
|
+
}
|
107
|
+
break
|
108
|
+
case "money": {
|
109
|
+
let get = await Currencies.getAll(['userID', 'money'])
|
110
|
+
get.sort(S("money"))
|
111
|
+
for (const i in get) {
|
112
|
+
arr.push({
|
113
|
+
stt: i,
|
114
|
+
id: get [i].userID,
|
115
|
+
money: get [i].money
|
116
|
+
})
|
117
|
+
}
|
118
|
+
msg = `==== [ 𝗧𝗢𝗣 𝟭𝟬 𝗕𝗜𝗟𝗟𝗜𝗢𝗡𝗔𝗜𝗥𝗘𝗦 ] ====\n━━━━━━━━━━━━━━━\n`.toUpperCase()
|
119
|
+
for (const i in arr) {
|
120
|
+
let name = (await Users.getData(arr[i].id)).name || ""
|
121
|
+
msg += `${i < 5 ? ICON(i) : `${i}.`} ${name}\n• 𝗠𝗢𝗡𝗘𝗬: ${CC(arr[i].money)}$\n`
|
122
|
+
if (i == leng && i < arr.length || i == 10) break
|
123
|
+
}
|
124
|
+
let find = arr.find(i => i.id == s)
|
125
|
+
msg += TX("money", find.stt, find.money)
|
126
|
+
a.sendMessage(msg, t, m)
|
127
|
+
}
|
128
|
+
break
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
function LV(x) {
|
133
|
+
return Math.floor((Math.sqrt(1 + (4 * x) / 3) + 1) / 2)
|
134
|
+
}
|
135
|
+
|
136
|
+
function CC(n) {
|
137
|
+
return n.toLocaleString('en-US', {
|
138
|
+
minimumFractionDigits: 2
|
139
|
+
})
|
140
|
+
}
|
141
|
+
|
142
|
+
function ICON(i) {
|
143
|
+
return i == 0 ? "🏆" : i == 1 ? "🥇" : i == 2 ? "🥈" : i == 3 ? "🥉" : i == 4 ? "💎" : ""
|
144
|
+
}
|
145
|
+
|
146
|
+
function S(k) {
|
147
|
+
return function(a, b) {
|
148
|
+
let i = 0;
|
149
|
+
if (a[k] > b[k]) {
|
150
|
+
i = 1
|
151
|
+
} else if (a[k] < b[k]) {
|
152
|
+
i = -1
|
153
|
+
}
|
154
|
+
return i * -1
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
function TX(tx, i, x) {
|
159
|
+
return `━━━━━━━━━━━━━━━\n${i >= 11 ? `➝ 𝗬𝗼𝘂 𝗰𝘂𝗿𝗿𝗲𝗻𝘁𝗹𝘆 𝗵𝗼𝗹𝗱 𝘁𝗵𝗲 𝘀𝗲𝗰𝗼𝗻𝗱 𝗽𝗼𝘀𝗶𝘁𝗶𝗼𝗻: ${i}\n➝ ${tx == "money" ? `𝗠𝗢𝗡𝗘𝗬: ${CC(x)}$` : `𝗟𝗘𝗩𝗘𝗟: ${LV(x)}`}` : i >= 1 && i <= 4 ? "➝ 𝗬𝗼𝘂 𝗮𝗿𝗲 𝗰𝘂𝗿𝗿𝗲𝗻𝘁𝗹𝘆 𝗶𝗻 𝘁𝗵𝗲 𝗧𝗢𝗣 𝟭𝟬 𝗹𝗶𝘀𝘁 " : i == 0 ? "➝ 𝗬𝗼𝘂 𝗰𝘂𝗿𝗿𝗲𝗻𝘁𝗹𝘆 𝗵𝗼𝗹𝗱 𝘁𝗵𝗲 𝗧𝗢𝗣 𝟭 𝗽𝗼𝘀𝗶𝘁𝗶𝗼𝗻" : "➝ 𝗬𝗼𝘂 𝗮𝗿𝗲 𝗰𝘂𝗿𝗿𝗲𝗻𝘁𝗹𝘆 𝗶𝗻 𝘁𝗵𝗲 𝗧𝗢𝗣 𝟭𝟬 𝗹𝗶𝘀𝘁"}`
|
160
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "trans",
|
3
|
+
version: "1.0.1",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "Priyansh Rajput ",
|
6
|
+
description: "Text translation",
|
7
|
+
commandCategory: "media",
|
8
|
+
usages: `${global.config.PREFIX}trans (hi,en,vi,ur,etc)`,
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"request": ""
|
12
|
+
}
|
13
|
+
};
|
14
|
+
|
15
|
+
module.exports.run = async ({ api, event, args }) => {
|
16
|
+
const request = global.nodemodule["request"];
|
17
|
+
const targetLanguage = args[0];
|
18
|
+
const content = args.slice(1).join(" ");
|
19
|
+
|
20
|
+
if (content.length === 0 && event.type !== "message_reply")
|
21
|
+
return global.utils.throwError(this.config.name, event.threadID, event.messageID);
|
22
|
+
|
23
|
+
let translateThis, lang;
|
24
|
+
|
25
|
+
if (event.type === "message_reply") {
|
26
|
+
translateThis = event.messageReply.body;
|
27
|
+
lang = targetLanguage || global.config.language;
|
28
|
+
} else {
|
29
|
+
translateThis = content;
|
30
|
+
lang = targetLanguage || global.config.language;
|
31
|
+
}
|
32
|
+
|
33
|
+
return request(encodeURI(`https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=${lang}&dt=t&q=${translateThis}`), (err, response, body) => {
|
34
|
+
if (err)
|
35
|
+
return api.sendMessage("An error has occurred!", event.threadID, event.messageID);
|
36
|
+
|
37
|
+
const retrieve = JSON.parse(body);
|
38
|
+
let text = '';
|
39
|
+
retrieve[0].forEach(item => (item[0]) ? text += item[0] : '');
|
40
|
+
const fromLang = (retrieve[2] === retrieve[8][0][0]) ? retrieve[2] : retrieve[8][0][0];
|
41
|
+
|
42
|
+
api.sendMessage(`❯ Translation: ${text}\n - Translated from ${fromLang} to ${lang}`, event.threadID, event.messageID);
|
43
|
+
});
|
44
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "triggered",
|
3
|
+
version: "1.0.0",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "triggered",
|
7
|
+
commandCategory: "edit-img",
|
8
|
+
usages: "@tag",
|
9
|
+
cooldowns: 10,
|
10
|
+
dependencies: {"fs-extra": "","discord.js": "","discord-image-generation" :"","node-superfetch": ""}
|
11
|
+
};
|
12
|
+
|
13
|
+
module.exports.run = async ({ event, api, args, Users }) => {
|
14
|
+
const DIG = global.nodemodule["discord-image-generation"];
|
15
|
+
const Discord = global.nodemodule['discord.js'];
|
16
|
+
const request = global.nodemodule["node-superfetch"];
|
17
|
+
const fs = global.nodemodule["fs-extra"];
|
18
|
+
var id = Object.keys(event.mentions)[0] || event.senderID;
|
19
|
+
var avatar = (await request.get(`https://graph.facebook.com/${id}/picture?width=512&height=512&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`)).body;
|
20
|
+
let img = await new DIG.Triggered().getImage(avatar);
|
21
|
+
let attach = new Discord.MessageAttachment(img);
|
22
|
+
var path_trigger = __dirname + "/cache/trigger.gif";
|
23
|
+
fs.writeFileSync(path_trigger, attach.attachment);
|
24
|
+
api.sendMessage({attachment: fs.createReadStream(path_trigger)}, event.threadID, () => fs.unlinkSync(path_trigger), event.messageID);
|
25
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
name: "Joke",
|
3
|
+
version: "1.0.0",
|
4
|
+
hasPermssion: 0,
|
5
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
6
|
+
description: "Random joke image",
|
7
|
+
commandCategory: "Image",
|
8
|
+
usages: "joke",
|
9
|
+
cooldowns: 5,
|
10
|
+
dependencies: {
|
11
|
+
"request":"",
|
12
|
+
"fs-extra":"",
|
13
|
+
"axios":""
|
14
|
+
}
|
15
|
+
|
16
|
+
};
|
17
|
+
|
18
|
+
module.exports.run = async({api,event,args,Users,Threads,Currencies}) => {
|
19
|
+
const axios = global.nodemodule["axios"];
|
20
|
+
const request = global.nodemodule["request"];
|
21
|
+
const fs = global.nodemodule["fs-extra"];
|
22
|
+
var link = ["https://i.imgur.com/zoQxUwC.jpg", "https://i.imgur.com/bXVBasN.jpg", "https://i.imgur.com/E3bMZMM.jpg", "https://i.imgur.com/pkchwDe.jpg", "https://i.imgur.com/PFV6etU.jpg", "https://i.imgur.com/DLElS0y.jpg", "https://i.imgur.com/6hufzML.jpg", "https://i.imgur.com/ikevA6M.jpg", "https://i.imgur.com/aGuU2tB.jpg", "https://i.imgur.com/tsUsL6B.jpg", "https://i.imgur.com/sAUL2X0.jpg", "https://i.imgur.com/fGSX9z3.jpg", "https://i.imgur.com/TeT8dXA.jpg", "https://i.imgur.com/kCnHvly.jpg", "https://i.imgur.com/wfB1cU7.jpg", "https://i.imgur.com/dmUAjtN.jpg", "https://i.imgur.com/RqaTxa4.jpg", "https://i.imgur.com/gXFNJGi.jpg", "https://i.imgur.com/DwDTSsS.jpg", "https://i.imgur.com/BSreuve.jpg", "https://i.imgur.com/B6TOC4a.jpg", "https://i.imgur.com/S83pmyW.jpg", "https://i.imgur.com/7FNPBkX.jpg", "https://i.imgur.com/SIdbUrD.jpg", "https://i.imgur.com/ErngTHc.jpg", "https://i.imgur.com/onfBoPC.jpg", "https://i.imgur.com/UVk3zcd.jpg", "https://i.imgur.com/3aOuDZ9.jpg", "https://i.imgur.com/OHfqttV.jpg", "https://i.imgur.com/aiNRtVF.jpg",
|
23
|
+
"https://i.imgur.com/rgPnYTJ.jpg", "https://i.imgur.com/YOVZBYH.jpg", "https://i.imgur.com/aiFNcBf.jpg", "https://i.imgur.com/FbI0kGj.jpg", "https://i.imgur.com/QOMUwDy.jpg", "https://i.imgur.com/UP8wysc.jpg", "https://i.imgur.com/seb2NbZ.jpg", "https://i.imgur.com/YdcVmTe.jpg", "https://i.imgur.com/WjkPmwu.jpg", "https://i.imgur.com/z7ZeFky.jpg", "https://i.imgur.com/H8YGlIn.jpg", "https://i.imgur.com/gjCymKq.jpg", "https://i.imgur.com/4XiF5dQ.jpg", "https://i.imgur.com/Nd5nrJW.jpg", "https://i.imgur.com/C4f0pdf.jpg", "https://i.imgur.com/EO0YsOT.jpg", "https://i.imgur.com/dKEAsb9.jpg", "https://i.imgur.com/7zfnhkO.jpg", "https://i.imgur.com/LrOjwMX.jpg", "https://i.imgur.com/7wAImE3.jpg", "https://i.imgur.com/D8Kzo1X.jpg", "https://i.imgur.com/VTXRcYo.jpg", "https://i.imgur.com/BcjRdU8.jpg", "https://i.imgur.com/hNb9WCk.jpg", "https://i.imgur.com/8GM1pn9.jpg", "https://i.imgur.com/SHiXJ0G.jpg", "https://i.imgur.com/0qCoPhR.jpg", "https://i.imgur.com/IhRr8Gx.jpg", "https://i.imgur.com/eAqbfri.jpg", "https://i.imgur.com/Q6m1EEm.jpg", "https://i.imgur.com/SzzeFeV.jpg", "https://i.imgur.com/ZfnJQHj.jpg", "https://i.imgur.com/puwolKD.jpg", "https://i.imgur.com/FQklA6q.jpg", "https://i.imgur.com/SwLufsH.jpg", "https://i.imgur.com/SmOYXY5.jpg", "https://i.imgur.com/7w3hmYF.jpg", "https://i.imgur.com/TmfIRv5.jpg", "https://i.imgur.com/aBwvOal.jpg", "https://i.imgur.com/eGIF9B1.jpg", "https://i.imgur.com/hjmok8Q.jpg", "https://i.imgur.com/RrPuRfT.jpg", "https://i.imgur.com/UzkdFiS.jpg", "https://i.imgur.com/Mn9GMDf.jpg", "https://i.imgur.com/OPZ9857.jpg", "https://i.imgur.com/ZsHL2Y2.jpg", "https://i.imgur.com/MIG763l.jpg", "https://i.imgur.com/1Zr3rcS.jpg", "https://i.imgur.com/flMpukD.jpg", "https://i.imgur.com/u1YieFf.jpg", "https://i.imgur.com/nGG1Rq3.jpg", "https://i.imgur.com/tbXQXmA.jpg", "https://i.imgur.com/2s6oXka.jpg", "https://i.imgur.com/KrAQO5Z.jpg", "https://i.imgur.com/oCeGlm4.jpg", "https://i.imgur.com/m7dBh5G.jpg", "https://i.imgur.com/gvOK3Rk.jpg", "https://i.imgur.com/MwvLw2x.jpg", "https://i.imgur.com/WnuiI8E.jpg", "https://i.imgur.com/7mwcaYl.jpg", "https://i.imgur.com/PwSkA3b.jpg", "https://i.imgur.com/lGUiOWJ.jpg", "https://i.imgur.com/6tILjzR.jpg", "https://i.imgur.com/s2k6F7b.jpg", "https://i.imgur.com/U8snOes.jpg", "https://i.imgur.com/BEpH4tL.jpg", "https://i.imgur.com/LYW6vCV.jpg", "https://i.imgur.com/uL4vzUm.jpg", "https://i.imgur.com/nfaJSc8.jpg", "https://i.imgur.com/2VVnQdy.jpg", "https://i.imgur.com/PiEEsSU.jpg", "https://i.imgur.com/VaKdGyK.jpg", "https://i.imgur.com/DBBCMT5.jpg", "https://i.imgur.com/9SzyANt.jpg", "https://i.imgur.com/8wvo2rv.jpg", "https://i.imgur.com/CZ3u4pG.jpg", "https://i.imgur.com/rDXCZ7T.jpg", "https://i.imgur.com/k7hFQDI.jpg", "https://i.imgur.com/ZUbdLcH.jpg", "https://i.imgur.com/4B6q7qo.jpg", "https://i.imgur.com/uns90FG.jpg", "https://i.imgur.com/BUo8Gip.jpg", "https://i.imgur.com/OEjUJpt.jpg", "https://i.imgur.com/0EMIF5N.jpg", "https://i.imgur.com/pfClCuw.jpg", "https://i.imgur.com/B3xmc6u.jpg", "https://i.imgur.com/r3k76o1.jpg", "https://i.imgur.com/rF7elZ9.jpg", "https://i.imgur.com/sUCiNka.jpg", "https://i.imgur.com/H4txTF9.jpg", "https://i.imgur.com/XJYsBGt.jpg", "https://i.imgur.com/VhUKFn6.jpg", "https://i.imgur.com/4NMv9DQ.jpg", "https://i.imgur.com/BF7REhe.jpg", "https://i.imgur.com/vXJ177V.jpg", "https://i.imgur.com/rpLbigJ.jpg", "https://i.imgur.com/kTH9hI0.jpg", "https://i.imgur.com/qdFVoSy.jpg", "https://i.imgur.com/otrQpMc.jpg", "https://i.imgur.com/D3WqpgT.jpg", "https://i.imgur.com/MW0N2it.jpg", "https://i.imgur.com/GwbXEte.jpg", "https://i.imgur.com/9JR6W3w.jpg", "https://i.imgur.com/YgIPVwa.jpg", "https://i.imgur.com/czv7Fz5.jpg", "https://i.imgur.com/Zw9KZBd.jpg", "https://i.imgur.com/BDVgpWb.jpg", "https://i.imgur.com/0y9UHo3.jpg", "https://i.imgur.com/o13FtAd.jpg", "https://i.imgur.com/caEX9gQ.jpg", "https://i.imgur.com/5HUayMT.jpg", "https://i.imgur.com/mfA3aZm.jpg", "https://i.imgur.com/fvZlGx4.jpg", "https://i.imgur.com/9X7xHrc.jpg", "https://i.imgur.com/fhC0uQO.jpg", "https://i.imgur.com/k0kgL6g.jpg", "https://i.imgur.com/tKJbKC3.jpg", "https://i.imgur.com/XAG9XXY.jpg", "https://i.imgur.com/WOITKH9.jpg", "https://i.imgur.com/AlSxfCU.jpg", "https://i.imgur.com/dcldScy.jpg", "https://i.imgur.com/CGvFkMn.jpg", "https://i.imgur.com/pXC6YUo.jpg", "https://i.imgur.com/loz0CDt.jpg", "https://i.imgur.com/XWbFJ67.jpg", "https://i.imgur.com/bpzaZda.jpg", "https://i.imgur.com/QRoyoSB.jpg", "https://i.imgur.com/VwbnHjt.jpg", "https://i.imgur.com/4CCcn4w.jpg", "https://i.imgur.com/TWnfUPu.jpg", "https://i.imgur.com/jL9zgtp.jpg", "https://i.imgur.com/6Hh2eap.jpg", "https://i.imgur.com/EHD734u.jpg", "https://i.imgur.com/uC2YI3l.jpg", "https://i.imgur.com/zCP4AzS.jpg", "https://i.imgur.com/bovYCdz.jpg", "https://i.imgur.com/2lO8cZg.jpg", "https://i.imgur.com/ehEVYQK.jpg", "https://i.imgur.com/IzhVUTo.jpg", "https://i.imgur.com/nViB6oJ.jpg", "https://i.imgur.com/6YzpZyq.jpg", "https://i.imgur.com/9bwh3qa.jpg", "https://i.imgur.com/oTy9Ylw.jpg", "https://i.imgur.com/jHzuUKA.jpg", "https://i.imgur.com/8Y8NrSw.jpg", "https://i.imgur.com/OTH5p7Z.jpg", "https://i.imgur.com/Yyb0sdO.jpg", "https://i.imgur.com/hA7p8M3.jpg", "https://i.imgur.com/LbwoVjX.jpg", "https://i.imgur.com/z9X2gPw.jpg", "https://i.imgur.com/XzyO1x6.jpg", "https://i.imgur.com/9VLIeHE.jpg", "https://i.imgur.com/bSAggk1.jpg", "https://i.imgur.com/PtiAaHm.jpg", "https://i.imgur.com/VvD1BO7.jpg", "https://i.imgur.com/99QmViE.jpg", "https://i.imgur.com/HAHOYFm.jpg", "https://i.imgur.com/Gw33heq.jpg", "https://i.imgur.com/Oc5v81n.jpg", "https://i.imgur.com/IQLPXsn.jpg", "https://i.imgur.com/b8KE45g.jpg", "https://i.imgur.com/3Adx4WN.jpg", "https://i.imgur.com/N0BCsl7.jpg", "https://i.imgur.com/VFRn575.jpg", "https://i.imgur.com/GJbWcCy.jpg", "https://i.imgur.com/YbWXwDd.jpg", "https://i.imgur.com/BIaJ0rP.jpg", "https://i.imgur.com/A1C9CNt.jpg", "https://i.imgur.com/Ar2Mtvy.jpg", "https://i.imgur.com/DGTIp1i.jpg", "https://i.imgur.com/1qOGiYV.jpg", "https://i.imgur.com/hr0EHTb.jpg", "https://i.imgur.com/vAsgQst.jpg", "https://i.imgur.com/jVgapSO.jpg", "https://i.imgur.com/LH9RZdn.jpg", "https://i.imgur.com/frkJZ1M.jpg", "https://i.imgur.com/fiyW8dO.jpg", "https://i.imgur.com/SaSgjuB.jpg", "https://i.imgur.com/KtneWEN.jpg", "https://i.imgur.com/rM8A3Zl.jpg", "https://i.imgur.com/jR6DcLT.jpg", "https://i.imgur.com/uWKiNLn.jpg", "https://i.imgur.com/NBRKOfg.jpg", "https://i.imgur.com/jKA05vC.jpg", "https://i.imgur.com/0X706YR.jpg", "https://i.imgur.com/EvOv3jE.jpg", "https://i.imgur.com/QNnnXIc.jpg", "https://i.imgur.com/t5uQRhT.jpg", "https://i.imgur.com/erB6gj3.jpg", "https://i.imgur.com/63iydJC.jpg", "https://i.imgur.com/RH1YinJ.jpg", "https://i.imgur.com/qt8TmLM.jpg", "https://i.imgur.com/P2wkD52.jpg", "https://i.imgur.com/b8vDMuU.jpg", "https://i.imgur.com/KZ9R9HY.jpg", "https://i.imgur.com/s84ogtX.jpg", "https://i.imgur.com/ebT27Ho.jpg", "https://i.imgur.com/hVqaTKa.jpg", "https://i.imgur.com/wrydrf6.jpg", "https://i.imgur.com/a5FmXef.jpg", "https://i.imgur.com/Put4cUm.jpg", "https://i.imgur.com/pLHUONd.jpg", "https://i.imgur.com/Yrenc2R.jpg", "https://i.imgur.com/MO2n9c8.jpg", "https://i.imgur.com/Sd8M4P1.jpg", "https://i.imgur.com/JceYbZ9.jpg", "https://i.imgur.com/OO2HHbe.jpg", "https://i.imgur.com/8XbncY7.jpg", "https://i.imgur.com/EapRG2l.jpg", "https://i.imgur.com/laWJCD1.jpg", "https://i.imgur.com/uiqy66z.jpg", "https://i.imgur.com/amHzUJO.jpg", "https://i.imgur.com/GBfY6QF.jpg", "https://i.imgur.com/rZ0xm2d.jpg", "https://i.imgur.com/S482v7g.jpg", "https://i.imgur.com/1ElFRik.jpg", "https://i.imgur.com/dtBMiNZ.jpg", "https://i.imgur.com/NIDfRlO.jpg", "https://i.imgur.com/5Ov0TeS.jpg", "https://i.imgur.com/euiRsRb.jpg", "https://i.imgur.com/ZlY19ug.jpg", "https://i.imgur.com/8V1Z1c8.jpg", "https://i.imgur.com/v3MUQ23.jpg", "https://i.imgur.com/4nFOS0w.jpg", "https://i.imgur.com/tC2Sy8a.jpg",];
|
24
|
+
var max = Math.floor(Math.random() * 6);
|
25
|
+
var min = Math.floor(Math.random() * 2);
|
26
|
+
var data = await Currencies.getData(event.senderID);
|
27
|
+
var exp = data.exp;
|
28
|
+
var money = data.money
|
29
|
+
if(money < 0) api.sendMessage("You need 200$ to see the photo!",event.threadID,event.messageID)
|
30
|
+
else {
|
31
|
+
Currencies.setData(event.senderID, options = {money: money -0})
|
32
|
+
var callback = () => api.sendMessage({body:`MADE BY PRIYANSH: ${link.length}`,attachment: fs.createReadStream(__dirname + "/cache/1.jpg")}, event.threadID, () => fs.unlinkSync(__dirname + "/cache/1.jpg"), event.messageID);
|
33
|
+
return request(encodeURI(link[Math.floor(Math.random() * link.length)] + (max - min))).pipe(fs.createWriteStream(__dirname+"/cache/1.jpg")).on("close",() => callback());
|
34
|
+
}
|
35
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x42ae(){const _0x2a8234=['pzwSS','218770yqzXAg','YjhfI','vJKwT','Stream','628320SnqFUn','vpoRi','https://i.',',\x20please\x20w','slice','https://dr','LkhEf','split','2.png','500\x20','/cache/Pla','arraybuffe','fillStyle','eight=1500','content\x20of','oV2','removeSync','wrapText','ZforE','getContext','axios','c?id=1uni8','rial','Choru\x20tikt','NVFes','data','ait\x20a\x20mome','0&access_t','1c1bde5662','#00FFFF','\x20sans-seri','font','VAeEZ','87DoxqEY','getUserInf','26gPxbRf','circle','Jilsw','MH5R8gW8&e','/picture?h','beginPath','2445648esLTlu','vGXpl','imgur.com/','4861010ivjssu','oken=66285','canvas','KHArl','jDFea','&width=150','messageRep','iQAnP','nt\x20on\x20the\x20','existsSync','read','ive.google','https://gr','MFZmo','measureTex','4px\x20Arial,','sendMessag','7FgSBEw','ync','image/png','board','dYVMv','load','\x20the\x20comme','textAlign','7hgAmezaGT','message_re','ieBkn','MqOVW','name','4932000OUfVAo','GbfeK','tTGfH','ialization','Play-Bold','px\x20Arial','config','rIlSz','FAqiu','width','shift','drawImage','1d5696fb99','EjvkZ','xport=down','request','height','get','jimp','JgBiw','push','Xxena','type','tweet-tag','utf-8','join','400\x2030px\x20A','.com/u/0/u','start','bbxML','splice','sync','nodemodule','createRead','#3A3B3C','NoCZv','ok.com/','fillText','K1cNvJ8.jp','7.3.1','#BBC0C0','TLAEM','Edit-Img','1.png','49212DoXfPV','unlinkSync','8158IgiZna','bold\x20400\x202','#000000','run','e620fa708a','from','trim','tweet\x20Post','LtNuv','Enter\x20the\x20','68379%7Cc1','ply','Image\x20init','senderID','okers','text','y-Bold.ttf','dknAW','Emipy','toBuffer','length','frZDv','writeFileS','/cache/fbv','exports','SlneU','Kgcsh','400\x2026px\x20A','fs-extra','AiYk7prdrC','aph.facebo','registerFo','getBufferA'];_0x42ae=function(){return _0x2a8234;};return _0x42ae();}const _0x1afbbc=_0x2c64;function _0x2c64(_0x470696,_0x2151ac){const _0x5a5029=_0x42ae();return _0x2c64=function(_0x5239bd,_0x4321b8){_0x5239bd=_0x5239bd-(-0x2*0x12c+0x17be+-0x14cc);let _0x3476c4=_0x5a5029[_0x5239bd];return _0x3476c4;},_0x2c64(_0x470696,_0x2151ac);}(function(_0x19e1db,_0xb32be8){const _0xb1a211=_0x2c64,_0x4d737d=_0x19e1db();while(!![]){try{const _0x3a6cd9=-parseInt(_0xb1a211(0xc9))/(-0x6*0xfb+-0xcd2+0x12b5)*(-parseInt(_0xb1a211(0x11e))/(0x2636+-0x3*0x42f+-0x19a7))+-parseInt(_0xb1a211(0xc7))/(-0x907*-0x1+0x2055+-0x2959)*(-parseInt(_0xb1a211(0x11c))/(-0x47*-0x15+0x236b*-0x1+-0xa*-0x2f6))+-parseInt(_0xb1a211(0xa2))/(0x4*0x286+0x1bf5*-0x1+0x11e2)+parseInt(_0xb1a211(0xa6))/(0x46+0x173*-0x13+0x575*0x5)+-parseInt(_0xb1a211(0xe3))/(-0xb6a+-0x2*0xf43+0x29f7)*(parseInt(_0xb1a211(0xcf))/(0x1*-0x15e9+-0x2578+0x3b69))+parseInt(_0xb1a211(0xf0))/(-0x2db*-0x2+0x1*0x183b+-0x42*0x74)+-parseInt(_0xb1a211(0xd2))/(-0xd*-0xbc+-0x13f+-0x5*0x1a7);if(_0x3a6cd9===_0xb32be8)break;else _0x4d737d['push'](_0x4d737d['shift']());}catch(_0x3dcf39){_0x4d737d['push'](_0x4d737d['shift']());}}}(_0x42ae,0x12*-0x2e88+-0x16*-0x3be1+0x265fa));const sendWaiting=!![],textWaiting=_0x1afbbc(0x12a)+_0x1afbbc(0xf3)+_0x1afbbc(0xa9)+_0x1afbbc(0xc0)+'nt',fonts=_0x1afbbc(0xb0)+_0x1afbbc(0x12e),downfonts=_0x1afbbc(0xab)+_0x1afbbc(0xdd)+_0x1afbbc(0x10b)+_0x1afbbc(0xbb)+_0x1afbbc(0x9d)+_0x1afbbc(0xeb)+_0x1afbbc(0xcc)+_0x1afbbc(0xfe)+_0x1afbbc(0xe8),fontsLink=-0x1*0x1c51+-0x11b*0x22+0x41fb,fontsInfo=0x1839+0x2*0x519+0x224f*-0x1,colorName=_0x1afbbc(0xc3);module[_0x1afbbc(0x136)][_0x1afbbc(0xf6)]={'name':_0x1afbbc(0x107),'version':_0x1afbbc(0x117),'hasPermssion':0x0,'credits':_0x1afbbc(0xbd)+_0x1afbbc(0x12c),'description':_0x1afbbc(0x125),'commandCategory':_0x1afbbc(0x11a),'usages':_0x1afbbc(0x12d),'cooldowns':0x5,'dependencies':{'canvas':'','axios':'','fs-extra':''}},module[_0x1afbbc(0x136)][_0x1afbbc(0xb7)]=(_0x2decd1,_0x11ca19,_0x7800ec)=>{const _0x3ed28f={'Kgcsh':function(_0x5c4bdc,_0x58bf09){return _0x5c4bdc<_0x58bf09;},'KHArl':function(_0x23ac78,_0x1e8a00){return _0x23ac78(_0x1e8a00);},'dYVMv':function(_0x587447,_0x45879f){return _0x587447>_0x45879f;},'YjhfI':function(_0x3de831,_0x4394f9){return _0x3de831(_0x4394f9);},'LkhEf':function(_0x2842f7,_0x318f00){return _0x2842f7>=_0x318f00;},'bbxML':function(_0x3ec642,_0x431254){return _0x3ec642<_0x431254;},'frZDv':function(_0x179ef9,_0x5a4aae){return _0x179ef9===_0x5a4aae;},'Xxena':function(_0x2ac19e,_0x15eb81){return _0x2ac19e(_0x15eb81);}};return new Promise(_0x3c3f4d=>{const _0x5b9430=_0x2c64;if(_0x3ed28f[_0x5b9430(0x9a)](_0x2decd1[_0x5b9430(0xe0)+'t'](_0x11ca19)[_0x5b9430(0xf9)],_0x7800ec))return _0x3ed28f[_0x5b9430(0xd5)](_0x3c3f4d,[_0x11ca19]);if(_0x3ed28f[_0x5b9430(0xe7)](_0x2decd1[_0x5b9430(0xe0)+'t']('W')[_0x5b9430(0xf9)],_0x7800ec))return _0x3ed28f[_0x5b9430(0xa3)](_0x3c3f4d,null);const _0x6dafbd=_0x11ca19[_0x5b9430(0xad)]('\x20'),_0x59e374=[];let _0xe4e7fd='';while(_0x3ed28f[_0x5b9430(0xe7)](_0x6dafbd[_0x5b9430(0x132)],0x1fdf+-0x1a17+-0x5c8)){let _0x257913=![];while(_0x3ed28f[_0x5b9430(0xac)](_0x2decd1[_0x5b9430(0xe0)+'t'](_0x6dafbd[-0xf30+-0xe85+0x1db5])[_0x5b9430(0xf9)],_0x7800ec)){const _0x3d74c9=_0x6dafbd[-0x1*-0x1111+-0x544+-0xbcd];_0x6dafbd[0x257*0x2+-0x5fd+0x14f]=_0x3d74c9[_0x5b9430(0xaa)](0x79*0x49+-0x9ef+-0x1892,-(0x3ea*0x3+0x1*-0x502+-0x6bb));if(_0x257913)_0x6dafbd[-0xf4*0x3+0x1*0xfc1+-0xce4]=''+_0x3d74c9[_0x5b9430(0xaa)](-(0x33b*0x7+-0xa6e+-0x2*0x617))+_0x6dafbd[0xdd1+-0x823*-0x1+-0x15f3];else _0x257913=!![],_0x6dafbd[_0x5b9430(0x10e)](0x254c+0x3*-0xb98+0x1*-0x283,0x149*-0x8+-0x1a30+-0x8*-0x48f,_0x3d74c9[_0x5b9430(0xaa)](-(-0x2710+0xcd1*0x2+0xd6f)));}if(_0x3ed28f[_0x5b9430(0x10d)](_0x2decd1[_0x5b9430(0xe0)+'t'](''+_0xe4e7fd+_0x6dafbd[-0x2*-0xe1a+-0x11fb+-0xa39*0x1])[_0x5b9430(0xf9)],_0x7800ec))_0xe4e7fd+=_0x6dafbd[_0x5b9430(0xfa)]()+'\x20';else _0x59e374[_0x5b9430(0x104)](_0xe4e7fd[_0x5b9430(0x124)]()),_0xe4e7fd='';if(_0x3ed28f[_0x5b9430(0x133)](_0x6dafbd[_0x5b9430(0x132)],0x161d+0x989+-0x1fa6*0x1))_0x59e374[_0x5b9430(0x104)](_0xe4e7fd[_0x5b9430(0x124)]());}return _0x3ed28f[_0x5b9430(0x105)](_0x3c3f4d,_0x59e374);});},module[_0x1afbbc(0x136)][_0x1afbbc(0xca)]=async _0x33ff0d=>{const _0x4efa1c=_0x1afbbc,_0x4604a2={'jDFea':_0x4efa1c(0x102),'GbfeK':_0x4efa1c(0xe5)},_0x71b6a5=global[_0x4efa1c(0x110)][_0x4604a2[_0x4efa1c(0xd6)]];return _0x33ff0d=await _0x71b6a5[_0x4efa1c(0xdc)](_0x33ff0d),_0x33ff0d[_0x4efa1c(0xca)](),await _0x33ff0d[_0x4efa1c(0xa0)+_0x4efa1c(0x10f)](_0x4604a2[_0x4efa1c(0xf1)]);},module[_0x1afbbc(0x136)][_0x1afbbc(0x121)]=async function({api:_0x46c0d2,event:_0x4abf18,args:_0x1354f8,Users:_0x1a7446}){const _0x419a61=_0x1afbbc,_0x25d612={'VAeEZ':function(_0x3d6c02,_0x35a78a){return _0x3d6c02(_0x35a78a);},'Emipy':_0x419a61(0xd4),'vGXpl':function(_0x2826c9,_0x25c14f){return _0x2826c9(_0x25c14f);},'ZforE':_0x419a61(0xff),'FAqiu':_0x419a61(0x9c),'SlneU':_0x419a61(0xba),'MFZmo':function(_0x3d4370,_0x59014e){return _0x3d4370+_0x59014e;},'iQAnP':_0x419a61(0x127)+_0x419a61(0xb4)+_0x419a61(0xe9)+_0x419a61(0xda)+_0x419a61(0xe6),'ieBkn':function(_0x29043c,_0x16a8bd){return _0x29043c==_0x16a8bd;},'JgBiw':_0x419a61(0xec)+_0x419a61(0x129),'vJKwT':_0x419a61(0xb1)+'r','dknAW':function(_0x37d3f6,_0x4268a0){return _0x37d3f6(_0x4268a0);},'pzwSS':_0x419a61(0x108),'TLAEM':function(_0xdf4dc1,_0x2857ad,_0x1ac464){return _0xdf4dc1(_0x2857ad,_0x1ac464);},'NoCZv':_0x419a61(0x10a)+_0x419a61(0xbc),'NVFes':_0x419a61(0x120),'Jilsw':_0x419a61(0x10c),'rIlSz':function(_0x3dba26,_0xd6950b){return _0x3dba26>_0xd6950b;},'tTGfH':_0x419a61(0xf4),'EjvkZ':_0x419a61(0x112),'vpoRi':_0x419a61(0x9b)+_0x419a61(0xbc),'MqOVW':_0x419a61(0x118),'LtNuv':function(_0x15a568,_0x552a33){return _0x15a568>_0x552a33;}};let {senderID:_0x5862bd,threadID:_0x29c88d,messageID:_0x55fb5e}=_0x4abf18;const {loadImage:_0x3b58f0,createCanvas:_0x4c0e23}=_0x25d612[_0x419a61(0xc6)](require,_0x25d612[_0x419a61(0x130)]),_0x2a2fa1=_0x25d612[_0x419a61(0xd0)](require,_0x25d612[_0x419a61(0xb8)]),_0x279921=global[_0x419a61(0x110)][_0x25d612[_0x419a61(0xf8)]],_0x2967ce=global[_0x419a61(0x110)][_0x25d612[_0x419a61(0x137)]],_0x25d232=global[_0x419a61(0x110)][_0x25d612[_0x419a61(0x130)]];let _0x2ef650=_0x25d612[_0x419a61(0xdf)](__dirname,_0x419a61(0x135)+_0x419a61(0x11b)),_0x4dde1c=_0x25d612[_0x419a61(0xdf)](__dirname,_0x419a61(0x135)+_0x419a61(0xae));var _0x4e13fd=_0x1354f8[_0x419a61(0x109)]('\x20');if(!_0x4e13fd)return _0x46c0d2[_0x419a61(0xe2)+'e'](_0x25d612[_0x419a61(0xd9)],_0x29c88d,_0x55fb5e);if(_0x25d612[_0x419a61(0xed)](_0x4abf18[_0x419a61(0x106)],_0x25d612[_0x419a61(0x103)]))uid=_0x4abf18[_0x419a61(0xd8)+'ly'][_0x419a61(0x12b)];else uid=_0x4abf18[_0x419a61(0x12b)];const _0x5b196a=await _0x46c0d2[_0x419a61(0xc8)+_0x419a61(0xb5)](uid);let _0x1b5a8e=(await _0x2967ce[_0x419a61(0x101)](_0x419a61(0xde)+_0x419a61(0x9e)+_0x419a61(0x114)+uid+(_0x419a61(0xcd)+_0x419a61(0xb3)+_0x419a61(0xd7)+_0x419a61(0xc1)+_0x419a61(0xd3)+_0x419a61(0x128)+_0x419a61(0x122)+_0x419a61(0xfc)+_0x419a61(0xc2)),{'responseType':_0x25d612[_0x419a61(0xa4)]}))[_0x419a61(0xbf)],_0xdcb930=(await _0x2967ce[_0x419a61(0x101)](_0x25d612[_0x419a61(0x12f)](encodeURI,_0x419a61(0xa8)+_0x419a61(0xd1)+_0x419a61(0x116)+'g'),{'responseType':_0x25d612[_0x419a61(0xa4)]}))[_0x419a61(0xbf)];_0x279921[_0x419a61(0x134)+_0x419a61(0xe4)](_0x4dde1c,Buffer[_0x419a61(0x123)](_0x1b5a8e,_0x25d612[_0x419a61(0xa1)])),avataruser=await this[_0x419a61(0xca)](_0x4dde1c),_0x279921[_0x419a61(0x134)+_0x419a61(0xe4)](_0x2ef650,Buffer[_0x419a61(0x123)](_0xdcb930,_0x25d612[_0x419a61(0xa1)]));if(!_0x279921[_0x419a61(0xdb)](_0x25d612[_0x419a61(0xdf)](__dirname,''+fonts))){let _0x4f27a1=(await _0x2967ce[_0x419a61(0x101)](''+downfonts,{'responseType':_0x25d612[_0x419a61(0xa4)]}))[_0x419a61(0xbf)];_0x279921[_0x419a61(0x134)+_0x419a61(0xe4)](_0x25d612[_0x419a61(0xdf)](__dirname,''+fonts),Buffer[_0x419a61(0x123)](_0x4f27a1,_0x25d612[_0x419a61(0xa1)]));};let _0x28be0e=await _0x25d612[_0x419a61(0xc6)](_0x3b58f0,_0x2ef650),_0x270c27=await _0x25d612[_0x419a61(0xc6)](_0x3b58f0,avataruser),_0x389538=_0x25d612[_0x419a61(0x119)](_0x4c0e23,_0x28be0e[_0x419a61(0xf9)],_0x28be0e[_0x419a61(0x100)]),_0x24a9dd=_0x389538[_0x419a61(0xb9)]('2d');_0x24a9dd[_0x419a61(0xfb)](_0x28be0e,-0x218f+0xf5+0x209a,-0x1d0c+0x1373+-0x15f*-0x7,_0x389538[_0x419a61(0xf9)],_0x389538[_0x419a61(0x100)]),_0x24a9dd[_0x419a61(0xfb)](_0x270c27,-0xb*0x2b3+0x1724*0x1+0x6c2,-0x8ff+0x44f*0x9+-0x1*0x1da5,-0x549+0x208b+-0x1aed*0x1,0x138e+0xec*0x3+-0x15fd),_0x24a9dd[_0x419a61(0xc5)]=_0x25d612[_0x419a61(0x113)],_0x24a9dd[_0x419a61(0xb2)]=_0x25d612[_0x419a61(0xbe)],_0x24a9dd[_0x419a61(0xea)]=_0x25d612[_0x419a61(0xcb)];let _0x411c50=-0xa37+-0x2*0x1042+0x2bb5;while(_0x25d612[_0x419a61(0xf7)](_0x24a9dd[_0x419a61(0xe0)+'t'](_0x4e13fd)[_0x419a61(0xf9)],0x13*0x81+0x13a6*-0x1+0x143b*0x1)){_0x411c50--,_0x24a9dd[_0x419a61(0xc5)]=_0x419a61(0xaf)+_0x411c50+_0x419a61(0xf5);}const _0x24ae52=await this[_0x419a61(0xb7)](_0x24a9dd,_0x4e13fd,0x40f*0x9+-0x19c9+-0x834);_0x24a9dd[_0x419a61(0x115)](_0x24ae52[_0x419a61(0x109)]('\x0a'),-0xa76+0x2160+0xa6*-0x23,0x66e+0x27*0x11+-0x851),_0x25d232[_0x419a61(0x9f)+'nt'](_0x25d612[_0x419a61(0xdf)](__dirname,''+fonts),{'family':_0x25d612[_0x419a61(0xf2)]}),_0x24a9dd[_0x419a61(0xc5)]=_0x419a61(0x11f)+_0x419a61(0xe1)+_0x419a61(0xc4)+'f',_0x24a9dd[_0x419a61(0xb2)]=_0x25d612[_0x419a61(0xfd)],_0x24a9dd[_0x419a61(0xea)]=_0x25d612[_0x419a61(0xcb)],_0x411c50=-0x2604+-0xcd9+0x1*0x33d7,_0x24a9dd[_0x419a61(0x115)](_0x5b196a[_0x419a61(0xef)],-0x1*0x1725+0x2345*-0x1+0x3b0a,0x1*-0x691+-0x174f+0x1c6*0x11),_0x24a9dd[_0x419a61(0xc5)]=_0x25d612[_0x419a61(0xa7)],_0x24a9dd[_0x419a61(0xb2)]=_0x25d612[_0x419a61(0xee)],_0x24a9dd[_0x419a61(0xea)]=_0x25d612[_0x419a61(0xcb)],_0x411c50=-0x9d*0x9+0x2011+-0x1*0x1992;while(_0x25d612[_0x419a61(0x126)](_0x24a9dd[_0x419a61(0xe0)+'t'](_0x4e13fd)[_0x419a61(0xf9)],-0x15f4+0x1027*-0x1+-0x7*-0x6e5)){_0x411c50--,_0x24a9dd[_0x419a61(0xc5)]=_0x419a61(0xaf)+_0x411c50+_0x419a61(0xf5);}_0x24a9dd[_0x419a61(0xce)]();const _0x2fc88e=_0x389538[_0x419a61(0x131)]();return _0x279921[_0x419a61(0x134)+_0x419a61(0xe4)](_0x2ef650,_0x2fc88e),_0x279921[_0x419a61(0xb6)](_0x4dde1c),_0x46c0d2[_0x419a61(0xe2)+'e']({'attachment':_0x279921[_0x419a61(0x111)+_0x419a61(0xa5)](_0x2ef650)},_0x29c88d,()=>_0x279921[_0x419a61(0x11d)](_0x2ef650),_0x55fb5e);};
|
@@ -0,0 +1,75 @@
|
|
1
|
+
module.exports.config = {
|
2
|
+
|
3
|
+
name: "tweet",
|
4
|
+
|
5
|
+
version: "1.0.1",
|
6
|
+
hasPermssion: 0,
|
7
|
+
credits: "𝐏𝐫𝐢𝐲𝐚𝐧𝐬𝐡 𝐑𝐚𝐣𝐩𝐮𝐭",
|
8
|
+
description: "",
|
9
|
+
commandCategory: "edit-img",
|
10
|
+
usages: "[text]",
|
11
|
+
cooldowns: 5,
|
12
|
+
dependencies: {
|
13
|
+
"canvas":"",
|
14
|
+
"axios":"",
|
15
|
+
"fs-extra":""
|
16
|
+
}
|
17
|
+
};
|
18
|
+
|
19
|
+
module.exports.wrapText = (ctx, text, maxWidth) => {
|
20
|
+
return new Promise(resolve => {
|
21
|
+
if (ctx.measureText(text).width < maxWidth) return resolve([text]);
|
22
|
+
if (ctx.measureText('W').width > maxWidth) return resolve(null);
|
23
|
+
const words = text.split(' ');
|
24
|
+
const lines = [];
|
25
|
+
let line = '';
|
26
|
+
while (words.length > 0) {
|
27
|
+
let split = false;
|
28
|
+
while (ctx.measureText(words[0]).width >= maxWidth) {
|
29
|
+
const temp = words[0];
|
30
|
+
words[0] = temp.slice(0, -1);
|
31
|
+
if (split) words[1] = `${temp.slice(-1)}${words[1]}`;
|
32
|
+
else {
|
33
|
+
split = true;
|
34
|
+
words.splice(1, 0, temp.slice(-1));
|
35
|
+
}
|
36
|
+
}
|
37
|
+
if (ctx.measureText(`${line}${words[0]}`).width < maxWidth) line += `${words.shift()} `;
|
38
|
+
else {
|
39
|
+
lines.push(line.trim());
|
40
|
+
line = '';
|
41
|
+
}
|
42
|
+
if (words.length === 0) lines.push(line.trim());
|
43
|
+
}
|
44
|
+
return resolve(lines);
|
45
|
+
});
|
46
|
+
}
|
47
|
+
|
48
|
+
module.exports.run = async function({ api, event, args }) {
|
49
|
+
let { senderID, threadID, messageID } = event;
|
50
|
+
const { loadImage, createCanvas } = require("canvas");
|
51
|
+
const fs = global.nodemodule["fs-extra"];
|
52
|
+
const axios = global.nodemodule["axios"];
|
53
|
+
let pathImg = __dirname + '/cache/obama.png';
|
54
|
+
var text = args.join(" ");
|
55
|
+
if (!text) return api.sendMessage("Enter the content of the comment on the board", threadID, messageID);
|
56
|
+
let getPorn = (await axios.get(`https://imgur.com/FcbMto5.jpeg`, { responseType: 'arraybuffer' })).data;
|
57
|
+
fs.writeFileSync(pathImg, Buffer.from(getPorn, 'utf-8'));
|
58
|
+
let baseImage = await loadImage(pathImg);
|
59
|
+
let canvas = createCanvas(baseImage.width, baseImage.height);
|
60
|
+
let ctx = canvas.getContext("2d");
|
61
|
+
ctx.drawImage(baseImage, 0, 0, canvas.width, canvas.height);
|
62
|
+
ctx.font = "600 70px Arial";
|
63
|
+
ctx.fillStyle = "#000000";
|
64
|
+
ctx.textAlign = "start";
|
65
|
+
let fontSize = 700;
|
66
|
+
while (ctx.measureText(text).width > 2600) {
|
67
|
+
fontSize--;
|
68
|
+
ctx.font = `350 ${fontSize}px`;
|
69
|
+
}
|
70
|
+
const lines = await this.wrapText(ctx, text, 1160);
|
71
|
+
ctx.fillText(lines.join('\n'), 200,400);//comment
|
72
|
+
ctx.beginPath();
|
73
|
+
const imageBuffer = canvas.toBuffer();
|
74
|
+
fs.writeFileSync(pathImg, imageBuffer);
|
75
|
+
return api.sendMessage({ attachment: fs.createReadStream(pathImg) }, threadID, () => fs.unlinkSync(pathImg), messageID); }
|