refactor botstats command