· 4 years ago · Aug 26, 2021, 05:28 AM
1b'# -*- coding: utf-8 -*-\nimport requests\nimport json\nimport time\nimport sys\nimport random\nimport os\nimport socket\nimport colorama\nimport websocket\nimport hashlib\nimport binascii\nimport traceback\nfrom colorama import Fore, Back, Style\nfrom random import randint\nfrom datetime import datetime\nfrom urllib.parse import quote_plus\nfrom requests import ConnectionError, Timeout\nfrom stdiomask import getpass\n\ncolorama.init(autoreset=True)\nstart = datetime.now()\nwsoket = websocket.WebSocket()\n\nhijau = Style.BRIGHT + Fore.GREEN\nres = Style.RESET_ALL\nabu2 = Style.NORMAL + Fore.WHITE\nungu = Style.NORMAL + Fore.MAGENTA\nhijau2 = Style.NORMAL + Fore.GREEN\ncian = Style.BRIGHT + Fore.CYAN\nred2 = Style.NORMAL + Fore.RED\nred = Style.BRIGHT + Fore.RED\nph = "\\033[97m"\nyellow = "\\033[1;33m"\n\nc = requests.session()\na = 0\nurl = "https://www.999doge.com/api/web.aspx"\nua = {\n "User-Agent": "Mozilla/5.0 (Linux; Android 10; RMX2101) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36",\n "Accept-Language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6,zh;q=0.5",\n}\n\n\ndef banner():\n os.system("cls" if os.name == "nt" else "clear")\n bann = """\n____ ____ ____ ____ ____ ____ ____ ____ ____\n||F |||A |||B |||_ |||L |||O |||G |||I |||C ||\n||__|||__|||__|||__|||__|||__|||__|||__|||__||\n|/__\\|/__\\|/__\\|/__\\|/__\\|/__\\|/__\\|/__\\|/__\\|\n\nDICEBOSS BETLOGIC SERIES - #FAB.CoinBooster_\n999 Dice Bot | This Is Gambling Bot Please Take Own Your Risk\n"""\n print(bann)\n\n\ndef curl(url, ua=None, data=None):\n while True:\n try:\n if ua == None and data == None:\n respon = c.get(url)\n if data != None:\n respon = c.post(url, headers=ua, data=data)\n else:\n respon = c.get(url, headers=ua)\n if respon.status_code == 200:\n return respon\n else:\n print(respon.text)\n exit("[X] Exit")\n except ConnectionError:\n # print("[!] Koneksi Error!")\n time.sleep(1)\n except Timeout as err:\n # print(f"[!] {err.message}")\n time.sleep(1)\n except KeyboardInterrupt:\n exit("[X] Exit")\n\n\ndef cmd(text_cmd):\n wsoket.send(json.dumps(text_cmd))\n while True:\n result = wsoket.recv()\n if "status" in result:\n jsn = json.loads(result)["R"]\n if jsn["status"] == 0:\n return jsn\n else:\n if (\n str(json.loads(result)["R"]["msg"])\n .lower()\n .find("ada error terjadi saat menempatkan taruhan")\n != -1\n ):\n return jsn\n else:\n print(json.loads(result)["R"]["msg"])\n sys.exit()\n\n\ndef acak(length):\n letters = "abcdef1234567890"\n return "".join(random.choice(letters) for i in range(length))\n\n\ndef yrrah():\n intdev = os.popen("whoami").read().replace("\\n", "")\n if intdev[:3] == "u0_":\n return intdev\n else:\n while True:\n get_info = curl("https://ipinfo.io/json").text\n if "ip" in get_info:\n return json.loads(get_info)["ip"]\n\n\ndef countdown(t):\n while t:\n mins, secs = divmod(t, 60)\n timer = "{:02d}:{:02d}".format(mins, secs)\n print("Please wait until " + timer + " " * 30, end="\\r")\n time.sleep(1)\n t -= 1\n return\n\n\ndef konvert(persen, taruhan):\n global high\n global low\n if taruhan == "l" or taruhan == "L":\n low = 0\n high = int(int(float(persen) * 10000) - 1)\n else:\n low = int(1000000 - int(float(persen) * 10000))\n high = 999999\n\n\ndef rev(num, output=False):\n if str(num).find("-") != -1:\n num = str(num).replace("-", "")\n prefix = "-"\n else:\n num = str(num)\n prefix = ""\n if len(num) < 8:\n panjang_nol = int(8 - len(num))\n num = (panjang_nol * "0") + str(num)\n gg = num.rstrip("0")\n km = int(8) - (len(gg))\n a = "0" * km\n if output == "sat":\n return float(prefix + ("0." + gg + a))\n else:\n return prefix + ("0." + gg + abu2 + a + res)\n elif len(num) == 8:\n panjang_nol = int(8 - len(num))\n num = (panjang_nol * "0") + str(num)\n gg = num.rstrip("0")\n km = int(8) - (len(gg))\n a = "0" * km\n if output == "sat":\n return float(prefix + ("0." + gg + a))\n else:\n return prefix + ("0." + gg + abu2 + a + res)\n else:\n len_num = len(num)\n end = num[-8:]\n first = num[: len_num - 8]\n gg = end.rstrip("0")\n km = int(8) - (len(gg))\n a = "0" * km\n if output == "sat":\n return float(prefix + (first + "." + gg + a))\n else:\n return prefix + (first + "." + gg + abu2 + a + res)\n\n\ndef indodax(coin):\n global jual\n r = curl(\n "https://indodax.com/api/" + coin + "_idr/ticker",\n {\n "user-agent": "Mozilla/5.0 (Linux; Android 10; RMX2101) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36"\n },\n )\n jt = json.loads(r.text)\n jual = jt["ticker"]["buy"]\n\n\ndef coinmarket(coin):\n global jual\n if coin == "btc":\n idcoin = 1\n elif coin == "ltc":\n idcoin = 2\n elif coin == "doge":\n idcoin = 74\n elif coin == "eth":\n idcoin = 1027\n else:\n exit("Currency not support!!!")\n jt = json.loads(\n curl(\n "https://web-api.coinmarketcap.com/v1/tools/price-conversion?amount=1&convert_id=2781&id="\n + str(idcoin),\n {\n "user-agent": "Mozilla/5.0 (Linux; Android 10; RMX2101) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36"\n },\n ).text\n )\n jual = jt["data"]["quote"]["2781"]["price"]\n\n\ndef duit(num, ket):\n amount = num * float(jual)\n if ket == "idr":\n result = "Rp " + "{:,.2f}".format(amount)\n elif ket == "usd":\n result = "$ " + "{:,.2f}".format(amount)\n else:\n exit("Currency not support!!")\n return result\n\n\ndef login(usr, pss, otp):\n r = c.get(\n url,\n headers=ua,\n data={\n "a": "Login",\n "Key": "c8f37bc39472462ba68fc03ab5711b78",\n "Username": usr,\n "Password": pss,\n "Totp": otp,\n },\n )\n js = json.loads(r.text)\n if js == {"LoginInvalid": 1}:\n sys.exit("\\n [!] Mohon periksa Username atau Password Anda\\n")\n elif js == {"InvalidApiKey": 1}:\n sys.exit("\\n [!] Api Key error\\n")\n else:\n return cekReff(js)\n\n\ndef dice():\n sesibal = json.loads(\n curl(\n url,\n ua,\n {\n "a": "GetBalance",\n "s": js["SessionCookie"],\n "Currency": cur,\n "ProtocolVersion": "2",\n },\n ).text\n )["Balance"]\n print(\n hijau + "\\n\\nStarting Balance",\n res + rev(sesibal),\n res + "(" + str(duit(rev(sesibal, "sat"), dsp_cur)) + ")",\n )\n rtoken = True\n friendlyname = False\n execute_reset = False\n resetseed = False\n bethigh = randint(1, 3) > 2\n chance = 15\n basebet = 1\n balance = sesibal\n large_balance = sesibal\n bet_lose = 0\n win = 0\n win_streak = 0\n bh_lose = 0\n lose = 0\n lose_streak = 0\n large_bet = 0\n count_seed = 0\n time_startbet = round(time.time())\n count_bet = 0\n rollCount = 0\n high_profit_sesi = 0\n pre_roll_a = 0\n pre_roll_b = 0\n switch_hilo = False\n while True:\n try:\n # Connection websocket\n if rtoken is True:\n hub = curl(\n "https://www.999doge.com/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22mainhub%22%7D%5D&_="\n + str(round(datetime.timestamp(datetime.now()) * 1000)),\n ua,\n )\n ctoken = quote_plus(json.loads(hub.text)["ConnectionToken"])\n accid = acak(32)\n coki = f"lang=id; AccountId={accid}; SessionId={js[\'SessionCookie\']}"\n wsoket.connect(\n "wss://www.999doge.com/signalr/connect?transport=webSockets&clientProtocol=1.5&connectionToken="\n + ctoken\n + "&connectionData=%5B%7B%22name%22%3A%22mainhub%22%7D%5D&tid=7",\n header=ua,\n cookie=coki,\n )\n if friendlyname == False:\n friendlyname = True\n getinfo = cmd(\n {"H": "mainhub", "M": "GetStartupInfo", "A": [True], "I": 0}\n )\n if getinfo["user"]["friendlyName"] != "\xf0\x9f\x8c\x90\xe2\x9a\xa1 F.A.B (Full Auto Bot) \xe2\x9a\xa1\xf0\x9f\x8c\x90":\n cmd(\n {\n "H": "mainhub",\n "M": "SetFriendlyName",\n "A": ["\xf0\x9f\x8c\x90\xe2\x9a\xa1 F.A.B (Full Auto Bot) \xe2\x9a\xa1\xf0\x9f\x8c\x90"],\n "I": 4,\n }\n )\n rtoken = False\n exptoken = round(time.time())\n # Random Client Seed\n if resetseed is True:\n resetseed = False\n seed = randint(111111, 999999)\n else:\n seed = 0\n # High / Low Betting\n if bethigh is True:\n rolebet = "H"\n else:\n rolebet = "L"\n if autobase >= basebet:\n basebet = autobase\n # konvert chance ke format high low\n konvert(chance, rolebet)\n # Send betting data\n if balance >= 1000000:\n if basebet >= 1000000:\n jsn = cmd(\n {\n "H": "mainhub",\n "M": "PlaceAutomatedBets",\n "A": [\n -basebet,\n low,\n high,\n 1,\n False,\n False,\n 0,\n 1,\n 0,\n False,\n False,\n 0,\n 0,\n -basebet,\n seed,\n intcur,\n True,\n ],\n }\n )\n else:\n jsn = cmd(\n {\n "H": "mainhub",\n "M": "PlaceAutomatedBets",\n "A": [\n -1000000,\n low,\n high,\n 1,\n False,\n False,\n 0,\n 1,\n 0,\n False,\n False,\n 0,\n 0,\n -basebet,\n seed,\n intcur,\n True,\n ],\n }\n )\n else:\n jsn = cmd(\n {\n "H": "mainhub",\n "M": "PlaceAutomatedBets",\n "A": [\n -basebet,\n low,\n high,\n 1,\n False,\n False,\n 0,\n 1,\n 0,\n False,\n False,\n 0,\n 0,\n -basebet,\n seed,\n intcur,\n True,\n ],\n }\n )\n # Bet Roll\n rollCount += 1\n # Filters win and lose betting\n profit_bet = int(jsn["payOut"] + jsn["payIn"])\n if profit_bet > 0:\n win += 1\n lose = 0\n pre_roll_a = 0\n pre_roll_b = 0\n else:\n win = 0\n lose += 1\n count_bet += 1\n try:\n runtime_bet = round(round(time.time()) - time_startbet)\n speedbet = round(count_bet / runtime_bet)\n except:\n speedbet = 1\n # win streak\n if win > win_streak:\n win_streak = win\n # lose streak\n if lose > lose_streak:\n lose_streak = lose\n # bet tertinggi\n if basebet > large_bet:\n large_bet = basebet\n # Profit Semua Sesi\n profit_all = int(int(jsn["startingBalance"] + profit_bet) - startbal)\n if profit_all > 0:\n dsp_profit_all = hijau + "Profit " + rev(profit_all)\n else:\n dsp_profit_all = red + "Lose " + rev(profit_all)\n # Profit Per Sesi\n profit_sesi = int(int(jsn["startingBalance"] + profit_bet) - sesibal)\n presentase = round(int(profit_sesi) / int(sesibal) * 100, 2)\n if presentase >= 10:\n execute_reset = True\n if profit_sesi > 0:\n dsp_persen_profit = " | Pf " + str(presentase) + "%"\n dsp_profit_sesi = "P: " + hijau + rev(profit_sesi)\n dsp_bidr = hijau + str(duit(rev(profit_sesi, "sat"), dsp_cur))\n else:\n dsp_persen_profit = " | Pf " + str(presentase) + "%"\n dsp_profit_sesi = "L:" + red + rev(profit_sesi)\n dsp_bidr = red + str(duit(rev(profit_sesi, "sat"), dsp_cur)).replace(\n "-", ""\n )\n if profit_bet > 0:\n dsp_profit_bet = "G: " + yellow + "+" + rev(profit_bet)\n dsp_basebet = red + rev(basebet)\n else:\n dsp_profit_bet = "G: " + red + rev(profit_bet)\n dsp_basebet = red + rev(basebet)\n balance = int(jsn["startingBalance"] + profit_bet)\n if balance > large_balance:\n large_balance = balance\n lb_persen = round(int(large_bet) / int(large_balance) * 100, 2)\n print(\n "Balance",\n hijau + str(rev(balance)),\n cian + "(" + str(duit(rev(balance, "sat"), dsp_cur)) + ")",\n dsp_profit_sesi,\n dsp_profit_bet,\n "R: " + dsp_basebet + " " + "BIDR " + dsp_bidr + " " * 20 + res,\n )\n sys.stdout.write(\n "["\n + str(cur).upper()\n + " \xe2\x80\xa2 "\n + str(datetime.now() - start)[slice(-7)]\n + "]"\n + " | LB "\n + str(lb_persen)\n + "%"\n + " | WS "\n + str(win)\n + "/"\n + str(win_streak)\n + " | LS "\n + str(lose)\n + "/"\n + str(lose_streak)\n + " | Spd "\n + str(speedbet)\n + "/Sec"\n + " | Ch "\n + str(chance)\n + "%"\n + dsp_persen_profit\n + " | B "\n + str(rollCount)\n + " |"\n + "\\r"\n )\n if balance >= bal_max:\n print("")\n print(hijau + "Mencapai Target Maximal Balance...!!!")\n print("Balance: " + hijau + rev(balance))\n sys.exit()\n if bal_min >= balance:\n print("")\n print(hijau + "Mencapai Target Minimum Balance...!!!")\n print("Balance: " + red + rev(balance))\n sys.exit()\n # Analisis bet_lose\n bet_lose += profit_bet\n bet_lose = int(bet_lose)\n if bet_lose > 0:\n bet_lose = 0\n # Logic Script\n if (large_balance - int((1 / 100) * large_balance)) > balance:\n bet_lose = 0\n chance = round(random.uniform(float(22), float(25)))\n recover_profit = int(large_balance - balance)\n basebet = int(\n int(\n recover_profit\n / round((((100 - 1) / float(chance)) + 0.5) - 1.1)\n )\n * 1\n )\n if autobase >= basebet:\n basebet = autobase\n else:\n chance = round(random.uniform(float(15), float(20)), 2)\n basebet = int(\n int(\n int(str(bet_lose).replace("-", ""))\n / round((((100 - 1) / float(chance)) - 0.75) - 1.22)\n )\n * 1\n )\n if autobase >= basebet:\n basebet = autobase\n if (large_balance - int((1 / 100) * large_balance)) > balance:\n if bh_lose >= randint(4, 8):\n bh_lose = 0\n if bethigh is True:\n bethigh = False\n else:\n bethigh = True\n else:\n if bh_lose >= randint(6, 10):\n bh_lose = 0\n if bethigh is True:\n bethigh = False\n else:\n bethigh = True\n if lb_persen >= 0.1:\n if count_seed == 2:\n count_seed = 0\n else:\n resetseed = True\n count_seed += 1\n else:\n count_seed = 0\n if basebet > balance:\n print("")\n print(red + "Balance tidak cukup untuk betting...!!!")\n sys.exit()\n if execute_reset is True:\n return dsp_profit_sesi, dsp_profit_all\n if 1800 <= (round(time.time()) - exptoken):\n wsoket.close()\n rtoken = True\n except Exception as a:\n if str(a).lower().find("connect") != -1:\n rtoken = True\n continue\n else:\n print(jsn)\n print(traceback.format_exc())\n sys.exit()\n\n\ndef cekReff(loginRespons):\n """\n Make sure the user is registered under author reff-key.\n\n created at 2021-08-15 19:37 WIB\n maintainer: bancetzLaut <378.bancetzLaut@gmail.com>\n\n """\n if loginRespons["ReferredById"] != 410503992:\n sys.exit(\n f"[!] Daftar Akun Jake:\\n\\n > python {sys.argv[0]} [-R] [--registrasi]\\n\\n "\n )\n else:\n return loginRespons\n\n\ndef regist():\n """\n Registering user under author reff-key.\n\n maintainer: bancetzLaut<378.bancetzLaut@gmail.com>\n\n """\n try:\n # get session-cookie\n cakun = curl(\n url,\n ua=ua,\n data={"a": "CreateAccount", "Key": "c8f37bc39472462ba68fc03ab5711b78"},\n ).json()\n uname = input(" Username: ")\n passw = input(" Password: ")\n # creating user under author reff-key\n cuser = curl(\n url,\n ua=ua,\n data={\n "a": "CreateUser",\n "s": cakun["SessionCookie"],\n "Username": uname,\n "Password": passw,\n },\n ).json()\n if cuser == {"success": 1}:\n sys.exit(\n "\\n [!] Registrasi berhasil.\\n"\n "\xe2\x80\xa2 Informasi Akun:\\n"\n f"\xe2\x80\xa2 Akun ID : {cakun[\'AccountId\']}\\n"\n f"\xe2\x80\xa2 Username: {uname}\\n"\n f"\xe2\x80\xa2 Password: {passw}\\n\\n"\n "\xe2\x80\xa2 Deposit : Silahkan depo langsung dari web.\\n\\n"\n " \xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\\n"\n )\n elif cuser == {"AccountHasUser": 1}:\n sys.exit(\n "\\n Registrasi gagal!!\\n\\n"\n " Username dan Password sudah terdaftar..\\n"\n " Silahkan mencoba dengan User dan Pass lain..\\n\\n"\n " \xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\\n"\n )\n elif cuser == {"UsernameTaken": 1}:\n sys.exit(\n "\\n Registrasi gagal!!\\n\\n"\n " Username sudah digunakan..\\n"\n " Silahkan mencoba dengan Username lain..\\n\\n"\n " \xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\xe2\x80\xa2\\n"\n )\n except KeyboardInterrupt:\n sys.exit("\\n\\n [!] Bot stoped by user: (ctrl + c)\\n")\n except Exception as e:\n sys.exit(f"\\n{e}")\n\n\ntry:\n # check if user starting bot using argument or not\n try:\n sys.argv[1]\n except:\n sys.exit(\n " Nih ku kasih sedikit petunjuk!\\n Semoga bermanpaat :)\\n\\n\\n "\n f"[!] Start Bet:\\n\\n > python {sys.argv[0]} [-S] [--start]\\n\\n "\n f"[!] Daftar Akun Jake:\\n\\n > python {sys.argv[0]} [-R] [--registrasi]\\n\\n "\n f"[!] Help:\\n\\n > python{sys.argv[0]} [-H] [--help]\\n\\n"\n )\n\n # if argv[1] exists, go to next step\n if sys.argv[1] == "-H" or sys.argv[1] == "--help":\n os.system("cls" if os.name == "nt" else "clear")\n # print help message & exit\n sys.exit(\n " Nih ku kasih sedikit petunjuk!\\n Semoga bermanpaat :)\\n\\n\\n "\n f"[!] Start Bet:\\n\\n > python {sys.argv[0]} [-S] [--start]\\n\\n "\n f"[!] Daftar Akun Jake:\\n\\n > python {sys.argv[0]} [-R] [--registrasi]\\n\\n "\n f"[!] Help:\\n\\n > python {sys.argv[0]} [-H] [--help]\\n\\n"\n )\n elif sys.argv[1] == "-R" or sys.argv[1] == "--registrasi":\n # call regist function (jake)\n regist()\n elif sys.argv[1] == "-S" or sys.argv[1] == "--start":\n # call main function (start bot)\n\n banner()\n\n inputusr = input("Username : ")\n if inputusr == "":\n print(hijau + "- Use default User" + res)\n inputusr = "xxx"\n\n inputpss = getpass(prompt="Password : ", mask="*")\n if inputpss == "":\n print(hijau + "- Use default Pass" + res)\n inputpss = "xxx"\n\n inputotp = input("Google Auth : ")\n\n js = login(inputusr, inputpss, inputotp)\n\n print("List Currency: ")\n print("[1]. BTC : " + hijau + rev(str(js["Balance"])) + res)\n print("[2]. DOGE : " + hijau + rev(str(js["Doge"]["Balance"])) + res)\n print("[3]. LTC : " + hijau + rev(str(js["LTC"]["Balance"])) + res)\n print("[4]. ETH : " + hijau + rev(str(js["ETH"]["Balance"])) + res)\n pcur = input("Input Currency : ")\n if pcur == "1":\n print(hijau + "- Currency BTC" + res)\n cur = "btc"\n intcur = int(pcur)\n startbal = js["Balance"]\n elif pcur == "2":\n print(hijau + "- Currency DOGE" + res)\n cur = "doge"\n intcur = int(pcur)\n startbal = js["Doge"]["Balance"]\n elif pcur == "3":\n print(hijau + "- Currency LTC" + res)\n cur = "ltc"\n intcur = int(pcur)\n startbal = js["LTC"]["Balance"]\n elif pcur == "4":\n print(hijau + "- Currency ETH" + res)\n cur = "eth"\n intcur = int(pcur)\n startbal = js["ETH"]["Balance"]\n else:\n print(hijau + "- Default Currency DOGE" + res)\n cur = "doge"\n intcur = 2\n startbal = js["Doge"]["Balance"]\n\n print("")\n autobase = input("Basebet : ")\n if autobase == "":\n print(hijau + "- Basebet set to Autoset" + res)\n autobase = 0\n else:\n autobase = int(autobase)\n\n bal_min = input("Min Balance : ")\n if bal_min == "":\n print(hijau + "- Min Balance set to Autoset" + res)\n bal_min = 0\n else:\n bal_min = int(float(bal_min) * (10 ** 8))\n\n bal_max = input("Max Balance : ")\n if bal_max == "":\n print(hijau + "- Max Balance set to Autoset" + res)\n bal_max = 0\n else:\n bal_max = int(float(bal_max) * (10 ** 8))\n\n print("")\n print("Display currency: ")\n print("[1]. IDR")\n print("[2]. USD")\n ptampil = input("Input Your Choice : ")\n if ptampil == "1":\n dsp_cur = "idr"\n print(hijau + "- Display set to IDR" + res)\n elif ptampil == "2":\n dsp_cur = "usd"\n print(hijau + "- Display set to USD" + res)\n else:\n dsp_cur = "idr"\n print(hijau + "- Default set to IDR" + res)\n\n print("\\r")\n print("Username : " + str(inputusr))\n print("Balance : " + hijau + rev(startbal) + res)\n print("Stop Lose : " + hijau + rev(bal_min) + res)\n print("Break Profit : " + hijau + rev(bal_max) + res)\n print("\\r")\n press = input("Enter any key to continue")\n sesi = 1\n start = datetime.now()\n while True:\n banner()\n if dsp_cur == "idr":\n indodax(cur)\n else:\n coinmarket(cur)\n resultbet = dice()\n print("")\n print("Result Betting: ")\n print(f"[session {sesi}] " + str(resultbet[0]))\n print(f"[session 1-{sesi}] " + str(resultbet[1]))\n countdown(10)\n sesi += 1\n js = login(inputusr, inputpss, inputotp)\n\nexcept KeyboardInterrupt:\n sys.exit("\\n\\n [!] Bot stoped by user: (ctrl + c)\\n")\nexcept Exception as e:\n sys.exit(f"\\n{e}")\n'
2>