[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/Corion/Mojolicious-Matterbridge?branch=master&svg=true)](https://ci.appveyor.com/project/Corion/Mojolicious-Matterbridge)
[![Windows](https://github.com/Corion/Mojolicious-Matterbridge/workflows/windows/badge.svg)](https://github.com/Corion/Mojolicious-Matterbridge/actions?query=workflow%3Awindows)
[![MacOS](https://github.com/Corion/Mojolicious-Matterbridge/workflows/macos/badge.svg)](https://github.com/Corion/Mojolicious-Matterbridge/actions?query=workflow%3Amacos)
[![Linux](https://github.com/Corion/Mojolicious-Matterbridge/workflows/linux/badge.svg)](https://github.com/Corion/Mojolicious-Matterbridge/actions?query=workflow%3Alinux)

# NAME

Mojolicious::Matterbridge - a simplistic module to connect to chat servers via matterbridge

# SYNOPSIS

    use Mojolicious::Matterbridge;

    my $client = Mojolicious::Matterbridge->new(
        url => 'http://localhost:4242/api/',
    );

    $client->on('message' => sub( $c, $message ) {
        print sprintf "<%s> %s\n", $message->username, $message->text;
        $client->send( "Haha!" );
    });
    $client->connect();

    Mojo::IOLoop->start unless Mojo::IOLoop->is_running;

# REPOSITORY

The public repository of this module is
[https://github.com/Corion/Mojolicious-Matterbridge](https://github.com/Corion/Mojolicious-Matterbridge).

# SUPPORT

The public support forum of this module is [https://perlmonks.org/](https://perlmonks.org/).

# BUG TRACKER

Please report bugs in this module via the Github bug queue at
[https://github.com/Corion/Mojolicious-Matterbridge/issues](https://github.com/Corion/Mojolicious-Matterbridge/issues)

# AUTHOR

Max Maischein `corion@cpan.org`

# COPYRIGHT (c)

Copyright 2020 by Max Maischein `corion@cpan.org`.

# LICENSE

This module is released under the same terms as Perl itself.