-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (19 loc) · 708 Bytes
/
Copy pathmain.py
File metadata and controls
24 lines (19 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import cv2 as cv
import numpy as np
import os
from time import time
from browser import Browser
from vision import Vision
from time import sleep
import pyautogui
import logging
from bot import Bot
# Change the working directory to the folder this script is in.
# Doing this because I'll be putting the files from each video in their own folder on GitHub
os.chdir(os.path.dirname(os.path.abspath(__file__)))
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p',filename='foe.log', encoding='utf-8', level=logging.INFO)
#logger = logging.getLogger('main')
#handler = logging.FileHandler('foe.log')
#logger.warning('This is a warning')
bot = Bot()
bot.go()