This repository was archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbot.py
77 lines (63 loc) · 2.03 KB
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import json
import logging
from ClassBot import Menu, DeveloperMode
from colorama import *
import os.path
import pyautogui
import time
import traceback
import cv2 as cv
import os
import ctypes
user32 = ctypes.windll.user32
screensize = user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)
'''
Function to resize bot window
'''
from ctypes import windll, byref
import ctypes.wintypes as wintypes
init(autoreset=True)
VERSION = "7.1.0"
STDOUT = -11
hdl = windll.kernel32.GetStdHandle(STDOUT)
rect = wintypes.SMALL_RECT(0, 0, 56, 26) # (left, top, right, bottom)
windll.kernel32.SetConsoleWindowInfo(hdl, True, byref(rect))
def main():
dependencies()
print("\n\n\n")
logging.basicConfig(filename="latest.log", filemode="w", format='%(asctime)s - %(funcName)s : %(message)s',
level=logging.DEBUG)
logging.info(f"VERSION : {VERSION} - BOT by HoloKi. Info : https://github.com/HoloKi/BitHeroesBot")
logging.info("https://discord.gg/h98xsssEpe")
logging.debug(screensize)
logging.info(
"The bot is completely free, any sale is prohibited.If someone sold it to you, get your money back and report "
"it to the developer")
print(f"BitHeroesBot by Holoki ------ VERSION = {VERSION} ------")
print("Translate by PastShadie")
print("All info on latest.log")
# check if there isnt a data.json
DeveloperMode.Populate()
print(" ____ _ _ _")
print("| _ \| | | | | |")
print("| |_) | |__ | |__ ___ | |_")
print("| _ <| '_ \ | '_ \ / _ \| __|")
print("| |_) | | | | | |_) | (_) | |_ ")
print("|____/|_| |_| |_.__/ \___/ \__|")
while True:
cycle = Menu.menu()
if cycle == 0:
exit()
# Install dependecies
def dependencies():
try:
os.system('cmd /c "pip install -r requirements"')
except Exception as e:
print(e)
logging.error(e)
if __name__ == '__main__':
try:
main()
except Exception as e:
logging.error(traceback.format_exc())
print(e)