from tweepy_bot import TwitterBot
def create_bot():
bot_obj = Twitter()
bots_collection = mongo.db.bots
new_bot = {
'bot_name': 'bot1bot1',
'link': bot_obj
}
bots_collection.insert(new_bot)
def run_bot(bot_name):
bots_collection = mongo.db.bots
founded_bot = bot_collection.found_one({'bot_name'}:bot_name):
founded_bot['link'].run()