Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polettix/bot-chatbots-trello
Trello adapter for Bot::ChatBots
https://github.com/polettix/bot-chatbots-trello
Last synced: 27 days ago
JSON representation
Trello adapter for Bot::ChatBots
- Host: GitHub
- URL: https://github.com/polettix/bot-chatbots-trello
- Owner: polettix
- License: other
- Created: 2018-03-09T22:49:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-10T06:21:14.000Z (almost 7 years ago)
- Last Synced: 2024-10-27T12:33:07.011Z (3 months ago)
- Language: Perl
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Bot::ChatBots::Trello - Trello adapter for Bot::ChatBots
# VERSION
This document describes Bot::ChatBots::Trello version {{\[ version \]}}.
# SYNOPSIS
# A minimal Trello Bot using WebHooks
use Mojolicious::Lite;
plugin 'Bot::ChatBots::Trello' => instances => [
[
'WebHook',
processor => \&processor,
url => $ENV{URL}, # whatever you think is good
],
# more can follow here...
];
app->start;
sub processor {
my $record = shift;
say $record->{payload}{action}{type} ' happened';
return $record;
}# DESCRIPTION
This module allows you to to define [Bot::ChatBots](https://metacpan.org/pod/Bot::ChatBots) for
[Trello](https://trello.com/), a kanban boards online application.Strictly speaking, this _module_ is a [Mojolicious](https://metacpan.org/pod/Mojolicious) plugin that allows
you to load and use [Bot::ChatBots::Telegram::WebHook](https://metacpan.org/pod/Bot::ChatBots::Telegram::WebHook) (see ["SYNOPSIS"](#synopsis)
for a quick example), providing a way to receive _actions_ from Trello.These modules rely upon [Log::Any](https://metacpan.org/pod/Log::Any) for emitting logging information; you
are encouraged to read that module's documentation for further
information. For what we are concerned, you have to remember that all logs
will be lost unless you configure [Log::Any](https://metacpan.org/pod/Log::Any), e.g. to send messages on
standard output you can do this:use Log::Any::Adapter qw< Stderr >;
If using the web hook, then you will probably want to send the logs
together with [Mojolicious](https://metacpan.org/pod/Mojolicious)'s logs, like this:use Mojolicious::Lite;
use Log::Any::Adapter;
Log::Any::Adapter->set(MojoLog => logger => app->log);The configuration above relies on the presence of
[Log::Any::Adapter::MojoLog](https://metacpan.org/pod/Log::Any::Adapter::MojoLog).# METHODS
All the heavylifting is done by [Bot::ChatBots::MojoPlugin](https://metacpan.org/pod/Bot::ChatBots::MojoPlugin).
# BUGS AND LIMITATIONS
Report bugs either through GitHub (patches welcome).
# SEE ALSO
[Bot::ChatBots](https://metacpan.org/pod/Bot::ChatBots), [Bot::ChatBots::Trello::WebHook](https://metacpan.org/pod/Bot::ChatBots::Trello::WebHook).
# AUTHOR
Flavio Poletti
# COPYRIGHT AND LICENSE
Copyright (C) 2018 by Flavio Poletti
This module is free software. You can redistribute it and/or modify it
under the terms of the Artistic License 2.0.This program is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.