forked from alcy/OpsBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.pl
More file actions
35 lines (27 loc) · 683 Bytes
/
bot.pl
File metadata and controls
35 lines (27 loc) · 683 Bytes
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
31
32
33
34
35
#!/usr/bin/perl
use strict;
use warnings;
use lib '../';
use OpsBot::Config;
use OpsBot::Jabber qw(jabber);
%plugins = (
rt => {
url => 'https://rt.example.com',
user => 'foo',
pass => 'pass',
rt_timezone => 'UTC',
desired_timezone => 'Asia/Kolkata',
},
nagios => {
server => 'nagios.example.com',
port => '6557' # live status port
},
jabber => {
user => 'bot@localhost',
pass => 'botpass',
nick => 'botnick',
rooms => ['test1@conference.localhost', 'test2@conference.localhost'],
},
);
prepare(); # required for setting entry subroutines for different plugins, see Config.pm
jabber(); # starts the ( jabber ) bot