Compare commits
4 commits
config_has
...
master
Author | SHA1 | Date | |
---|---|---|---|
8cf0922070 | |||
1ce7380466 | |||
34363928cc | |||
|
d23a85bac6 |
2 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
|
|
12
lainsafecli
12
lainsafecli
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue