I think your post is misplaced. It has nothing to do with scripting.
I'm no expert on the subject but DCC chat issues are more often than not caused by routers. Specifically, how does the router know which LAN PC should receive the response. If you do have a router then information should be available on the Internet on how to configure it for DCC chat.
I dont think it is the router I have had the same router for over a year and no changes have been made to it. when i dcc chat the bot it doesnt respond for 30 seconds.
when I /ctcp bot chat the bot it asks immediatedly for me to accept which I do then it waits 30 seconds to respond after that.
I just dont know where to lookI would think if it were the router the ctcp would be delayed