def update(request): bot = helper.get_bot() return JsonResponse(bot.on_update(request.body))
def levelup(request): bot = helper.get_bot() return JsonResponse({'abilityIndex': bot.on_level_up(request.body)})
def select(request): bot = helper.get_bot() return JsonResponse(bot.on_select(request.body))
def chat(request): bot = helper.get_bot() json_response = bot.on_chat_message(request.body) return JsonResponse(bot.on_chat_message(request.body))
def reset(request): bot = helper.get_bot() return JsonResponse(bot.on_reset(request.body))