{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3856","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3856/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3856/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3856/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3856","id":171014981,"number":3856,"title":"Installation batch for Windows","user":{"login":"danielsdian","id":20975781,"avatar_url":"https://avatars.githubusercontent.com/u/20975781?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsdian","html_url":"https://github.com/danielsdian","followers_url":"https://api.github.com/users/danielsdian/followers","following_url":"https://api.github.com/users/danielsdian/following{/other_user}","gists_url":"https://api.github.com/users/danielsdian/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsdian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsdian/subscriptions","organizations_url":"https://api.github.com/users/danielsdian/orgs","repos_url":"https://api.github.com/users/danielsdian/repos","events_url":"https://api.github.com/users/danielsdian/events{/privacy}","received_events_url":"https://api.github.com/users/danielsdian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-13T16:02:03Z","updated_at":"2016-08-13T16:39:04Z","closed_at":null,"body":"Hi Everyone!\r\n\r\nI created some batch files to help the new guys install and run the bot and would like some review on them...\r\n\r\nI suggest we provide these batches along with \r\nPyYAML-3.11-cp27-cp27m-win_amd64.whl\r\nPyYAML-3.11-cp27-cp27m-win32.whl\r\nA web shortcut to http://localhost:8000/\r\n\r\n# INSTALL BATCH:\r\nTITLE PokemonGo-Bot Installer\r\n@ECHO OFF\r\nCLS\r\n\r\n:init\r\nsetlocal DisableDelayedExpansion\r\nset \"batchPath=%~0\"\r\nfor %%k in (%0) do set batchName=%%~nk\r\nset \"vbsGetPrivileges=%temp%\\OEgetPriv_%batchName%.vbs\"\r\nsetlocal EnableDelayedExpansion\r\n\r\n:checkPrivileges\r\nNET FILE 1>NUL 2>NUL\r\nif '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )\r\n\r\n:getPrivileges\r\nif '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)\r\nECHO.\r\n\r\nECHO Set UAC = CreateObject^(\"Shell.Application\"^) > \"%vbsGetPrivileges%\"\r\nECHO args = \"ELEV \" >> \"%vbsGetPrivileges%\"\r\nECHO For Each strArg in WScript.Arguments >> \"%vbsGetPrivileges%\"\r\nECHO args = args ^& strArg ^& \" \"  >> \"%vbsGetPrivileges%\"\r\nECHO Next >> \"%vbsGetPrivileges%\"\r\nECHO UAC.ShellExecute \"!batchPath!\", args, \"\", \"runas\", 1 >> \"%vbsGetPrivileges%\"\r\n\"%SystemRoot%\\System32\\WScript.exe\" \"%vbsGetPrivileges%\" %*\r\nexit /B\r\n\r\n:gotPrivileges\r\nsetlocal & pushd .\r\ncd /d %~dp0\r\nif '%1'=='ELEV' (del \"%vbsGetPrivileges%\" 1>nul 2>nul  &  shift /1)\r\n@ECHO ON\r\n@ECHO.\r\n@ECHO --------------------PokemonGo-Bot Installer--------------------\r\n@ECHO. \r\n@ECHO.\r\n@ECHO.\r\n@ECHO Before proceeding, please install the following software:\r\n@ECHO. \r\n@ECHO ---- Python 2.7.x\r\n@ECHO      \"http://docs.python-guide.org/en/latest/starting/installation/\"\r\n@ECHO.\r\n@ECHO ---- git\r\n@ECHO      \"https://git-scm.com/book/en/v2/Getting-Started-Installing-Git\"\r\n@ECHO.\r\n@ECHO ---- Protoc\r\n@ECHO      \"https://github.com/google/protobuf/releases/download/v3.0.0-beta-4/protoc-3.0.0-beta-4-win32.zip\"\r\n@ECHO.\r\n@ECHO ---- Microsoft Visual C++ Compiler for Python 2.7\r\n@ECHO      \"http://www.microsoft.com/en-us/download/details.aspx?id=44266\"\r\n@ECHO.\r\n@ECHO ---- encrypt.so / encrypt.dll /encrypt_64.dll (Copy to the same folder as this batch file)\r\n@ECHO      Get them from our Slack chat! \"https://pokemongo-bot.herokuapp.com/\"\r\n@ECHO.\r\n@ECHO ---- If you already have a config.json and a userdata.js, copy to the same folder as this batch file.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@PAUSE\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------Creating Backup--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\nCOPY C:\\Python27\\PokemonGo-Bot\\encrypt*.* \"%~dp0\\\"\r\nCOPY C:\\Python27\\PokemonGo-Bot\\configs\\config.json \"%~dp0\\\"\r\nCOPY C:\\Python27\\PokemonGo-Bot\\web\\config\\userdata.js \"%~dp0\\\"\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------Downloading PokemonGo-Bot--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\nRMDIR C:\\Python27\\PokemonGo-Bot /s /q\r\ncd C:\\Python27\\\r\npip2 install --upgrade pip\r\npip2 install --upgrade virtualenv\r\npip2 install --upgrade \"%~dp0\\PyYAML-3.11-cp27-cp27m-win32.whl\"\r\npip2 install --upgrade \"%~dp0\\PyYAML-3.11-cp27-cp27m-win_amd64.whl\"\r\ngit clone --recursive -b dev https://github.com/PokemonGoF/PokemonGo-Bot\r\npip2 install --upgrade -r C:/Python27/PokemonGo-Bot/requirements.txt\r\ncd C:/Python27/PokemonGo-Bot/\r\nvirtualenv .\r\ncall C:\\Python27\\PokemonGo-Bot\\Scripts\\activate.bat\r\npip2 install --upgrade -r C:/Python27/PokemonGo-Bot/requirements.txt\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------Copying additional files--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\nCOPY \"%~dp0\\encrypt*.*\" C:\\Python27\\PokemonGo-Bot\\\r\nCOPY \"%~dp0\\config.json\" C:\\Python27\\PokemonGo-Bot\\configs\\\r\nCOPY \"%~dp0\\userdata.js\" C:\\Python27\\PokemonGo-Bot\\web\\config\\\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------File customization--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO Remember to configure both config.json and userdata.js!\r\n@ECHO.\r\n@ECHO \"C:/Python27/PokemonGo-Bot/configs/config.json\"\r\n@ECHO.\r\n@ECHO \"C:/Python27/PokemonGo-Bot/web/config/userdata.js\"\r\n@ECHO.\r\n@ECHO To get an Google Map API Key:\r\n@ECHO https://developers.google.com/maps/documentation/javascript/get-api-key\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@PAUSE\r\n\r\n\r\n# START FILE:\r\nTITLE PokemonGo-Bot\r\n@ECHO OFF\r\nCLS\r\n\r\n:init\r\nsetlocal DisableDelayedExpansion\r\nset \"batchPath=%~0\"\r\nfor %%k in (%0) do set batchName=%%~nk\r\nset \"vbsGetPrivileges=%temp%\\OEgetPriv_%batchName%.vbs\"\r\nsetlocal EnableDelayedExpansion\r\n\r\n:checkPrivileges\r\nNET FILE 1>NUL 2>NUL\r\nif '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )\r\n\r\n:getPrivileges\r\nif '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)\r\nECHO.\r\n\r\nECHO Set UAC = CreateObject^(\"Shell.Application\"^) > \"%vbsGetPrivileges%\"\r\nECHO args = \"ELEV \" >> \"%vbsGetPrivileges%\"\r\nECHO For Each strArg in WScript.Arguments >> \"%vbsGetPrivileges%\"\r\nECHO args = args ^& strArg ^& \" \"  >> \"%vbsGetPrivileges%\"\r\nECHO Next >> \"%vbsGetPrivileges%\"\r\nECHO UAC.ShellExecute \"!batchPath!\", args, \"\", \"runas\", 1 >> \"%vbsGetPrivileges%\"\r\n\"%SystemRoot%\\System32\\WScript.exe\" \"%vbsGetPrivileges%\" %*\r\nexit /B\r\n\r\n:gotPrivileges\r\nsetlocal & pushd .\r\ncd /d %~dp0\r\nif '%1'=='ELEV' (del \"%vbsGetPrivileges%\" 1>nul 2>nul  &  shift /1)\r\n@ECHO ON\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------Verifying PokemonGo-Bot version--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\ncd C:/Python27/PokemonGo-Bot/\r\ngit pull\r\ngit submodule update --init --recursive\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO WARNING: Verify if the Config.json file got updated. \r\n@ECHO If Yes, check if your modifications are still valid before proceeding.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@pause\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------Initializing environment--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\ncd C:/Python27/PokemonGo-Bot/\r\nvirtualenv .\r\ncall C:\\Python27\\PokemonGo-Bot\\Scripts\\activate.bat\r\npip2 install --upgrade -r C:/Python27/PokemonGo-Bot/requirements.txt\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------Initializing web server--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\nstart cmd.exe /k \"cd C:/Python27/PokemonGo-Bot/web&python -m SimpleHTTPServer\"\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\n@ECHO --------------------Starting bot--------------------\r\n@ECHO.\r\n@ECHO.\r\n@ECHO.\r\npython C:/Python27/PokemonGo-Bot/pokecli.py\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/239629897","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3856#issuecomment-239629897","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3856","id":239629897,"user":{"login":"keugnu","id":13875740,"avatar_url":"https://avatars.githubusercontent.com/u/13875740?v=3","gravatar_id":"","url":"https://api.github.com/users/keugnu","html_url":"https://github.com/keugnu","followers_url":"https://api.github.com/users/keugnu/followers","following_url":"https://api.github.com/users/keugnu/following{/other_user}","gists_url":"https://api.github.com/users/keugnu/gists{/gist_id}","starred_url":"https://api.github.com/users/keugnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keugnu/subscriptions","organizations_url":"https://api.github.com/users/keugnu/orgs","repos_url":"https://api.github.com/users/keugnu/repos","events_url":"https://api.github.com/users/keugnu/events{/privacy}","received_events_url":"https://api.github.com/users/keugnu/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T16:39:04Z","updated_at":"2016-08-13T16:39:04Z","body":"#3781"}}
{"actor":{"display_login":"keugnu"}}