2019-06-26 18:34:19 +02:00
|
|
|
#!/usr/bin/env perl
|
2010-03-17 07:36:54 +01:00
|
|
|
|
2017-03-05 22:33:31 +01:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2019-07-11 03:40:53 +02:00
|
|
|
use feature 'unicode_strings';
|
|
|
|
|
2010-03-17 07:36:54 +01:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2019-12-23 05:48:16 +01:00
|
|
|
# bothome is automatically set by this script, do not modify
|
2019-12-20 08:29:56 +01:00
|
|
|
my $bothome;
|
|
|
|
BEGIN {
|
|
|
|
use File::Basename;
|
|
|
|
$bothome = -l __FILE__ ? dirname readlink __FILE__ : dirname __FILE__;
|
|
|
|
unshift @INC, $bothome;
|
|
|
|
}
|
2010-03-17 07:36:54 +01:00
|
|
|
|
2019-12-31 04:12:55 +01:00
|
|
|
# configuration is overridden via command-line arguments, do not modify
|
|
|
|
# see doc/QuickStart.md
|
2019-06-26 18:34:19 +02:00
|
|
|
my %config = (
|
2019-12-22 04:04:39 +01:00
|
|
|
data_dir => "$bothome/data",
|
|
|
|
module_dir => "$bothome/modules",
|
|
|
|
plugin_dir => "$bothome/Plugins",
|
2014-02-05 02:10:56 +01:00
|
|
|
);
|
|
|
|
|
2019-12-20 08:29:56 +01:00
|
|
|
use PBot::PBot;
|
2019-12-31 05:09:16 +01:00
|
|
|
PBot::PBot->new(%config)->start();
|