2020-02-14 07:31:18 +01: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-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 {
|
2020-02-15 23:38:32 +01:00
|
|
|
use File::Basename;
|
|
|
|
$bothome = -l __FILE__ ? dirname readlink __FILE__ : dirname __FILE__;
|
|
|
|
unshift @INC, $bothome;
|
2019-12-20 08:29:56 +01:00
|
|
|
}
|
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 = (
|
2020-04-21 02:53:32 +02:00
|
|
|
data_dir => "$bothome/data",
|
|
|
|
module_dir => "$bothome/modules",
|
|
|
|
plugin_dir => "$bothome/Plugins",
|
|
|
|
update_dir => "$bothome/updates",
|
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();
|