Compare commits

...

4 Commits

Author SHA1 Message Date
qorg11 8cf0922070
Added $STORE_LINKS (line 35) which allows the user to echo the
download links on a file "~/.cache/lainsafelinks" and the file name,
so the user can keep track of the files they have uploaded to the
servers.
2020-08-06 22:52:50 +02:00
qorg11 1ce7380466
Merge branch 'master' of github.com:qorg11/lainsafe 2020-07-11 22:33:17 +02:00
qorg11 34363928cc
Updated bitcoin address 2020-07-11 22:30:11 +02:00
Dustin Van Tate Testa d23a85bac6
add aur package to readme (#8) 2020-07-11 05:33:41 +02:00
2 changed files with 12 additions and 6 deletions

View File

@ -29,7 +29,7 @@ sudo apt updates
sudo apt install lainsafecli
~~~
#### Arch
TODO
[AUR - `lainsafecli`](https://aur.archlinux.org/packages/lainsafecli/)
### lainsafecli configuration
@ -88,4 +88,4 @@ Thanks!
[Liberapay](https://liberapay.com/qorg11)
Bitcoin: bc1q22lkmm6p0k4acpmlwpy3gyw8m9edv9y3legazw
Bitcoin: bc1qghl6f27dpgktynpvkrxte2s3gm9pcv8vlwuzum

View File

@ -28,14 +28,13 @@ my $help;
my $DEFAULT_SERVER;
my $file;
my $DISPLAY_ASCII;
my $STORE_LINKS;
# Default options, if no specified.
$DEFAULT_SERVER = "https://lainsafe.delegao.moe";
$DISPLAY_ASCII = 1; # 0 if you don't want the ascii
$STORE_LINKS = 1; # 0 if you don't want to keep track of your upload
my $ASCII_ART = <<'EOF';
_..-- ----- --.._
,-'' `-.
, \
@ -116,3 +115,10 @@ if($req->{_content} =~ /instance/) # If someone knows how to do it another way,
exit;
}
print $DEFAULT_SERVER . "/" . $req->{_content} . "\n";
if($STORE_LINKS)
{
open FILE,'>>',"$ENV{HOME}/.cache/lainsafelinks" or die $!;
print FILE $DEFAULT_SERVER . "/" . $req->{_content} . " $file" ."\n";
close FILE;
}