moved functions to other files, bot.js was getting convoluted