This commit is contained in:
2025-09-15 21:57:42 -06:00
parent 6e23de8f12
commit 0e2d3152e9
7 changed files with 22 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/local/bin/perl
#!/bin/perl
# irpg.pl
#
# The bot modified, released and maintained by TommySalami
@@ -33,7 +33,7 @@ my %opts;
readconfig();
my $version = "0.0.2";
my $version = "0.0.3";
# command line overrides .irpg.conf
GetOptions(\%opts,

10
irpg-bot/irpgcheck.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
if ps -ef | grep -v grep | grep /home/user/private/idlerpg/irpg.pl
then
exit 0
else
cd /home/user/private/idlerpg
nohup /home/user/private/idlerpg/irpg.pl </dev/null >/dev/null 2>&1 &
exit 0
fi