3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-17 09:29:30 +01:00
pbot/bin/pbot

26 lines
586 B
Plaintext
Raw Normal View History

2021-07-14 04:45:56 +02:00
#!/usr/bin/env perl
# File: pbot
#
# Purpose: PBot main entry point. See doc/QuickStart.md.
2023-02-21 06:31:52 +01:00
# SPDX-FileCopyrightText: 2001-2023 Pragmatic Software <pragma78@gmail.com>
2021-07-14 04:45:56 +02:00
# SPDX-License-Identifier: MIT
2021-08-16 04:42:09 +02:00
# to find real location of pbot script
use FindBin qw($RealBin);
2021-08-16 04:42:09 +02:00
# allow loading of Perl packages from this location
use lib "$RealBin/../lib";
2021-08-16 04:42:09 +02:00
# allow loading of PBot plugins from ~/.pbot
2021-07-14 04:45:56 +02:00
use lib "$ENV{HOME}/.pbot";
2021-07-21 08:20:24 +02:00
use PBot::Core;
2021-07-14 04:45:56 +02:00
2021-07-21 08:20:24 +02:00
PBot::Core->new(
data_dir => "$RealBin/../data",
applet_dir => "$RealBin/../applets",
update_dir => "$RealBin/../updates",
2021-07-14 04:45:56 +02:00
)->start;