Rewrite Scripting bot respecting the Bot API + Code Optimization

Do NOT put thread sleeps in bots. NEVER. Initialize() and Update() are
called in the main thread!
Also, a delay should be respected between each chat/command sendind to
avoid being kicked.
Putting Thread.Sleep() in bots may cause the client to be out of sync
with the server or make it lose connection so again do not use them :)
This commit is contained in:
ORelio 2013-07-20 12:58:41 +02:00
parent 52d603026e
commit 2d174f81c0
5 changed files with 86 additions and 67 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<StartArguments>user - 127.0.0.1 bot:scripting</StartArguments>
<StartArguments>TestBot - localhost bot:scripting:testscript.txt</StartArguments>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>