Fixed autoload and extracted function into BotStats