If i understand you correctly. This is a situation were i think the bot has a big advantage. The bot can calculate to the millisecond. The bot can easily determine when a spell has started casting and how long that spell will take to cast. If the spell has been casting for >50% of it cast time then assume that its a real spell and attempt to interpret it. For the GDC, its all about timing and mathematics. Which computers excel at.