implemented basic bot functionality.