diff --git a/.env.sample b/.env.sample index 9d792fb360..78e4771d71 100644 --- a/.env.sample +++ b/.env.sample @@ -3,8 +3,7 @@ API_ID= API_HASH= SESSION= -BOT_USERNAME= BOT_TOKEN= REDIS_URI= REDIS_PASSWORD= -LOG_CHANNEL= \ No newline at end of file +LOG_CHANNEL= diff --git a/.gitignore b/.gitignore index 34d5effca7..9505c4f5f5 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,6 @@ addons/ ultroid.log target/npmlist.json node_modules -glitch_me/ \ No newline at end of file +glitch_me/ +.idea +venv/ diff --git a/Dockerfile b/Dockerfile index 0d27297804..578ae7aa0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,19 +3,14 @@ # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > # PLease read the GNU Affero General Public License in . -FROM ultroidteam/ultroid:0.0.3 -#RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ -# dpkg -i ./google-chrome-stable_current_amd64.deb; apt -fqqy install && \ -# rm ./google-chrome-stable_current_amd64.deb -#RUN wget -O chromedriver.zip http://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \ -# unzip chromedriver.zip chromedriver -d /usr/bin/ && \ -# rm chromedriver.zip -RUN curl --silent --location https://deb.nodesource.com/setup_15.x | bash - -RUN apt-get install -y nodejs +FROM programmingerror/ultroid:v0.0.1 + RUN git clone https://github.com/TeamUltroid/Ultroid.git /root/TeamUltroid/ + RUN git clone https://github.com/1Danish-00/glitch_me.git && pip install -e ./glitch_me WORKDIR /root/TeamUltroid/ -RUN pip install -r requirements.txt -RUN rm -rf /usr/local/lib/python3.9/site-packages/.wh* -RUN npm install -g npm@7.9.0 && npm install + +RUN pip3 install -r requirements.txt +RUN npm install -g npm@7.11.2 -g +RUN npm install RUN npm run build diff --git a/README.md b/README.md index 25dcd3695e..899d8b413c 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,7 @@ [![Open Source Love svg2](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/TeamUltroid/Ultroid) [![Contributors](https://img.shields.io/github/contributors/TeamUltroid/Ultroid?style=flat-square&color=green)](https://github.com/TeamUltroid/Ultroid/graphs/contributors) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com) -[![License](https://img.shields.io/badge/License-AGPL-blue)](https://github.com/TeamUltroid/Ultroid/blob/main/LICENSE) -[![HitCount](http://hits.dwyl.com/Teamultroid/Teamultroid/Ultroid.svg)](http://hits.dwyl.com/Teamultroid/Teamultroid/Ultroid) +[![License](https://img.shields.io/badge/License-AGPL-blue)](https://github.com/TeamUltroid/Ultroid/blob/main/LICENSE) [![Sparkline](https://stars.medv.io/Teamultroid/Ultroid.svg)](https://stars.medv.io/TeamUltroid/Ultroid) ---- @@ -104,3 +103,4 @@ Ultroid is licensed under [GNU Affero General Public License](https://www.gnu.or * [![TeamUltroid-Devs](https://img.shields.io/static/v1?label=Teamultroid&message=devs&color=critical)](https://t.me/UltroidDevs) * [Lonami](https://github.com/LonamiWebs/) for [Telethon.](https://github.com/LonamiWebs/Telethon) * [AndrewLaneX](https://github.com/AndrewLaneX) for [tgcalls.](http://github.com/tgcallsjs/tgcalls) + diff --git a/app.json b/app.json index b83cbd2623..0166204dbd 100644 --- a/app.json +++ b/app.json @@ -22,10 +22,6 @@ "description": "You api hash, from my.telegram.org or @ScrapperRoBot.", "value": "" }, - "BOT_USERNAME": { - "description": "Make a bot from @BotFather, and enter it's username here, with '@'", - "value": "" - }, "BOT_TOKEN": { "description": "Make a bot from @BotFather, and enter it's api token here.", "value": "" @@ -56,5 +52,15 @@ "description": "Create a private group. Add @missrose_bot and your BOT_USERNAME bot. Do /id. Paste that here", "value": "" } + }, + "formation": { + "worker": { + "quantity": 1, + "size": "free" + }, + "web": { + "quantity": 0, + "size": "free" + } } -} \ No newline at end of file +} diff --git a/assistant/inlinestuff.py b/assistant/inlinestuff.py index 3d61829f14..86a8543bc4 100644 --- a/assistant/inlinestuff.py +++ b/assistant/inlinestuff.py @@ -14,8 +14,6 @@ from bs4 import BeautifulSoup from orangefoxapi import OrangeFoxAPI from play_scraper import search -from rextester_py import rexec_aio -from rextester_py.rextester_aio import UnknownLanguage from search_engine_parser import GoogleSearch, YahooSearch from telethon import Button from telethon.tl.types import InputWebDocument as wb @@ -28,14 +26,6 @@ yeah = "https://telegra.ph/file/e3c67885e16a194937516.jpg" ps = "https://telegra.ph/file/de0b8d9c858c62fae3b6e.jpg" ultpic = "https://telegra.ph/file/4136aa1650bc9d4109cc5.jpg" -rex_langs = """ada, bash, brainfuck, c (clang), c, c (vc), -c#, c++ (clang), c++, c++ (vc++), d, elixir, -erlang, f#, fortran, go, haskell, java, js, -kotlin, lisp, lua, mysql, nasm, node, -objective-c, ocaml, octave, oracle, pascal, -perl, php, postgresql, prolog, python, -python3, r, ruby, scala, scheme, sql server, -swift, tcl, vb.net""" ofox_api = OrangeFoxAPI() @@ -156,6 +146,11 @@ async def repo(e): text="• **ULTROID USERBOT** •", buttons=[ [Button.url("Repo", url="https://github.com/TeamUltroid/Ultroid")], + [ + Button.url( + "Addons", url="https://github.com/TeamUltroid/UltroidAddons" + ) + ], [Button.url("Support", url="t.me/UltroidSupport")], ], ), diff --git a/assistant/localization.py b/assistant/localization.py index 720f64a0cd..1ac30f0675 100644 --- a/assistant/localization.py +++ b/assistant/localization.py @@ -36,4 +36,5 @@ async def settt(event): udB.set("language", f"{lang}") await event.edit( f"Your language has been set to {languages[lang]['natively']} [{lang}].", + buttons=get_back_button("lang"), ) diff --git a/assistant/othervars.py b/assistant/othervars.py index 7b9b6fba89..6dc5ae705d 100644 --- a/assistant/othervars.py +++ b/assistant/othervars.py @@ -5,8 +5,10 @@ # PLease read the GNU Affero General Public License in # . -import os +import re +from os import execl, remove +import requests from telegraph import Telegraph from telegraph import upload_file as upl @@ -22,6 +24,109 @@ TOKEN_FILE = "resources/auths/auth_token.txt" +@callback("updatenow") +@owner +async def update(eve): + repo = Repo() + ac_br = repo.active_branch + ups_rem = repo.remote("upstream") + if Var.HEROKU_API: + import heroku3 + + heroku = heroku3.from_key(Var.HEROKU_API) + heroku_app = None + heroku_applications = heroku.apps() + for app in heroku_applications: + if app.name == Var.HEROKU_APP_NAME: + heroku_app = app + if heroku_app is None: + await eve.edit("`Invalid Heroku credentials for updating userbot dyno.`") + repo.__del__() + return + await eve.edit( + "`Userbot dyno build in progress, please wait for it to complete.`" + ) + ups_rem.fetch(ac_br) + repo.git.reset("--hard", "FETCH_HEAD") + heroku_git_url = heroku_app.git_url.replace( + "https://", "https://api:" + Var.HEROKU_API + "@" + ) + if "heroku" in repo.remotes: + remote = repo.remote("heroku") + remote.set_url(heroku_git_url) + else: + remote = repo.create_remote("heroku", heroku_git_url) + try: + remote.push(refspec=f"HEAD:refs/heads/{ac_br}", force=True) + except GitCommandError as error: + await eve.edit(f"`Here is the error log:\n{error}`") + repo.__del__() + return + await eve.edit("`Successfully Updated!\nRestarting, please wait...`") + else: + try: + ups_rem.pull(ac_br) + except GitCommandError: + repo.git.reset("--hard", "FETCH_HEAD") + await updateme_requirements() + await eve.edit( + "`Successfully Updated!\nBot is restarting... Wait for a second!`" + ) + execl(sys.executable, sys.executable, "-m", "pyUltroid") + + +@callback("changes") +@owner +async def changes(okk): + repo = Repo.init() + ac_br = repo.active_branch + changelog, tl_chnglog = await gen_chlog(repo, f"HEAD..upstream/{ac_br}") + changelog_str = changelog + f"\n\nClick the below button to update!" + tldr_str = tl_chnglog + f"\n\nClick the below button to update!" + if len(changelog_str) > 1024: + await okk.edit(get_string("upd_4")) + file = open(f"ultroid_updates.txt", "w+") + file.write(tldr_str) + file.close() + await okk.edit( + get_string("upd_5"), + file="ultroid_updates.txt", + buttons=Button.inline("Update Now", data="updatenow"), + ) + remove(f"ultroid_updates.txt") + return + else: + await okk.edit( + changelog_str, + buttons=Button.inline("Update Now", data="updatenow"), + parse_mode="html", + ) + + +@callback(re.compile("pasta-(.*)")) +@owner +async def _(e): + ok = e.data_match.group(1) + hmm = open(ok) + hmmm = hmm.read() + hmm.close() + key = ( + requests.post("https://nekobin.com/api/documents", json={"content": hmmm}) + .json() + .get("result") + .get("key") + ) + await e.edit( + f"Pasted to Nekobin\n 👉[Link](https://nekobin.com/{key})\n 👉[Raw Link](https://nekobin.com/raw/{key})", + buttons=Button.switch_inline( + "Search Again..?", + query="send ", + same_peer=True, + ), + link_preview=False, + ) + + @callback("authorise") @owner async def _(e): @@ -54,7 +159,7 @@ async def _(e): + "1. Open Google Drive App.\n" + "2. Create Folder.\n" + "3. Make that folder public.\n" - + "4. Copy link of that folder." + + "4. Copy link of that folder.\n" + "5. Send all characters which is after id= .", ) async with ultroid_bot.asst.conversation(e.sender_id) as conv: @@ -492,7 +597,7 @@ async def media(event): try: x = upl(media) url = f"https://telegra.ph/{x[0]}" - os.remove(media) + remove(media) except BaseException: return await conv.send_message( "Terminated.", @@ -561,6 +666,11 @@ async def name(event): buttons=get_back_button("pmcstm"), ) else: + if len(themssg) > 4090: + return await conv.send_message( + "Message too long!\nGive a shorter message please!!", + buttons=get_back_button("pmcstm"), + ) await setit(event, var, themssg) await conv.send_message( "{} changed to {}\n\nAfter Setting All Things Do restart".format( @@ -633,7 +743,7 @@ async def media(event): try: x = upl(media) url = f"https://telegra.ph/{x[0]}" - os.remove(media) + remove(media) except BaseException: return await conv.send_message( "Terminated.", @@ -783,7 +893,7 @@ async def chbot(event): buttons=[ [Button.inline("Cʜᴀᴛ Bᴏᴛ Oɴ", data="onchbot")], [Button.inline("Cʜᴀᴛ Bᴏᴛ Oғғ", data="ofchbot")], - [Button.inline("Bᴏᴛ Wᴇʟᴄᴏɴᴇ", data="bwel")], + [Button.inline("Bᴏᴛ Wᴇʟᴄᴏᴍᴇ", data="bwel")], [Button.inline("« Bᴀᴄᴋ", data="setter")], ], link_preview=False, diff --git a/assistant/pmbot/incoming.py b/assistant/pmbot/incoming.py index 48d9b7f8f6..82899c0faf 100644 --- a/assistant/pmbot/incoming.py +++ b/assistant/pmbot/incoming.py @@ -17,7 +17,7 @@ # if incoming -@asst.on(events.NewMessage(func=lambda e: e.is_private)) +@asst.on(events.NewMessage(incoming=True, func=lambda e: e.is_private)) async def on_new_mssg(event): incoming = event.raw_text who = event.sender_id diff --git a/assistant/pmbot/outgoing.py b/assistant/pmbot/outgoing.py index 252dd2ce34..e6b30fcd2c 100644 --- a/assistant/pmbot/outgoing.py +++ b/assistant/pmbot/outgoing.py @@ -14,7 +14,7 @@ # outgoing -@asst.on(events.NewMessage(func=lambda e: e.is_private)) +@asst.on(events.NewMessage(incoming=True, func=lambda e: e.is_private)) async def on_out_mssg(event): x = await event.get_reply_message() if x is None: diff --git a/assistant/start.py b/assistant/start.py index 9d1dd3eadf..41af4839f3 100644 --- a/assistant/start.py +++ b/assistant/start.py @@ -16,6 +16,15 @@ from . import * +Owner_info_msg = f""" +**Owner** - {OWNER_NAME} +**OwnerID** - `{OWNER_ID}` + +**Message Forwards** - {udB.get("PMBOT")} + +__Ultroid {ultroid_version}, powered by @TeamUltroid__ +""" + @asst_cmd("start") async def assistant(event): @@ -31,23 +40,33 @@ async def assistant(event): ok = "" if event.is_private and event.sender_id in sed: return + u = await event.client.get_entity(event.chat_id) if not udB.get("STARTMSG"): if udB.get("PMBOT") == "True": ok = "You can contact my master using this bot!!\n\nSend your Message, I will Deliver it To Master." await event.reply( - f"Hey there, this is Ultroid Assistant of {OWNER_NAME}!\n\n{ok}", - buttons=[Button.url("Know More", url="https://t.me/TeamUltroid")], + f"Hey there [{get_display_name(u)}](tg://user?id={u.id}), this is Ultroid Assistant of [{ultroid_bot.me.first_name}](tg://user?id={ultroid_bot.uid})!\n\n{ok}", + buttons=[Button.inline("Info.", data="ownerinfo")], ) else: - u = await event.client.get_entity(event.chat_id) me = f"[{ultroid_bot.me.first_name}](tg://user?id={ultroid_bot.uid})" mention = f"[{get_display_name(u)}](tg://user?id={u.id})" await event.reply( Redis("STARTMSG").format(me=me, mention=mention), - buttons=[Button.url("Know More", url="https://t.me/TeamUltroid")], + buttons=[Button.inline("Info.", data="ownerinfo")], ) +@callback("ownerinfo") +async def own(event): + await event.edit(Owner_info_msg, buttons=[Button.inline("Close", data="closeit")]) + + +@callback("closeit") +async def closet(lol): + await lol.delete() + + @asst_cmd("start ?(.*)") @owner async def ultroid(event): diff --git a/assistant/ytdl.py b/assistant/ytdl.py index 2bc87e73f1..6f6ca30f34 100644 --- a/assistant/ytdl.py +++ b/assistant/ytdl.py @@ -134,7 +134,7 @@ async def _(sur): if sur.is_private and sur.sender_id != ultroid_bot.uid: chat = sur.sender_id whome = asst - MSG += f"\nGet at {Var.BOT_USERNAME}" + MSG += f"\nGet at {asst.me.username}" try: await whome.send_file( chat, @@ -217,7 +217,7 @@ async def _(fuk): if event.is_private and event.sender_id != ultroid_bot.uid: chat = fuk.sender_id whome = asst - MSG += f"\nGet at {Var.BOT_USERNAME}" + MSG += f"\nGet at {asst.me.username}" try: await whome.send_file( chat, diff --git a/commit b/commit deleted file mode 100644 index 71d19aafa2..0000000000 --- a/commit +++ /dev/null @@ -1,2 +0,0 @@ -Spam -dd diff --git a/package-lock.json b/package-lock.json index 284722f0a4..98b3f7eb2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,2283 @@ { "name": "ultroid-vcbot", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "ultroid-vcbot", + "version": "1.0.0", + "license": "AGPL-3.0", + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.0", + "@youtwitface/escape-html": "^1.0.0", + "dotenv": "^8.2.0", + "envalid": "^7.0.0", + "redis": "^3.0.2", + "telegraf": "^4.3.0", + "tgcalls": "^0.1.2", + "ws": "^7.4.3" + }, + "devDependencies": { + "@types/node": "^14.14.25", + "@types/redis": "^2.8.28", + "@types/ws": "^7.4.0", + "nodemon": "^2.0.7", + "ts-node": "^9.1.1", + "typegram": "^3.1.9", + "typescript": "^4.1.3" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.1.tgz", + "integrity": "sha512-CUBdThIZMoLEQQxACwhLsPg/puxBca0abTH3ixuvBQkhjJ80Hdp99jmVjxFCOa52/tZqN9d70IbGUf+OuKDHGA==", + "dependencies": { + "detect-libc": "^1.0.3", + "http-proxy-agent": "^4.0.1", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.1", + "nopt": "^5.0.0", + "npmlog": "^4.1.2", + "rimraf": "^3.0.2", + "semver": "^7.3.4", + "tar": "^6.1.0" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "dev": true, + "dependencies": { + "defer-to-connect": "^1.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/node": { + "version": "14.14.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.35.tgz", + "integrity": "sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag==", + "dev": true + }, + "node_modules/@types/redis": { + "version": "2.8.28", + "resolved": "https://registry.npmjs.org/@types/redis/-/redis-2.8.28.tgz", + "integrity": "sha512-8l2gr2OQ969ypa7hFOeKqtFoY70XkHxISV0pAwmQ2nm6CSPb1brmTmqJCGGrekCo+pAZyWlNXr+Kvo6L/1wijA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/ws": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.4.0.tgz", + "integrity": "sha512-Y29uQ3Uy+58bZrFLhX36hcI3Np37nqWE7ky5tjiDoy1GDZnIwVxS0CgF+s+1bXMzjKBFy+fqaRfb708iNzdinw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@youtwitface/escape-html": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@youtwitface/escape-html/-/escape-html-1.1.3.tgz", + "integrity": "sha512-ZTE6NDvovm1S9jtzITZJvTiq4At09bDQjH4M/MNiZJq78LehIltGodCBZA5RROIE3bkQGJa9EwN37d5qgSFCfg==" + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ansi-align": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", + "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", + "dev": true, + "dependencies": { + "string-width": "^3.0.0" + } + }, + "node_modules/ansi-align/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-align/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ansi-align/node_modules/string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-align/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" + }, + "node_modules/are-we-there-yet": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", + "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "dev": true, + "dependencies": { + "ansi-align": "^3.0.0", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "cli-boxes": "^2.2.0", + "string-width": "^4.1.0", + "term-size": "^2.1.0", + "type-fest": "^0.8.1", + "widest-line": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/boxen/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/boxen/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "dependencies": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "node_modules/buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" + }, + "node_modules/buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=" + }, + "node_modules/buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "node_modules/cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dev": true, + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", + "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.1", + "braces": "~3.0.2", + "glob-parent": "~5.1.0", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.5.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.1" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "node_modules/cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + } + }, + "node_modules/code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "node_modules/configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "dev": true, + "dependencies": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", + "dev": true + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" + }, + "node_modules/denque": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz", + "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/domexception": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", + "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", + "optional": true, + "dependencies": { + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "dependencies": { + "is-obj": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", + "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/envalid": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/envalid/-/envalid-7.1.0.tgz", + "integrity": "sha512-C5rtCxfj+ozW5q79fBYKcBEf0KSNklKwZudjCzXy9ANT8Pz1MKxPBn6unZnYXXy6e+cqVgnEURQeXmdueG9/kA==", + "engines": { + "node": ">=8.12" + } + }, + "node_modules/escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dependencies": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/global-dirs": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.1.0.tgz", + "integrity": "sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==", + "dev": true, + "dependencies": { + "ini": "1.3.7" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/global-dirs/node_modules/ini": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "dev": true + }, + "node_modules/got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dev": true, + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", + "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" + }, + "node_modules/has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", + "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "dev": true + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", + "dev": true + }, + "node_modules/ignore-walk": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", + "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", + "dependencies": { + "minimatch": "^3.0.4" + } + }, + "node_modules/import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-installed-globally": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", + "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "dev": true, + "dependencies": { + "global-dirs": "^2.0.1", + "is-path-inside": "^3.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-npm": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", + "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "node_modules/is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", + "dev": true + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", + "dev": true + }, + "node_modules/keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.0" + } + }, + "node_modules/latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "dev": true, + "dependencies": { + "package-json": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "node_modules/minipass": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.3.tgz", + "integrity": "sha512-Mgd2GdMVzY+x3IJ+oHnVM+KG3lA5c8tnabyJKmHSaG2kAGpudxuOf8ToDkhumF7UzME7DecbQE9uOZhNm7PuJg==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/module-alias": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/module-alias/-/module-alias-2.2.2.tgz", + "integrity": "sha512-A/78XjoX2EmNvppVWEhM2oGk3x4lLxnkEA4jTbaK97QKSDjkIoOsKQlfylt/d3kKKi596Qy3NP5XrXJ6fZIC9Q==" + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/needle": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.6.0.tgz", + "integrity": "sha512-KKYdza4heMsEfSWD7VPUIz3zX2XDwOyX2d+geb4vrERZMT5RMU6ujjaD+I5Yr54uZxQ2w6XRTAhHBbSCyovZBg==", + "dependencies": { + "debug": "^3.2.6", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/needle/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/nodemon": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.7.tgz", + "integrity": "sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "chokidar": "^3.2.2", + "debug": "^3.2.6", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.0.4", + "pstree.remy": "^1.1.7", + "semver": "^5.7.1", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.3", + "update-notifier": "^4.1.0" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nodemon/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", + "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm-bundled": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", + "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", + "dependencies": { + "npm-normalize-package-bin": "^1.0.1" + } + }, + "node_modules/npm-normalize-package-bin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", + "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==" + }, + "node_modules/npm-packlist": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.8.tgz", + "integrity": "sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A==", + "dependencies": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1", + "npm-normalize-package-bin": "^1.0.1" + } + }, + "node_modules/npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dependencies": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "node_modules/number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "dependencies": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "node_modules/p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-timeout": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-4.1.0.tgz", + "integrity": "sha512-+/wmHtzJuWii1sXn3HCuH/FTwGhrp4tmJTxSKJbfS+vkipci6osxXM5mY0jUiRzWKMTgUT8l7HFbeSwZAynqHw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "dev": true, + "dependencies": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/package-json/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/pupa": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", + "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", + "dev": true, + "dependencies": { + "escape-goat": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readdirp": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", + "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/redis": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/redis/-/redis-3.0.2.tgz", + "integrity": "sha512-PNhLCrjU6vKVuMOyFu7oSP296mwBkcE6lrAjruBYG5LgdSqtRBoVQIylrMyVZD/lkF24RSNNatzvYag6HRBHjQ==", + "dependencies": { + "denque": "^1.4.1", + "redis-commands": "^1.5.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/redis-commands": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.7.0.tgz", + "integrity": "sha512-nJWqw3bTFy21hX/CPKHth6sfhZbdiHP6bTawSgQBlKOVRG7EZkfHbbHwQJnrE4vsQf0CMNE+3gJ4Fmm16vdVlQ==" + }, + "node_modules/redis-errors": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", + "integrity": "sha1-62LSrbFeTq9GEMBK/hUpOEJQq60=", + "engines": { + "node": ">=4" + } + }, + "node_modules/redis-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", + "integrity": "sha1-tm2CjNyv5rS4pCin3vTGvKwxyLQ=", + "dependencies": { + "redis-errors": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/registry-auth-token": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz", + "integrity": "sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==", + "dev": true, + "dependencies": { + "rc": "^1.2.8" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/registry-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "dev": true, + "dependencies": { + "rc": "^1.2.8" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "dev": true, + "dependencies": { + "lowercase-keys": "^1.0.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/safe-compare": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/safe-compare/-/safe-compare-1.1.4.tgz", + "integrity": "sha512-b9wZ986HHCo/HbKrRpBJb2kqXMK9CEWIE1egeEvZsYn69ay3kdfl9nG3RyOcR+jInTDf7a86WQ1d4VJX7goSSQ==", + "dependencies": { + "buffer-alloc": "^1.2.0" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/sandwich-stream": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/sandwich-stream/-/sandwich-stream-2.0.2.tgz", + "integrity": "sha512-jLYV0DORrzY3xaz/S9ydJL6Iz7essZeAfnAavsJ+zsJGZ1MOnsS52yRjU3uF3pJa/lla7+wisp//fxOwOH8SKQ==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "dev": true, + "dependencies": { + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/semver-diff/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" + }, + "node_modules/signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tar": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.0.tgz", + "integrity": "sha512-DUCttfhsnLCjwoDoFcI+B2iJgYa93vBnDUATYEeRx6sntCTdN01VnqsIuTlALXla/LWooNg0yEGeB+Y8WdFxGA==", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/telegraf": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/telegraf/-/telegraf-4.3.0.tgz", + "integrity": "sha512-MuDUtSMipzMzQp8fXbQx76jp4ZD70KREdnpH1idUzN9Zlgm6EzatBQFU4Ps0ipxtEmnBBdghBMumQwrjRe3eqg==", + "dependencies": { + "abort-controller": "^3.0.0", + "debug": "^4.3.1", + "minimist": "^1.2.5", + "module-alias": "^2.2.2", + "node-fetch": "^2.6.1", + "p-timeout": "^4.1.0", + "safe-compare": "^1.1.4", + "sandwich-stream": "^2.0.2", + "typegram": "^3.2.0" + }, + "bin": { + "telegraf": "bin/telegraf" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/tgcalls": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/tgcalls/-/tgcalls-0.1.2.tgz", + "integrity": "sha512-b4hGcMPtTWn3pNY3GhgSh+fWHRO4seeoGBuTfg5CBQkD5LlSRYYqwjpAptaYzBJDgU4pDnwp8N+sBs05PwzuSw==", + "dependencies": { + "wrtc": "^0.4.7" + } + }, + "node_modules/to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "dependencies": { + "nopt": "~1.0.10" + }, + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/touch/node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + } + }, + "node_modules/ts-node": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.1.1.tgz", + "integrity": "sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==", + "dev": true, + "dependencies": { + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "source-map-support": "^0.5.17", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typegram": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/typegram/-/typegram-3.2.3.tgz", + "integrity": "sha512-zlkY7vNTLcwQhLUyYXAUzRelzH752LBFl8m4u04d5g5P7lM9bGegeIRwzd3mVCHJH6R3s48pKeFTVSdVlN+omg==" + }, + "node_modules/typescript": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz", + "integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/undefsafe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", + "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", + "dev": true, + "dependencies": { + "debug": "^2.2.0" + } + }, + "node_modules/undefsafe/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/undefsafe/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/update-notifier": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", + "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", + "dev": true, + "dependencies": { + "boxen": "^4.2.0", + "chalk": "^3.0.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.3.1", + "is-npm": "^4.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.0.0", + "pupa": "^2.0.1", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "dev": true, + "dependencies": { + "prepend-http": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "optional": true + }, + "node_modules/wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dependencies": { + "string-width": "^1.0.2 || 2" + } + }, + "node_modules/widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "dev": true, + "dependencies": { + "string-width": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/widest-line/node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/widest-line/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/widest-line/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/widest-line/node_modules/string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/widest-line/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/wrtc": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/wrtc/-/wrtc-0.4.7.tgz", + "integrity": "sha512-P6Hn7VT4lfSH49HxLHcHhDq+aFf/jd9dPY7lDHeFhZ22N3858EKuwm2jmnlPzpsRGEPaoF6XwkcxY5SYnt4f/g==", + "hasInstallScript": true, + "dependencies": { + "node-pre-gyp": "^0.13.0" + }, + "engines": { + "node": "^8.11.2 || >=10.0.0" + }, + "optionalDependencies": { + "domexception": "^1.0.1" + } + }, + "node_modules/wrtc/node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" + }, + "node_modules/wrtc/node_modules/fs-minipass": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", + "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", + "dependencies": { + "minipass": "^2.6.0" + } + }, + "node_modules/wrtc/node_modules/minipass": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", + "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", + "dependencies": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "node_modules/wrtc/node_modules/minizlib": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", + "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", + "dependencies": { + "minipass": "^2.9.0" + } + }, + "node_modules/wrtc/node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/wrtc/node_modules/node-pre-gyp": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.13.0.tgz", + "integrity": "sha512-Md1D3xnEne8b/HGVQkZZwV27WUi1ZRuZBij24TNaZwUPU3ZAFtvT6xxJGaUVillfmMKnn5oD1HoGsp2Ftik7SQ==", + "dependencies": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.1", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.2.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/wrtc/node_modules/nopt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz", + "integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==", + "dependencies": { + "abbrev": "1", + "osenv": "^0.1.4" + }, + "bin": { + "nopt": "bin/nopt.js" + } + }, + "node_modules/wrtc/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/wrtc/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/wrtc/node_modules/tar": { + "version": "4.4.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.13.tgz", + "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", + "dependencies": { + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.8.6", + "minizlib": "^1.2.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.3" + }, + "engines": { + "node": ">=4.5" + } + }, + "node_modules/wrtc/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "node_modules/ws": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.4.tgz", + "integrity": "sha512-Qm8k8ojNQIMx7S+Zp8u/uHOx7Qazv3Yv4q68MiWWWOJhiwG5W3x7iqmRtJo8xxrciZUY4vRxUTJCKuRnF28ZZw==", + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/xdg-basedir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + } + }, "dependencies": { "@mapbox/node-pre-gyp": { "version": "1.0.1", @@ -1375,6 +3650,14 @@ "source-map": "^0.6.0" } }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + }, "string-width": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", @@ -1385,14 +3668,6 @@ "strip-ansi": "^3.0.0" } }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", diff --git a/package.json b/package.json index 1fd21e963e..2043dd319b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "dotenv": "^8.2.0", "envalid": "^7.0.0", "redis": "^3.0.2", - "telegraf": "^4.0.2", + "telegraf": "^4.3.0", "tgcalls": "^0.1.2", "ws": "^7.4.3" }, diff --git a/plugins/__init__.py b/plugins/__init__.py index b0cb6d4fcc..b3c6573581 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -7,7 +7,6 @@ import time -from pyUltroid import * from pyUltroid.dB import * from pyUltroid.dB.core import * from pyUltroid.functions.all import * @@ -28,11 +27,16 @@ "git clone https://github.com/1Danish-00/glitch_me.git && pip install -e ./glitch_me" ) + start_time = time.time() -ultroid_version = "v0.0.5" +ultroid_version = "v0.0.6" OWNER_NAME = ultroid_bot.me.first_name OWNER_ID = ultroid_bot.me.id +List = [] +Dict = {} +N = 0 + def grt(seconds: int) -> str: count = 0 diff --git a/plugins/_help.py b/plugins/_help.py index 1a01a435a6..e1cbb35488 100644 --- a/plugins/_help.py +++ b/plugins/_help.py @@ -5,11 +5,11 @@ # PLease read the GNU Affero General Public License in # . -from pyUltroid.dB.database import Var from support import * from telethon.errors.rpcerrorlist import BotInlineDisabledError as dis -from telethon.errors.rpcerrorlist import BotMethodInvalidError as bmi +from telethon.errors.rpcerrorlist import BotMethodInvalidError from telethon.errors.rpcerrorlist import BotResponseTimeoutError as rep +from telethon.tl.custom import Button from . import * @@ -19,7 +19,7 @@ ) async def ult(ult): plug = ult.pattern_match.group(1) - tgbot = Var.BOT_USERNAME + tgbot = asst.me.username if plug: try: if plug in HELP: @@ -38,14 +38,50 @@ async def ult(ult): for d in LIST[plug]: x += HNDLR + d x += "\n" + x += "\n© @TeamUltroid" await eor(ult, x) except BaseException: await eod(ult, get_string("help_1").format(plug), time=5) except BaseException: await eor(ult, "Error 🤔 occured.") else: + # if BOT_MODE: + # await ultroid_bot.send_message( + # ult.chat_id, + # f"Bot of {ultroid_bot.me.first_name}", + # buttons=[Button.inline(text="Open Help", data="open")], + # ) + # return try: results = await ultroid_bot.inline_query(tgbot, "ultd") + except BotMethodInvalidError: + z = [] + for x in LIST.values(): + for y in x: + z.append(y) + cmd = len(z) + 10 + bnn = asst.me.username + return await ultroid_bot.send_message( + ult.chat_id, + get_string("inline_4").format( + OWNER_NAME, + len(PLUGINS) - 5, + len(ADDONS), + cmd, + ), + buttons=[ + [ + Button.inline("• Pʟᴜɢɪɴs", data="hrrrr"), + Button.inline("• Aᴅᴅᴏɴs", data="frrr"), + ], + [ + Button.inline("Oᴡɴᴇʀ•ᴛᴏᴏʟꜱ", data="ownr"), + Button.inline("Iɴʟɪɴᴇ•Pʟᴜɢɪɴs", data="inlone"), + ], + [Button.url("⚙️Sᴇᴛᴛɪɴɢs⚙️", url=f"https://t.me/{bnn}?start=set")], + [Button.inline("••Cʟᴏꜱᴇ••", data="close")], + ], + ) except rep: return await eor( ult, @@ -53,10 +89,5 @@ async def ult(ult): ) except dis: return await eor(ult, get_string("help_3")) - except bmi: - return await eor( - ult, - get_string("help_4").format(tgbot), - ) await results[0].click(ult.chat_id, reply_to=ult.reply_to_msg_id, hide_via=True) await ult.delete() diff --git a/plugins/_inline.py b/plugins/_inline.py index c067a98a90..82db751218 100644 --- a/plugins/_inline.py +++ b/plugins/_inline.py @@ -10,7 +10,7 @@ import time from datetime import datetime from math import ceil -from platform import python_version as pyver +from platform import python_version as PyVer from git import Repo from pyUltroid import __version__ as UltVer @@ -26,14 +26,14 @@ helps = get_string("inline_1") add_ons = udB.get("ADDONS") -if add_ons: +if add_ons == "True" or add_ons is None: zhelps = get_string("inline_2") else: zhelps = get_string("inline_3") # ============================================# -@inline +@in_pattern("") @in_owner async def e(o): if len(o.text) == 0: @@ -46,7 +46,7 @@ async def e(o): ultroid_version, UltVer, uptime, - pyver(), + PyVer(), __version__, Repo().active_branch, ) @@ -71,7 +71,7 @@ async def e(o): await o.answer(res, switch_pm=f"👥 ULTROID PORTAL", switch_pm_param="start") -if Var.BOT_USERNAME is not None and asst is not None: +if asst.me is not None: @inline @in_owner @@ -85,11 +85,7 @@ async def inline_handler(event): for y in x: z.append(y) cmd = len(z) + 10 - bn = Var.BOT_USERNAME - if bn.startswith("@"): - bnn = bn.replace("@", "") - else: - bnn = bn + bnn = asst.me.username result = builder.article( title="Help Menu", description="Help Menu - UserBot | Telethon ", @@ -136,8 +132,6 @@ async def inline_handler(event): ) await event.answer([result] if result else None) - @inline - @in_owner @callback("ownr") @owner async def setting(event): @@ -209,20 +203,13 @@ async def _(e): ), ], [ - Button.switch_inline( - "Rᴇx Tᴇsᴛᴇʀ", - query="rex", - same_peer=True, - ), Button.switch_inline( "CʟɪᴘAʀᴛ Sᴇᴀʀᴄʜ", query="clipart frog", same_peer=True, ), - ], - [ Button.switch_inline( - "OʀᴀɴɢᴇFᴏx🦊Rᴇᴄᴏᴠᴇʀʏ", + "OʀᴀɴɢᴇFᴏx🦊", query="ofox beryllium", same_peer=True, ), @@ -325,11 +312,7 @@ async def backr(event): @callback("open") @owner async def opner(event): - bn = Var.BOT_USERNAME - if bn.startswith("@"): - bnn = bn.replace("@", "") - else: - bnn = bn + bnn = asst.me.username buttons = [ [ Button.inline("• Pʟᴜɢɪɴs ", data="hrrrr"), diff --git a/plugins/_ultroid.py b/plugins/_ultroid.py index 78cf3c84f4..33a8601ea7 100644 --- a/plugins/_ultroid.py +++ b/plugins/_ultroid.py @@ -7,12 +7,14 @@ from telethon.errors import ChatSendInlineForbiddenError +from telethon.errors.rpcerrorlist import BotMethodInvalidError as bmi from . import * REPOMSG = ( "• **ULTROID USERBOT** •\n\n", "• Repo - [Click Here](https://github.com/TeamUltroid/Ultroid)\n", + "• Addons - [Click Here](https://github.com/TeamUltroid/UltroidAddons)\n", "• Support - @UltroidSupport", ) @@ -20,9 +22,9 @@ @ultroid_cmd(pattern="repo$") async def repify(e): try: - q = await ultroid_bot.inline_query(Var.BOT_USERNAME, "repo") + q = await ultroid_bot.inline_query(asst.me.username, "repo") await q[0].click(e.chat_id) if e.sender_id == ultroid_bot.uid: await e.delete() - except ChatSendInlineForbiddenError: + except ChatSendInlineForbiddenError or bmi: await eor(e, REPOMSG) diff --git a/plugins/_userlogs.py b/plugins/_userlogs.py new file mode 100644 index 0000000000..deae16b21b --- /dev/null +++ b/plugins/_userlogs.py @@ -0,0 +1,142 @@ +# Ultroid - UserBot +# Copyright (C) 2020 TeamUltroid +# +# This file is a part of < https://github.com/TeamUltroid/Ultroid/ > +# PLease read the GNU Affero General Public License in +# . + +from telethon.utils import get_display_name +from telethon.errors.rpcerrorlist import MediaEmptyError as mee +from . import * + +import re + +# taglogger + +@ultroid_bot.on( + events.NewMessage( + incoming=True, + func=lambda e: (e.mentioned), + ), +) +async def all_messages_catcher(e): + if udB.get("TAG_LOG"): + try: + NEEDTOLOG = int(udB.get("TAG_LOG")) + except Exception: + return LOGS.warning("you given Wrong Grp/Channel ID in TAG_LOG.") + x = await ultroid_bot.get_entity(e.sender_id) + if x.bot or x.verified: + return + y = await ultroid_bot.get_entity(e.chat_id) + where_n = get_display_name(y) + who_n = get_display_name(x) + where_l = f"https://t.me/c/{y.id}/{e.id}" + send = await ultroid_bot.get_messages(e.chat_id, ids=e.id) + try: + if x.username: + who_l = f"https://t.me/{x.username}" + await asst.send_message( + NEEDTOLOG, + send, + buttons=[[Button.url(who_n, who_l)],[Button.url(where_n, where_l)]], + ) + else: + await asst.send_message( + NEEDTOLOG, + send, + buttons=[[Button.inline(who_n, data=f"who{x.id}")],[Button.url(where_n, where_l)]], + ) + except mee: + if x.username: + who_l = f"https://t.me/{x.username}" + await asst.send_message( + NEEDTOLOG, + "`Unsupported Media`", + buttons=[[Button.url(who_n, who_l)],[Button.url(where_n, where_l)]], + ) + else: + await asst.send_message( + NEEDTOLOG, + "`Unsupported Media`", + buttons=[[Button.inline(who_n, data=f"who{x.id}")],[Button.url(where_n, where_l)]], + ) + except Exception as er: + LOGS.info(str(er)) + await ultroid_bot.send_message(NEEDTOLOG, f"Please Add Your Assistant Bot - @{asst.me.username} as admin here.") + else: + return + + +@callback(re.compile(b"who(.*)")) +async def _(e): + wah = e.pattern_match.group(1).decode("UTF-8") + y = await ultroid_bot.get_entity(int(wah)) + who = f"[{get_display_name(y)}](tg://user?id={y.id})" + x = await e.reply(f"Mention By user : {who}") + await asyncio.sleep(6) + await x.delete() + + +# log for assistant +@asst.on(events.ChatAction) +async def when_asst_added_to_chat(event): + if event.user_added: + user = await event.get_user() + chat = (await event.get_chat()).title + tmp = event.added_by + add = tmp.id + if user.id == (await asst.get_me()).id: + if add == OWNER_ID: + # , buttons=Button.inline("Leave Chat", data=f"leave_ch_{event.chat_id}|bot")) + return await asst.send_message( + Var.LOG_CHANNEL, f"#ADD_LOG\n\nYou had added me to {chat}." + ) + else: + # , buttons=Button.inline("Leave Chat", data=f"leave_ch_{event.chat_id}|bot")) + return await asst.send_message( + Var.LOG_CHANNEL, f"#ADD_LOG\n\n`{add}` added me to {chat}." + ) + + +# log for user's new joins + + +@ultroid.on(events.ChatAction) +async def when_ultd_added_to_chat(event): + if event.user_added: + user = await event.get_user() + chat = (await event.get_chat()).title + tmp = event.added_by + add = tmp.id + if user.id == OWNER_ID: + # , buttons=Button.inline("Leave Chat", data=f"leave_ch_{event.chat_id}|user")) + return await asst.send_message( + Var.LOG_CHANNEL, f"#ADD_LOG\n\n`{add}` just added you to {chat}." + ) + elif event.user_joined: + user = await event.get_user() + chat = (await event.get_chat()).title + if user.id == OWNER_ID: + # , buttons=Button.inline("Leave Chat", data=f"leave_ch_{event.chat_id}|user")) + return await asst.send_message( + Var.LOG_CHANNEL, f"#JOIN_LOG\n\nYou just joined {chat}." + ) + + +""" +@callback( + re.compile( + b"leave_ch_(.*)", + ), +) +@owner +async def leave_ch_at(event): + cht = event.data_match.group(1).decode("UTF-8") + ch_id, client = cht.split("|") + if client == "bot": + await asst.delete_dialog(ch_id) + elif client == "user": + await ultroid.delete_dialog(ch_id) + await event.edit(f"Left `{ch_id}`") +""" diff --git a/plugins/_wspr.py b/plugins/_wspr.py index 07febd5363..e453a013bb 100644 --- a/plugins/_wspr.py +++ b/plugins/_wspr.py @@ -42,7 +42,7 @@ async def _(e): put = e.pattern_match.group(1) if put: try: - results = await ultroid_bot.inline_query(Var.BOT_USERNAME, f"msg {put}") + results = await ultroid_bot.inline_query(asst.me.username, f"msg {put}") except rep: return await eor( e, diff --git a/plugins/admintools.py b/plugins/admintools.py index 2b5b8c5db7..80aec04278 100644 --- a/plugins/admintools.py +++ b/plugins/admintools.py @@ -312,13 +312,20 @@ async def unp(ult): @ultroid_cmd( - pattern="purge$", + pattern="purge ?(.*)", ) async def fastpurger(purg): chat = await purg.get_input_chat() + match = purg.pattern_match.group(1) + if match and purg.text[6] == " ": + p = 0 + async for msg in ultroid_bot.iter_messages(purg.chat_id, limit=int(match)): + await msg.delete() + p += 0 + return await eod(purg, f"Purged {p} Messages! ") msgs = [] count = 0 - if not purg.reply_to_msg_id: + if not (purg.reply_to_msg_id or match): return await eod(purg, "`Reply to a message to purge from.`", time=10) async for msg in ultroid_bot.iter_messages(chat, min_id=purg.reply_to_msg_id): msgs.append(msg) @@ -343,14 +350,33 @@ async def fastpurger(purg): @ultroid_cmd( - pattern="purgeme$", + pattern="purgeme ?(.*)", ) async def fastpurgerme(purg): + num = purg.pattern_match.group(1) + if num and not purg.is_reply: + try: + nnt = int(num) + except BaseException: + await eod(purg, "`Give a Valid Input.. `") + return + mp = 0 + async for mm in ultroid_bot.iter_messages( + purg.chat_id, limit=nnt, from_user="me" + ): + await mm.delete() + mp += 1 + await eod(purg, f"Purged {mp} Messages!") + return chat = await purg.get_input_chat() msgs = [] count = 0 - if not purg.reply_to_msg_id: - return await eod(purg, "`Reply to a message to purge from.`", time=10) + if not (purg.reply_to_msg_id or num): + return await eod( + purg, + "`Reply to a message to purge from or use it like ``purgeme `", + time=10, + ) async for msg in ultroid_bot.iter_messages( chat, from_user="me", diff --git a/plugins/afk.py b/plugins/afk.py index b10479319c..d20df552b1 100644 --- a/plugins/afk.py +++ b/plugins/afk.py @@ -23,7 +23,6 @@ from telethon.tl.functions.account import GetPrivacyRequest from telethon.tl.types import InputPrivacyKeyStatusTimestamp, PrivacyValueAllowAll - from . import * global USER_AFK @@ -161,6 +160,8 @@ async def on_afk(event): @ultroid_cmd(pattern=r"afk ?(.*)") async def _(event): + if not is_fullsudo(event.sender_id): + return await eor(event, "`This Command Is Sudo Restricted.`") reply = await event.get_reply_message() global USER_AFK global afk_time diff --git a/plugins/autocorrect.py b/plugins/autocorrect.py index 089f95e72a..25d4de8e67 100644 --- a/plugins/autocorrect.py +++ b/plugins/autocorrect.py @@ -24,12 +24,14 @@ @ultroid_cmd(pattern="autocorrect") async def acc(e): + if not is_fullsudo(ult.sender_id): + return await eod(ult, "`This Command Is Sudo Restricted.`") if Redis("AUTOCORRECT") != "True": udB.set("AUTOCORRECT", "True") - await eor(e, "AUTOCORRECT Feature On") + await eod(e, "AUTOCORRECT Feature On") else: udB.delete("AUTOCORRECT") - await eor(e, "AUTOCORRECT Feature Off") + await eof(e, "AUTOCORRECT Feature Off") @ultroid_bot.on(events.NewMessage(outgoing=True)) @@ -47,7 +49,10 @@ async def gramme(event): xx = GingerIt() x = xx.parse(t) res = x["result"] - await event.edit(res) + try: + await event.edit(res) + except BaseException: + pass HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/autopic.py b/plugins/autopic.py index 2058110d91..a49796f486 100644 --- a/plugins/autopic.py +++ b/plugins/autopic.py @@ -8,18 +8,21 @@ """ ✘ Commands Available - -• `{i}autopic ` +• {i}autopic Will change your profile pic at defined intervals with pics related to the given topic. -• `{i}stoppic` +• {i}stoppic Stop the AutoPic command. """ import asyncio import os -import random +import urllib -from telethon import functions +import requests as r +from bs4 import BeautifulSoup as bs +from telethon.tl.functions.messages import GetWebPagePreviewRequest as getweb +from telethon.tl.functions.photos import UploadProfilePhotoRequest from . import * @@ -28,36 +31,41 @@ async def autopic(e): search = e.pattern_match.group(1) if not search: - return await eor(e, get_string("autopic_1")) - clls = returnpage(search) + return await eod(e, get_string("autopic_1")) + clls = autopicsearch(search) if len(clls) == 0: - return await eor(e, get_string("autopic_2").format(search)) - if not len(clls) == 1: - num = random.randrange(0, len(clls) - 1) - else: - num = 0 - page = clls[num] - title = page["title"] - await eor(e, get_string("autopic_3").format(title)) + return await eod(e, get_string("autopic_2").format(search)) + await eor(e, get_string("autopic_3").format(search)) udB.set("AUTOPIC", "True") while True: ge = udB.get("AUTOPIC") if not ge == "True": return - animepp(page["href"]) - file = await ultroid_bot.upload_file("autopic.jpg") - await ultroid_bot(functions.photos.UploadProfilePhotoRequest(file)) - os.remove("autopic.jpg") - await asyncio.sleep(1100) + for lie in clls: + au = "https://unsplash.com" + lie["href"] + et = await ultroid_bot(getweb(au)) + try: + kar = await ultroid_bot.download_media(et.webpage.photo) + except AttributeError: + ct = r.get(au).content + bsc = bs(ct, "html.parser", from_encoding="utf-8") + ft = bsc.find_all("img", "_2UpQX") + li = ft[0]["src"] + kar = "autopic.png" + urllib.request.urlretrieve(li, kar) + file = await ultroid_bot.upload_file(kar) + await ultroid_bot(UploadProfilePhotoRequest(file)) + os.remove(kar) + await asyncio.sleep(1100) @ultroid_cmd(pattern="stoppic$") async def stoppo(ult): gt = udB.get("AUTOPIC") if not gt == "True": - return await eor(ult, "`AUTOPIC was not in used !!`") + return await eod(ult, "AUTOPIC was not in used !!") udB.set("AUTOPIC", "None") - await eor(ult, "`AUTOPIC Stopped !!`") + await eod(ult, "AUTOPIC Stopped !!") HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/blacklist.py b/plugins/blacklist.py index 6922833415..23878643a4 100644 --- a/plugins/blacklist.py +++ b/plugins/blacklist.py @@ -21,10 +21,8 @@ 'And u Must be Admin in that Chat' """ -import re from pyUltroid.functions.blacklist_db import * -from telethon.tl.types import ChannelParticipantsAdmins from . import * @@ -34,12 +32,14 @@ async def af(e): if e.is_group: if not e._chat.admin_rights: return await eod(e, "`You are Not Admin Here`") - wrd = (e.pattern_match.group(1)).lower() + wrd = e.pattern_match.group(1) chat = e.chat_id if not (wrd): return await eod(e, "`Give the word to blacklist..`") - wrd = e.text[10:] - add_blacklist(int(chat), wrd) + wrd = e.text[11:] + heh = wrd.split(" ") + for z in heh: + add_blacklist(int(chat), z.lower()) await eor(e, f"Done : `{wrd}` Blacklisted here.") @@ -48,11 +48,14 @@ async def rf(e): if e.is_group: if not e._chat.admin_rights: return await eod(e, "`You are Not Admin Here`") - wrd = (e.pattern_match.group(1)).lower() + wrd = e.pattern_match.group(1) chat = e.chat_id if not wrd: return await eod(e, "`Give the word to remove from blacklist..`") - rem_blacklist(int(chat), wrd) + wrd = e.text[14:] + heh = wrd.split(" ") + for z in heh: + rem_blacklist(int(chat), z.lower()) await eor(e, f"Done : `{wrd}` Removed from Blacklist.") @@ -73,29 +76,13 @@ async def lsnote(e): async def bl(e): chat = e.chat_id x = get_blacklist(int(chat)) - xx = (e.text).lower() - if x and xx: - if " " in xx: - xx = xx.split(" ") - kk = "" - for c in xx: - kk = re.search(str(c), str(x), flags=re.IGNORECASE) - if kk: - async for l in ultroid_bot.iter_participants( - e.chat_id, filter=ChannelParticipantsAdmins - ): - if l.id == e.sender_id: - return - await e.delete() - else: - k = re.search(xx, x, flags=re.IGNORECASE) - if k: - async for l in ultroid_bot.iter_participants( - e.chat_id, filter=ChannelParticipantsAdmins - ): - if l.id == e.sender_id: - return + if x and e.text: + xx = ((e.text).lower()).split() + yy = x.split("$|") + for z in xx: + if z in yy: await e.delete() + break HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/bot.py b/plugins/bot.py index af1cdd74f8..490b229ea9 100644 --- a/plugins/bot.py +++ b/plugins/bot.py @@ -18,31 +18,26 @@ View all plugin names. • `{i}restart` - s - soft restart To restart your bot. -• `{i}logs` - Get the last 100 lines from heroku logs. +• `{i}logs (sys)` + Get the full terminal logs. -• `{i}usage` - Get app usage details. +• `{i}logs heroku` + Get the latest 100 lines of heroku logs. • `{i}shutdown` Turn off your bot. """ -import math -import shutil import time from datetime import datetime as dt from platform import python_version as pyver import heroku3 -import psutil import requests from git import Repo from pyUltroid import __version__ as UltVer -from search_engine_parser.core.utils import get_rand_user_agent as grua from telethon import __version__ from telethon.errors.rpcerrorlist import ChatSendMediaForbiddenError @@ -88,17 +83,19 @@ async def lol(ult): return await eor(ult, als) elif pic is not None and "telegra" in pic: try: - await ult.reply(als, file=pic) + await ultroid_bot.send_message( + ult.chat_id, als, file=pic, link_preview=False + ) await ult.delete() except ChatSendMediaForbiddenError: - await eor(ult, als) + await eor(ult, als, link_preview=False) else: try: await ultroid_bot.send_message(ult.chat_id, file=pic) - await ultroid_bot.send_message(ult.chat_id, als) + await ultroid_bot.send_message(ult.chat_id, als, link_preview=False) await ult.delete() except ChatSendMediaForbiddenError: - await eor(ult, als) + await eor(ult, als, link_preview=False) @ultroid_cmd( @@ -124,17 +121,73 @@ async def cmds(event): pattern="restart$", ) async def restartbt(ult): - if not Var.HEROKU_API: + if Var.HEROKU_API: await eor(ult, "`Restarting..`") + try: + await restart(ult) + except BaseException: + await bash("pkill python3 && python3 -m pyUltroid") + else: await bash("pkill python3 && python3 -m pyUltroid") + + +@ultroid_cmd(pattern="shutdown") +async def shutdownbot(ult): + try: + dyno = ult.text.split(" ", maxsplit=1)[1] + except IndexError: + dyno = None + if dyno: + if dyno not in ["userbot", "vcbot", "web", "worker"]: + await eor(ult, "Invalid Dyno Type specified !") + return + await shutdown(ult, dyno) else: - await restart(ult) + await shutdown(ult) @ultroid_cmd( - pattern="logs$", + pattern="logs", ) -async def _(ult): +async def get_logs(event): + try: + opt = event.text.split(" ", maxsplit=1)[1] + except IndexError: + return await def_logs(event) + if opt == "heroku": + await heroku_logs(event) + elif opt == "sys": + await def_logs(event) + else: + await def_logs(event) + + +async def heroku_logs(event): + if HEROKU_API is None and HEROKU_APP_NAME is None: + return await eor( + event, "Please set `HEROKU_APP_NAME` and `HEROKU_API` in vars." + ) + await eor(event, "`Downloading Logs...`") + ok = app.get_log() + with open("ultroid-heroku.log", "w") as log: + log.write(ok) + key = ( + requests.post("https://nekobin.com/api/documents", json={"content": ok}) + .json() + .get("result") + .get("key") + ) + url = f"https://nekobin.com/{key}" + await ultroid.send_file( + event.chat_id, + file="ultroid-heroku.log", + thumb="resources/extras/logo_rdm.png", + caption=f"**Ultroid Heroku Logs.**\nPasted [here]({url}) too!", + ) + os.remove("ultroid-heroku.log") + + +async def def_logs(ult): xx = await eor(ult, "`Processing...`") with open("ultroid.log") as f: k = f.read() @@ -148,89 +201,11 @@ async def _(ult): await ultroid.send_file( ult.chat_id, file="ultroid.log", - thumb="resources/extras/logo_rdm.png", - caption=f"**Ultroid Logs.**\nPasted [here](https://nekobin.com/{key}) too!", + thumb="resources/extras/new_thumb.jpg", + caption=f"**Ultroid Logs.**\nPasted [here]({url}) too!", ) await xx.edit("Done") await xx.delete() -@ultroid_cmd( - pattern="usage$", -) -async def dyno_usage(dyno): - if not HEROKU_API and HEROKU_APP_NAME: - return - dyn = await eor(dyno, "`Processing...`") - useragent = grua() - user_id = Heroku.account().id - headers = { - "User-Agent": useragent, - "Authorization": f"Bearer {Var.HEROKU_API}", - "Accept": "application/vnd.heroku+json; version=3.account-quotas", - } - path = "/accounts/" + user_id + "/actions/get-quota" - r = requests.get(heroku_api + path, headers=headers) - if r.status_code != 200: - return await dyno.edit( - "`Error: something bad happened`\n\n" f">.`{r.reason}`\n", - ) - result = r.json() - quota = result["account_quota"] - quota_used = result["quota_used"] - remaining_quota = quota - quota_used - percentage = math.floor(remaining_quota / quota * 100) - minutes_remaining = remaining_quota / 60 - hours = math.floor(minutes_remaining / 60) - minutes = math.floor(minutes_remaining % 60) - App = result["apps"] - try: - App[0]["quota_used"] - except IndexError: - AppQuotaUsed = 0 - AppPercentage = 0 - else: - AppQuotaUsed = App[0]["quota_used"] / 60 - AppPercentage = math.floor(App[0]["quota_used"] * 100 / quota) - AppHours = math.floor(AppQuotaUsed / 60) - AppMinutes = math.floor(AppQuotaUsed % 60) - total, used, free = shutil.disk_usage(".") - cpuUsage = psutil.cpu_percent() - memory = psutil.virtual_memory().percent - disk = psutil.disk_usage("/").percent - upload = humanbytes(psutil.net_io_counters().bytes_sent) - down = humanbytes(psutil.net_io_counters().bytes_recv) - TOTAL = humanbytes(total) - USED = humanbytes(used) - FREE = humanbytes(free) - return await eod( - dyn, - get_string("usage").format( - Var.HEROKU_APP_NAME, - AppHours, - AppMinutes, - AppPercentage, - hours, - minutes, - percentage, - TOTAL, - USED, - FREE, - upload, - down, - cpuUsage, - memory, - disk, - ), - ) - - -@ultroid_cmd( - pattern="shutdown$", -) -async def shht(event): - await eor(event, get_string("shutdown").format(OWNER_NAME)) - await ultroid_bot.disconnect() - - HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/broadcast.py b/plugins/broadcast.py index 980752cb0e..7844d0c256 100644 --- a/plugins/broadcast.py +++ b/plugins/broadcast.py @@ -207,37 +207,12 @@ async def sending(event): await x.edit("Sending....") if event.reply_to_msg_id: previous_message = await event.get_reply_message() - if previous_message.sticker or previous_message.poll: - await x.edit(f"Reply `{hndlr}forward` for stickers and polls.") - return - if ( - previous_message.gif - or previous_message.audio - or previous_message.voice - or previous_message.video - or previous_message.video_note - or previous_message.contact - or previous_message.game - or previous_message.geo - or previous_message.invoice - ): - await x.edit(f"Not supported. Try `{hndlr}forward`") - return - if not previous_message.web_preview and previous_message.photo: - file = await ultroid_bot.download_file(previous_message.media) - uploaded_doc = await ultroid_bot.upload_file(file, file_name="img.png") - raw_text = previous_message.text + if previous_message.poll: + return await x.edit(f"Reply `{hndlr}forward` for polls.") + if previous_message: for channel in channels: try: - if previous_message.photo: - await ultroid_bot.send_file( - int(channel), - InputMediaUploadedPhoto(file=uploaded_doc), - force_document=False, - caption=raw_text, - link_preview=False, - ) - + await ultroid_bot.send_message(int(channel), previous_message) sent_count += 1 await x.edit( f"Sent : {sent_count}\nError : {error_count}\nTotal : {len(channels)}", @@ -246,19 +221,8 @@ async def sending(event): try: await ultroid_bot.send_message( Var.LOG_CHANNEL, - f"Error in sending at {channel}.", - ) - await ultroid_bot.send_message( - Var.LOG_CHANNEL, - "Error! " + str(error), + f"Error in sending at {channel}.\n\n{error}", ) - if ( - error - == "The message cannot be empty unless a file is provided" - ): - return await x.edit( - f"For sending files, upload in Saved Messages and reply {hndlr}forward to in.", - ) except BaseException: pass error_count += 1 @@ -274,51 +238,6 @@ async def sending(event): ) except BaseException: pass - else: - raw_text = previous_message.text - for channel in channels: - try: - await ultroid_bot.send_message( - int(channel), - raw_text, - link_preview=False, - ) - sent_count += 1 - await x.edit( - f"Sent : {sent_count}\nError : {error_count}\nTotal : {len(channels)}", - ) - except Exception as error: - try: - await ultroid_bot.send_message( - Var.LOG_CHANNEL, - f"Error in sending at {channel}.", - ) - await ultroid_bot.send_message( - Var.LOG_CHANNEL, - "Error! " + str(error), - ) - if ( - error - == "The message cannot be empty unless a file is provided" - ): - return await x.edit( - f"For sending files, upload in Saved Messages and reply {hndlr}forward to in.", - ) - except BaseException: - pass - error_count += 1 - await x.edit( - f"Sent : {sent_count}\nError : {error_count}\nTotal : {len(channels)}", - ) - await x.edit(f"{sent_count} messages sent with {error_count} errors.") - if error_count > 0: - try: - await ultroid_bot.send_message( - Var.LOG_CHANNEL, - f"{error_count} Errors", - ) - except BaseException: - await x.edit("Set up log channel for checking errors.") HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/carbon.py b/plugins/carbon.py index 49a8e0bd56..1e39544bac 100644 --- a/plugins/carbon.py +++ b/plugins/carbon.py @@ -177,7 +177,7 @@ pattern="carbon", ) async def crbn(event): - xxxx = await eor(event, "Processing") + xxxx = await eor(event, get_string("com_1")) if event.reply_to_msg_id: temp = await event.get_reply_message() if temp.media: diff --git a/plugins/channelhacks.py b/plugins/channelhacks.py index 2727d9fb62..afa5f1a7e9 100644 --- a/plugins/channelhacks.py +++ b/plugins/channelhacks.py @@ -88,7 +88,7 @@ async def _(e): return async for msg in ultroid_bot.iter_messages(int(c), reverse=True): try: - await asyncio.sleep(0.7) + await asyncio.sleep(1) await ultroid_bot.send_message(int(d), msg) except BaseException: pass diff --git a/plugins/chats.py b/plugins/chats.py index 68e00b791f..3bf53bc772 100644 --- a/plugins/chats.py +++ b/plugins/chats.py @@ -9,7 +9,7 @@ ✘ Commands Available - • `{i}delchat` - Delete the group this cmd is used in. + Delete the group this cmd is used in. • `{i}getlink` Get link of group this cmd is used in. @@ -23,8 +23,12 @@ from telethon.errors import ChatAdminRequiredError as no_admin -from telethon.tl.functions.messages import DeleteChatUserRequest, CreateChatRequest, ExportChatInviteRequest -from telethon.tl.functions.channels import DeleteChannelRequest +from telethon.tl.functions.channels import CreateChannelRequest, DeleteChannelRequest +from telethon.tl.functions.messages import ( + CreateChatRequest, + DeleteChatUserRequest, + ExportChatInviteRequest, +) from . import * @@ -34,6 +38,8 @@ groups_only=True, ) async def _(e): + if BOT_MODE: + return await eor(e, "You Cant Use This Command in BOT_MODE") xx = await eor(e, "`Processing...`") try: await e.client(DeleteChannelRequest(e.chat_id)) @@ -63,6 +69,8 @@ async def _(e): pattern="create (b|g|c)(?: |$)(.*)", ) async def _(e): + if BOT_MODE: + return await eor(e, "You Cant use this Command in BOT_MODE") type_of_group = e.pattern_match.group(1) group_name = e.pattern_match.group(2) xx = await eor(e, "`Processing...`") diff --git a/plugins/clean_action.py b/plugins/clean_action.py new file mode 100644 index 0000000000..41ed0804e8 --- /dev/null +++ b/plugins/clean_action.py @@ -0,0 +1,68 @@ +# Ultroid - UserBot +# Copyright (C) 2020 TeamUltroid +# +# This file is a part of < https://github.com/TeamUltroid/Ultroid/ > +# PLease read the GNU Affero General Public License in +# . + +""" +✘ Commands Available - + +•`{i}addclean` + Clean all Upcoming action msg in added chat like someone joined/left/pin etc. + +•`{i}remclean` + Remove chat from database. + +•`{i}listclean` + To get list of all chats where its activated. + +""" + +from pyUltroid.functions.clean_db import * + +from . import * + + +@ultroid_cmd(pattern="addclean$", admins_only=True) +async def _(e): + add_clean(e.chat_id) + await eod(e, "Added Clean Action Setting For this Chat") + async for x in ultroid_bot.iter_messages(e.chat_id, limit=3000): + if x.action: + await x.delete() + + +@ultroid_cmd(pattern="remclean$") +async def _(e): + rem_clean(e.chat_id) + await eod(e, "Removed Clean Action Setting For this Chat") + + +@ultroid_cmd(pattern="listclean$") +async def _(e): + k = udB.get("CLEANCHAT") + if k: + k = k.split(" ") + o = "" + for x in k: + try: + title = (await ultroid_bot.get_entity(int(x))).title + except BaseException: + title = "`Invalid ID`" + o += x + " " + title + "\n" + await eor(e, o) + else: + await eod(e, "`No Chat Added`") + + +@ultroid_bot.on(events.ChatAction()) +async def _(event): + if is_clean_added(event.chat_id): + try: + await event.delete() + except BaseException: + pass + + +HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/converter.py b/plugins/converter.py index fa6c9563a2..478fbb2ffd 100644 --- a/plugins/converter.py +++ b/plugins/converter.py @@ -24,23 +24,42 @@ • `{i}rename ` rename the file +• `{i}thumbnail +# PLease read the GNU Affero General Public License in +# . + +""" +✘ Commands Available - + +• `{i}eod` or `{i}eod
` + `Get Event of the Day` +""" + +import re +from datetime import datetime as dr + +import requests as r +from bs4 import BeautifulSoup as bs + +from . import * + + +@ultroid_cmd(pattern="eod ?(.*)") +async def diela(e): + match = e.pattern_match.group(1) + m = await eor(e, "`Processing... `") + li = "https://daysoftheyear.com" + te = "♻️ **Events of the Day**\n\n" + if match: + date = match.split("/")[0] + month = match.split("/")[1] + li += "/days/2021/" + month + "/" + date + te = f"♻️ **Events for {match}/2021**\n\n" + else: + da = dr.today().strftime("%F").split("-") + li += "/days/2021/" + da[1] + "/" + da[2] + ct = r.get(li).content + bt = bs(ct, "html.parser", from_encoding="utf-8") + ml = bt.find_all("a", "js-link-target", href=re.compile("daysoftheyear.com/days")) + for eve in ml[:5]: + te += "• " + f'[{eve.text}]({eve["href"]})\n' + await m.edit(te, link_preview=False) + + +HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/download_upload.py b/plugins/download_upload.py index 189c7cef57..134a180814 100644 --- a/plugins/download_upload.py +++ b/plugins/download_upload.py @@ -11,15 +11,22 @@ • `{i}ul ` Upload file to telegram chat. +• `{i}ul | stream` + Upload files as stream. + • `{i}dl ` Reply to file to download. """ -import asyncio import time from datetime import datetime as dt +from hachoir.metadata import extractMetadata +from hachoir.parser import createParser +from telethon.errors.rpcerrorlist import MessageNotModifiedError +from telethon.tl.types import DocumentAttributeAudio, DocumentAttributeVideo + from . import * @@ -27,54 +34,59 @@ pattern="dl ?(.*)", ) async def download(event): - if not event.is_reply: + if not event.reply_to_msg_id: return await eor(event, "`Reply to a Media Message`") xx = await eor(event, get_string("com_1")) - kk = event.pattern_match.group(1) s = dt.now() k = time.time() if event.reply_to_msg_id: ok = await event.get_reply_message() if not ok.media: return await eod(xx, get_string("udl_1"), time=5) - else: - if not kk: - d = "resources/downloads/" - o = await event.client.download_media( - ok, - d, - progress_callback=lambda d, t: asyncio.get_event_loop().create_task( - progress( - d, - t, - xx, - k, - "Downloading...", - ), - ), - ) + if hasattr(ok.media, "document"): + file = ok.media.document + mime_type = file.mime_type + if event.pattern_match.group(1): + filename = event.pattern_match.group(1) else: - d = f"resources/downloads/{kk}" - o = await event.client.download_media( - ok, - d, - progress_callback=lambda d, t: asyncio.get_event_loop().create_task( - progress( - d, - t, - xx, - k, - "Downloading...", - file_name=d, - ), - ), + filename = ok.file.name + if not filename: + if "audio" in mime_type: + filename = "audio_" + dt.now().isoformat("_", "seconds") + ".ogg" + elif "video" in mime_type: + filename = "video_" + dt.now().isoformat("_", "seconds") + ".mp4" + try: + result = await downloader( + "resources/downloads/" + filename, + file, + xx, + k, + "Downloading " + filename + "...", ) + except MessageNotModifiedError as err: + return await xx.edit(str(err)) + file_name = result.name + else: + d = "resources/downloads/" + file_name = await event.client.download_media( + ok, + d, + progress_callback=lambda d, t: asyncio.get_event_loop().create_task( + progress( + d, + t, + xx, + k, + "Downloading...", + ), + ), + ) e = datetime.now() t = time_formatter(((e - s).seconds) * 1000) - if t: - await eod(xx, get_string("udl_2").format(o, t)) + if t != "": + await eor(xx, get_string("udl_2").format(file_name, t)) else: - await eod(xx, f"Downloaded `{o}` in `0 second(s)`") + await eor(xx, f"Downloaded `{file_name}` in `0 second(s)`") @ultroid_cmd( @@ -82,48 +94,87 @@ async def download(event): ) async def download(event): xx = await eor(event, get_string("com_1")) - kk = event.pattern_match.group(1) + hmm = event.pattern_match.group(1) + try: + kk = hmm.split(" | ")[0] + except BaseException: + pass + try: + title = kk.split("/")[-1] + except BaseException: + title = hmm s = dt.now() tt = time.time() if not kk: return await eod(xx, get_string("udl_3")) else: try: - x = await event.client.send_file( - event.chat_id, - kk, - caption=kk, - force_document=True, - thumb="resources/extras/logo_rdm.png", - progress_callback=lambda d, t: asyncio.get_event_loop().create_task( - progress( - d, - t, - xx, - tt, - "Uploading...", - file_name=kk, - ), - ), - ) - except ValueError as ve: - return await eod(xx, str(ve)) - except BaseException: + if Redis("CUSTOM_THUMBNAIL"): + await bash( + f"wget {Redis('CUSTOM_THUMBNAIL')} -O resources/extras/new_thumb.jpg" + ) try: - await ultroid_bot.send_message(event.chat_id, kk) - return await kk.delete() - except BaseException: - pass + res = await uploader(kk, kk, tt, xx, "Uploading...") + except MessageNotModifiedError as err: + return await xx.edit(str(err)) + if " | stream" in hmm and res.name.endswith( + tuple([".mkv", ".mp4", ".mp3", ".opus", ".m4a", ".ogg"]) + ): + metadata = extractMetadata(createParser(res.name)) + wi = 512 + hi = 512 + duration = 0 + if metadata.has("width"): + wi = metadata.get("width") + if metadata.has("height"): + hi = metadata.get("height") + if metadata.has("duration"): + duration = metadata.get("duration").seconds + if metadata.has("artist"): + metadata.get("artist") + if res.name.endswith(tuple([".mkv", ".mp4"])): + attributes = [ + DocumentAttributeVideo( + w=wi, h=hi, duration=duration, supports_streaming=True + ) + ] + if res.name.endswith(tuple([".mp3", ".m4a", ".opus", ".ogg"])): + attributes = [ + DocumentAttributeAudio(duration=duration, title=title) + ] + try: + x = await event.client.send_file( + event.chat_id, + res, + caption=title, + attributes=attributes, + supports_streaming=True, + thumb="resources/extras/new_thumb.jpg", + ) + except BaseException: + x = await event.client.send_file( + event.chat_id, + res, + caption=title, + force_document=True, + thumb="resources/extras/new_thumb.jpg", + ) + else: + x = await event.client.send_file( + event.chat_id, + res, + caption=title, + force_document=True, + thumb="resources/extras/new_thumb.jpg", + ) + except Exception as ve: + return await eor(xx, str(ve)) e = datetime.now() t = time_formatter(((e - s).seconds) * 1000) - try: - await x.edit(f"`{kk}`\nTime Taken: `{t}`") - except BaseException: - pass - if t: - await eod(xx, f"Uploaded `{kk}` in `{t}`", time=5) + if t != "": + await eor(xx, f"Uploaded `{kk}` in `{t}`") else: - await eod(xx, f"Uploaded `{kk}` in `0 second(s)`") + await eor(xx, f"Uploaded `{kk}` in `0 second(s)`") HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/evalJs.py b/plugins/evalJs.py new file mode 100644 index 0000000000..b953c45315 --- /dev/null +++ b/plugins/evalJs.py @@ -0,0 +1,84 @@ +# Ultroid - UserBot +# Copyright (C) 2020 TeamUltroid +# +# This file is a part of < https://github.com/TeamUltroid/Ultroid/ > +# PLease read the GNU Affero General Public License in +# . + +""" +✘ Commands Available - +• `{i}evaljs ` + Evaluate JavaScript code and upload. +""" + +# Inbuilt +import os +import time +from threading import Thread + +# Ultroid +from . import * + + +async def evalJs( + event, + startTime: float, + command: str = "", +): + scriptFile = open( + "./src/ecmaHelper/evalJs.run.js", + "w", + encoding="utf-8", + ) + scriptFile.write(str(command)) + scriptFile.close() + os.system(f"node ./src/ecmaHelper/eval.d.js") + if os.path.exists("./src/ecmaHelper/evalJs.result.d.txt"): + await ultroid_bot.send_file( + event.chat.id, + "./src/ecmaHelper/evalJs.result.d.txt", + force_document=True, + caption=f"**☞ evalJS\n\n• Command:**\n`{command}` \n\n**• TimeTaken:**\n`{time.time() - startTime:.2f}s` \n\n**• Result:**\n`[Info]: Uploaded File For Better Visualisation Of Indents.`", + ) + else: + await ultroid_bot.send_file( + event.chat.id, + "./src/ecmaHelper/evalJs.result.d.txt", + force_document=True, + caption=f"**☞ evalJS\n\n• Command:**\n`{command}` \n\n**• TimeTaken:**\n`{time.time() - startTime:.2f}` \n\n**• Result:**\n`[Warning]: Unexpected Error Occured !`", + ) + await event.delete() + file = open("./src/ecmaHelper/evalJs.result.d.txt", encoding="utf-8", mode="w") + file.write("'use-strict';\n") + file.close() + + +# The Command Is `.evaljs` +@ultroid_cmd( + pattern="evaljs", +) +async def evaluateJs(event): + start = time.time() + if not event.out and not is_fullsudo(event.sender_id): + return await eor(event, "`This Command Is Sudo Restricted.`") + if Redis("I_DEV") != "True": + return await eor( + event, + f"Developer Restricted!\nIf you know what this does, and want to proceed\n\n`{HNDLR}setredis I_DEV True`\n\nThis Might Be Dangerous.", + ) + xx = await eor(event, "`Running Thread ...`") + try: + cmd = event.text.split(" ", maxsplit=1)[1] + except IndexError: + return await eod(xx, "`Give some JS command`", time=5) + if cmd and cmd != "": + Thread( + target=await evalJs( + xx, + command=cmd, + startTime=start, + ) + ).start() + + +HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=HNDLR)}"}) diff --git a/plugins/fakeaction.py b/plugins/fakeaction.py new file mode 100644 index 0000000000..949e1793eb --- /dev/null +++ b/plugins/fakeaction.py @@ -0,0 +1,75 @@ +# Ultroid - UserBot +# Copyright (C) 2020 TeamUltroid +# +# This file is a part of < https://github.com/TeamUltroid/Ultroid/ > +# PLease read the GNU Affero General Public License in +# . + +""" +✘ Commands Available - + +• `{i}ftyping