@api_view(['POST'])
def irc_message_view(request):
    channel_layer = get_channel_layer()
    async_to_sync(channel_layer.group_send)('twitchchat', {'type': 'twitchchat.event', 'data': request.data})
    return Response({}, status=status.HTTP_201_CREATED)
@api_view(['POST'])
def irc_message_view(request):
    channel_layer = get_channel_layer()
    async_to_sync(channel_layer.group_send)('twitchchat', {'type': 'twitchchat.event', 'data': request.data})
    return Response({}, status=status.HTTP_201_CREATED)