From 2a9c3799ceeb7d707751cf1672b50c7891703a6b Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 8 Jan 2019 20:33:06 +0000 Subject: updated database --- SmallYTChannelDatabase.db | Bin 435200 -> 461824 bytes login.py.save | 9 +++++++++ nano.save | 1 + runprog.py | 23 ----------------------- 4 files changed, 10 insertions(+), 23 deletions(-) create mode 100644 login.py.save create mode 100644 nano.save delete mode 100644 runprog.py diff --git a/SmallYTChannelDatabase.db b/SmallYTChannelDatabase.db index 353833f..ffea1a0 100644 Binary files a/SmallYTChannelDatabase.db and b/SmallYTChannelDatabase.db differ diff --git a/login.py.save b/login.py.save new file mode 100644 index 0000000..c689d2f --- /dev/null +++ b/login.py.save @@ -0,0 +1,9 @@ +from imgurpython import ImgurClient +import praw + +REDDIT = praw.Reddit(client_id = "PyyyRXa3veWsWA", + client_secret = "hAMbhuzdHIew5hmn1CFwWb5FurM", + user_agent = "SmallYTChannelBot", + username = "SmallYTChannelBot", + password = "rb0 +OvvS9eRxXTx8karbm") diff --git a/nano.save b/nano.save new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/nano.save @@ -0,0 +1 @@ + diff --git a/runprog.py b/runprog.py deleted file mode 100644 index a564678..0000000 --- a/runprog.py +++ /dev/null @@ -1,23 +0,0 @@ -from time import sleep -import subprocess -import multiprocessing - -def thread_(): - subprocess.run(["python3", "SmallYTChannelBotSubmissions.py"]) - -while True: - thread = multiprocessing.Process(target = thread_, args = ()) - thread.start() - - sleep(60 * 60 * 2) - - #print("closing...") - #file = open("pid.txt", "r") - #pid = file.readlines()[0] - #file.close() - - #subprocess.run(["kill", pid]) - thread.terminate() - - #print("killed ", pid) - -- cgit v1.2.3