Thread:Project:Support desk/Server hangs up while using bot class/reply

You could start by putting debug statements to find exactly the line that causes your server to hang.