aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Bot/Plugin/AutoAcceptInvites.pm6
blob: 39bdd59c5e34b2717ec22b4fcadbb910685a1b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /usr/bin/env false

use v6.d;

use Matrix::Bot::Plugin;

unit class Matrix::Bot::Plugin::AutoAcceptInvites is Matrix::Bot::Plugin;

multi method handle-invite ($e --> Bool) {
	self.log.info("Joining room {$e.room}, invited by {$e.user}");
	True;
}

=begin pod

=NAME    Matrix::Bot::Plugin::AutoAcceptInvites
=AUTHOR  Patrick Spek <p.spek@tyil.work>
=VERSION 0.0.0

=head1 Synopsis

=head1 Description

=head1 Examples

=head1 See also

=end pod

# vim: ft=perl6 noet