User:NunoLava1998's Bot/chat.bat

@echo off setlocal enableDelayedExpansion cls title Bot running. echo Bot running. goto init :init set loc_log=tmp~/press.vbs set loc_hibai=tmp~/msg.vbs set msghello=Welcome back/to chat! (or) Bye! mkdir tmp~ mkdir cpacks goto log :log REM log in echo Set WshShell = WScript.CreateObject("WScript.Shell") >> %loc_log% echo WshShell.Run("iexplore.exe https://www.wikia.com/signin?redirect=http%3A%2F%2Fhypotheticalhurricanes.wikia.com%2Fwiki%2FSpecial:Chat&modal=1&forceLogin=0", 1) echo WshShell.SendKeys "{TAB} 3" >> %loc_log% echo WshShell.SendKeys "NunoLava1998's Bot" >> %loc_log% echo WshShell.SendKeys "{TAB}" >> %loc_log% echo WshShell.SendKeys "not revealing" >> %loc_log% echo WshShell.SendKeys "{TAB}" >> %loc_log% echo WshShell.SendKeys "~" >> %loc_log% start %loc_log% goto main :main cd cpacks set max=0 for %%x in (version-*.cpk) do ( set "FN=%%~nx"  set "FN=!FN:version-=!"  if !FN! GTR !max! set max=!FN! ) set curcfile=cpack-%max%.cpk findstr /m 		Hurricane if %errorlevel%==0 ( echo Set WshShell = WScript.CreateObject("WScript.Shell") >> %loc_hibai% echo WshShell.SendKeys "%msghello%" >> %loc_hibai% start %loc_hibai% echo Message sent. del *.* cd .. ) else (goto main)