Skip to content

Commit 230014a

Browse files
committed
Reformat & bump to v1.2.6
1 parent 46b790f commit 230014a

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

Bot-CLI.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def main():
1818
"YouTube View Bot",
1919
"cli_config.json",
2020
)
21-
print(config_file)
2221

2322
def config():
2423
if not pysm.config_file_exists(config_file):
@@ -122,7 +121,7 @@ def update():
122121
ghrapi = requests.get(
123122
"https://api.github.com/repos/sryu1/YouTube_View_Bot/releases/latest"
124123
)
125-
current_version = "v1.2.5"
124+
current_version = "v1.2.6"
126125
latest_version = str(ghrapi.json()["name"])
127126
if current_version < latest_version:
128127
print(

Bot.pyw

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ def main():
1919
app.geometry("800x600")
2020
app.title("YouTube View Bot")
2121
app.after(201, lambda: app.iconbitmap("Icon.ico"))
22-
config_file = os.path.join("C:", os.sep, "Users", os.getlogin(), "Documents", "YouTube View Bot", "config.json")
22+
config_file = os.path.join(
23+
"C:",
24+
os.sep,
25+
"Users",
26+
os.getlogin(),
27+
"Documents",
28+
"YouTube View Bot",
29+
"config.json",
30+
)
2331

2432
if not pysm.config_file_exists(config_file):
2533
configs = {"Headless": 0, "Mute": 0}
@@ -57,7 +65,7 @@ def main():
5765
ghrapi = requests.get(
5866
"https://api.github.com/repos/sryu1/YouTube_View_Bot/releases/latest"
5967
)
60-
current_version = "v1.2.5"
68+
current_version = "v1.2.6"
6169
latest_version = str(ghrapi.json()["name"])
6270
if current_version < latest_version:
6371
update_window = customtkinter.CTkToplevel()

Stream Bot.pyw

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,15 @@ def main():
1717
app.geometry("800x600")
1818
app.title("YouTube Stream View Bot")
1919
app.after(201, lambda: app.iconbitmap("Icon.ico"))
20-
config_file = os.path.join("C:", os.sep, "Users", os.getlogin(), "Documents", "YouTube View Bot", "stream_config.json")
21-
20+
config_file = os.path.join(
21+
"C:",
22+
os.sep,
23+
"Users",
24+
os.getlogin(),
25+
"Documents",
26+
"YouTube View Bot",
27+
"stream_config.json",
28+
)
2229

2330
if not pysm.config_file_exists(config_file):
2431
configs = {"Headless": 0, "Mute": 0}
@@ -45,7 +52,7 @@ def main():
4552
ghrapi = requests.get(
4653
"https://api.github.com/repos/sryu1/YouTube_View_Bot/releases/latest"
4754
)
48-
current_version = "v1.2.5"
55+
current_version = "v1.2.6"
4956
latest_version = str(ghrapi.json()["name"])
5057
if current_version < latest_version:
5158
update_window = customtkinter.CTkToplevel()
@@ -89,7 +96,9 @@ def main():
8996
app.destroy()
9097

9198
# Stop Button
92-
stop_button = customtkinter.CTkButton(master=border, command=stop_bot, text="Stop Bot")
99+
stop_button = customtkinter.CTkButton(
100+
master=border, command=stop_bot, text="Stop Bot"
101+
)
93102
stop_button.pack(pady=10, padx=10)
94103

95104
def play_video(drivers):

0 commit comments

Comments
 (0)