Fixed: Timeout error. Bots become more quickly!

Fixed: Timeout error. Bots become more quickly!



It is actuall chart for BJS-runtime execution time for last hour. You can see that in 21:15 we have more quickly BJS-runtime.


What happens?

We find bug with Timeout error. Each getProperty method could take above 1 sec for execution. So if your bot has 5 methods execution could be more then 2 secs! It is very big time and we had timeout error.

This bug was associated with case-sensitive support in properties and commands.


Examples

Bot.getProperty("name") was be equal to Bot.getProperty("NaMe")

Command /start was be equal to command /sTarT or /START

Now such things is not equals!


It was decided to go from case-insensitive to case-sensentive. It resolve timeout errors.


ResourcesLib - also affected.


What I need to do?

  1. Please make aliases for commands if you need it. For example you can make alias for /start with /START

2. Please check your all Bot.setProperty, Bot.getProperty, User.setProperty and User.getProperty. Now names are case-sensentive.

3. Please check your ResourcesLib code

Report Page