intel-screenbot

An Ingress Intel Map Bot for Hangoutsbot
git clone git://archive.git.mtrnord.blog/MTRNord/intel-screenbot.git
Log | Files | Refs | README | LICENSE

commit 0ac4953ebe8c55718fe7147b740ce4d1e5638a2d
parent 0760f9b1a39d1be4c6b746dd15a622239a009b53
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Thu, 10 Nov 2016 08:03:20 +0100

Cleanup Code
Diffstat:
Mintel_screenbot/__init__.py | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/intel_screenbot/__init__.py b/intel_screenbot/__init__.py @@ -20,7 +20,6 @@ def _open_file(name): @asyncio.coroutine def _screencap(url, filename, SACSID, CSRF, search): logger.info("screencapping {} and saving as {}".format(url, filename)) - #os.path.realpath(__file__) if search == False: command = ['phantomjs', 'hangupsbot/plugins/intel_screenbot/screencap.js', SACSID, CSRF, url, filename] process = subprocess.Popen(command, shell=False, stdout=subprocess.PIPE) @@ -35,7 +34,6 @@ def _screencap(url, filename, SACSID, CSRF, search): except Exception as e: logger.debug("Exception: {}".format(e)) process.kill() - yield from asyncio.sleep(5) loop = asyncio.get_event_loop() # read the resulting file into a byte array file_resource = yield from _open_file(filename)