Exemple #1
0
def update(request):
    bot = helper.get_bot()
    return JsonResponse(bot.on_update(request.body))
Exemple #2
0
def levelup(request):
    bot = helper.get_bot()
    return JsonResponse({'abilityIndex': bot.on_level_up(request.body)})
Exemple #3
0
def select(request):
    bot = helper.get_bot()
    return JsonResponse(bot.on_select(request.body))
Exemple #4
0
def chat(request):
    bot = helper.get_bot()
    json_response = bot.on_chat_message(request.body)
    return JsonResponse(bot.on_chat_message(request.body))
Exemple #5
0
def reset(request):
    bot = helper.get_bot()
    return JsonResponse(bot.on_reset(request.body))