aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-03-29 19:10:24 +0000
committerbloodstalker <thabogre@gmail.com>2018-03-29 19:10:24 +0000
commit33a4fff8c5856e9be28e649c9d0c2fa1714a738f (patch)
tree42db2ecbb45462b2906aec79e5da849d8af3e98a
parentupdate (diff)
downloadkaminokumo-33a4fff8c5856e9be28e649c9d0c2fa1714a738f.tar.gz
kaminokumo-33a4fff8c5856e9be28e649c9d0c2fa1714a738f.zip
update
-rwxr-xr-xkaminokumo10
1 files changed, 4 insertions, 6 deletions
diff --git a/kaminokumo b/kaminokumo
index 9d6d66c..d239c0f 100755
--- a/kaminokumo
+++ b/kaminokumo
@@ -34,14 +34,14 @@ def mrg(url):
length = len(res[7].text.split(","))
for split in res[7].text.split(","):
if length == 1:
- if split.find("minutes"):
- print("hey, wer'e up")
+ if split.find("minutes") != -1:
+ print("mg")
return True
###############################################################################
def premain(argparser):
signal.signal(signal.SIGINT, SigHandler_SIGINT)
- url = json.load(open("./data.json"))
+ url = json.load(open("/home/bloodstalker/extra/kaminokumo/data.json"))
mrg(url["url"])
def main():
@@ -55,9 +55,7 @@ def main():
shell = code.InteractiveConsole(variables)
shell.interact(banner="DEBUG REPL")
else:
- while True:
- premain(argparser)
- sleep(600)
+ premain(argparser)
if __name__ == "__main__":
main()