Skip to content

Commit f0ad21c

Browse files
committed
lewd.sh: we sakamoto.moe now
1 parent 507412f commit f0ad21c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lewd.sh renamed to sakamoto.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
# lewd.se screenshotter and file uploader
2+
# sakamoto.moe screenshotter and file uploader
33

44
# >>> Options <<<
55
savedir="$HOME/Pictures/Screenshots"
66
filename="$(date '+%Y-%m-%d_%H-%M-%S')"
77
maxsize=1048576 # Max filesize before going with lossy avif (in bytes)
88

9-
#LEWD_TOKEN='YOUR TOKEN GOES HERE (https://lewd.se/user)'
10-
icon="$HOME/Pictures/lewd.svg"
9+
#SAKAMOTO_TOKEN='YOUR TOKEN GOES HERE (https://sakamoto.moe/user)'
10+
icon="$HOME/Pictures/sakamotomoe.webp"
1111
shorturl=false
1212

1313
# Available options are: spectacle,scrot,gnome-screenshot
@@ -33,7 +33,7 @@ help() {
3333
-u upload file(s)
3434
-l upload list of files (one file per line)
3535
-s toggle short URL (must be first command)
36-
-r re-upload URL to lewd.se'
36+
-r re-upload URL to sakamoto.moe'
3737
exit
3838
}
3939

@@ -78,9 +78,9 @@ uploader() {
7878
output=$(curl --request POST \
7979
--form "file=@$file" \
8080
--header "shortUrl: $shorturl" \
81-
--header "token: $LEWD_TOKEN" \
81+
--header "token: $SAKAMOTO_TOKEN" \
8282
--progress-bar \
83-
https://lewd.se/upload)
83+
https://sakamoto.moe/upload)
8484
# If upload isn't successful, tell user
8585
if ! echo "$output" | grep -q 'status":200'; then
8686
echo "$output"

0 commit comments

Comments
 (0)