v0.2 11/10/2021

Co-authored-by: New-dev0 <New-dev0@users.noreply.github.com>
Co-authored-by: Amit Sharma <buddhhu@users.noreply.github.com>
Co-authored-by: TechiError <techierror@users.noreply.github.com>
Co-authored-by: Aditya <me@xditya.me>
Co-authored-by: Sonya Nikiforova <Sonniki@users.noreply.github.com>
Co-authored-by: M̲αραт <Marty2509@users.noreply.github.com>
Co-authored-by: Muhamad Risman Aziz <mrismanaziz@users.noreply.github.com>
Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com>
Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com>
Co-authored-by: sppidy <sppidy@users.noreply.github.com>
This commit is contained in:
1Danish-00
2021-10-11 00:27:23 +05:30
parent 8f28387fb3
commit 6f44b386aa
165 changed files with 5537 additions and 4155 deletions

View File

@@ -4,7 +4,6 @@
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
"""
✘ Commands Available
@@ -20,13 +19,14 @@
import math
import shutil
from random import choice
import heroku3
import psutil
import requests
from search_engine_parser.core.utils import get_rand_user_agent as grua
from pyUltroid.functions import some_random_headers
from . import *
from . import Var, eor, get_string, humanbytes, udB, ultroid_cmd
HEROKU_API = None
HEROKU_APP_NAME = None
@@ -86,10 +86,9 @@ def simple_usage():
def heroku_usage():
if HEROKU_API is None and HEROKU_APP_NAME is None:
return False, "You do not use heroku, bruh!"
useragent = grua()
user_id = Heroku.account().id
headers = {
"User-Agent": useragent,
"User-Agent": choice(some_random_headers),
"Authorization": f"Bearer {heroku_api}",
"Accept": "application/vnd.heroku+json; version=3.account-quotas",
}