bot.core: Fix a type inference