Skip to content

Commit

Permalink
Reformat & bump to v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sryu1 committed Feb 4, 2023
1 parent 46b790f commit 230014a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Bot-CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def main():
"YouTube View Bot",
"cli_config.json",
)
print(config_file)

def config():
if not pysm.config_file_exists(config_file):
Expand Down Expand Up @@ -122,7 +121,7 @@ def update():
ghrapi = requests.get(
"https://api.github.com/repos/sryu1/YouTube_View_Bot/releases/latest"
)
current_version = "v1.2.5"
current_version = "v1.2.6"
latest_version = str(ghrapi.json()["name"])
if current_version < latest_version:
print(
Expand Down
12 changes: 10 additions & 2 deletions Bot.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ def main():
app.geometry("800x600")
app.title("YouTube View Bot")
app.after(201, lambda: app.iconbitmap("Icon.ico"))
config_file = os.path.join("C:", os.sep, "Users", os.getlogin(), "Documents", "YouTube View Bot", "config.json")
config_file = os.path.join(
"C:",
os.sep,
"Users",
os.getlogin(),
"Documents",
"YouTube View Bot",
"config.json",
)

if not pysm.config_file_exists(config_file):
configs = {"Headless": 0, "Mute": 0}
Expand Down Expand Up @@ -57,7 +65,7 @@ def main():
ghrapi = requests.get(
"https://api.github.com/repos/sryu1/YouTube_View_Bot/releases/latest"
)
current_version = "v1.2.5"
current_version = "v1.2.6"
latest_version = str(ghrapi.json()["name"])
if current_version < latest_version:
update_window = customtkinter.CTkToplevel()
Expand Down
17 changes: 13 additions & 4 deletions Stream Bot.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ def main():
app.geometry("800x600")
app.title("YouTube Stream View Bot")
app.after(201, lambda: app.iconbitmap("Icon.ico"))
config_file = os.path.join("C:", os.sep, "Users", os.getlogin(), "Documents", "YouTube View Bot", "stream_config.json")

config_file = os.path.join(
"C:",
os.sep,
"Users",
os.getlogin(),
"Documents",
"YouTube View Bot",
"stream_config.json",
)

if not pysm.config_file_exists(config_file):
configs = {"Headless": 0, "Mute": 0}
Expand All @@ -45,7 +52,7 @@ def main():
ghrapi = requests.get(
"https://api.github.com/repos/sryu1/YouTube_View_Bot/releases/latest"
)
current_version = "v1.2.5"
current_version = "v1.2.6"
latest_version = str(ghrapi.json()["name"])
if current_version < latest_version:
update_window = customtkinter.CTkToplevel()
Expand Down Expand Up @@ -89,7 +96,9 @@ def main():
app.destroy()

# Stop Button
stop_button = customtkinter.CTkButton(master=border, command=stop_bot, text="Stop Bot")
stop_button = customtkinter.CTkButton(
master=border, command=stop_bot, text="Stop Bot"
)
stop_button.pack(pady=10, padx=10)

def play_video(drivers):
Expand Down

0 comments on commit 230014a

Please sign in to comment.