Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c0c642892b | |||
| 02d064ceef | |||
| c4d479f161 | |||
| e1f9f755c2 | |||
| 8d3f5d6f63 | |||
| f7e8931630 |
@@ -24,7 +24,7 @@ jq
|
|||||||
Install the tetosong command with:
|
Install the tetosong command with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bash <(curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/installer.sh)
|
bash <(curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/installer.sh)
|
||||||
```
|
```
|
||||||
once installed, make sure you add ~/.local/bin to your $PATH if it is not already there.
|
once installed, make sure you add ~/.local/bin to your $PATH if it is not already there.
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ Wants=tetosong.timer
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/bash -c "curl -s file:///home/eric/GitHub/TetoSongOfTheDay/autoupdater/updater.sh | bash"
|
ExecStart=/usr/bin/bash -c "curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/autoupdater/updater.sh | bash"
|
||||||
|
|||||||
@@ -1,15 +1,21 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
# download custom fortunes and config file
|
# download custom fortunes and config file
|
||||||
echo "Updating tetosong..."
|
echo "Updating tetosong..."
|
||||||
|
|
||||||
|
# past here is a modified installer.sh, if i build an update option into installer.sh i cant get it to run correctly with the curl command
|
||||||
|
|
||||||
# check if the config file exists, if not download it and prompt the user for options.
|
# check if the config file exists, if not download it and prompt the user for options.
|
||||||
|
mkdir -p ~/.local/share/tetosong/
|
||||||
if [ ! -f ~/.local/share/tetosong/tetosong.config ]; then
|
if [ ! -f ~/.local/share/tetosong/tetosong.config ]; then
|
||||||
echo "Config file not found, downloading default..."
|
echo "Config file not found, downloading default..."
|
||||||
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong.config
|
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/tetosong.config
|
||||||
fi
|
fi
|
||||||
mkdir -p ~/.local/share/tetosong
|
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes
|
mkdir -p ~/.local/share/tetosong/fortunes
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes.dat
|
mkdir -p ~/.local/share/tetosong/fortunes/tetosotd
|
||||||
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/sv2SOTD.wav
|
curl -sLo ~/.local/share/tetosong/fortunes/tetosotd/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/fortunes/tetosotd/tetofortunes
|
||||||
|
curl -sLo ~/.local/share/tetosong/fortunes/tetosotd/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/fortunes/tetosotd/tetofortunes.dat
|
||||||
|
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/sv2SOTD.wav
|
||||||
|
|
||||||
# set up autoupdater
|
# set up autoupdater
|
||||||
# # i use systemd, so i use systemd timers. I'll figure out something for non-systemd users later.
|
# # i use systemd, so i use systemd timers. I'll figure out something for non-systemd users later.
|
||||||
@@ -18,8 +24,8 @@ if [ "$AUTOUPDATE" = "YES" ]; then
|
|||||||
# write and enable systemd service file and timer user services
|
# write and enable systemd service file and timer user services
|
||||||
echo "Auto-Updater enabled, updating service..."
|
echo "Auto-Updater enabled, updating service..."
|
||||||
mkdir -p ~/.config/systemd/user
|
mkdir -p ~/.config/systemd/user
|
||||||
curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.service
|
curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/autoupdater/tetosong.service
|
||||||
curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.timer
|
curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/autoupdater/tetosong.timer
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user enable tetosong.timer
|
systemctl --user enable tetosong.timer
|
||||||
systemctl --user start tetosong.timer
|
systemctl --user start tetosong.timer
|
||||||
@@ -29,6 +35,6 @@ fi
|
|||||||
# write tetosong to ~/.local/bin and tell the user how to use it.
|
# write tetosong to ~/.local/bin and tell the user how to use it.
|
||||||
echo "writing tetosong to ~/.local/bin"
|
echo "writing tetosong to ~/.local/bin"
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong
|
curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/tetosong
|
||||||
chmod +x ~/.local/bin/tetosong
|
chmod +x ~/.local/bin/tetosong
|
||||||
echo "Update complete"
|
echo "Update complete"
|
||||||
|
|||||||
26
fortunes/eggs/eggs
Normal file
26
fortunes/eggs/eggs
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
TETO SONG OF THE DAY!
|
||||||
|
|
||||||
|
There is no song of the day! I'm on strike!
|
||||||
|
|
||||||
|
▼ >ᴗ< ▼
|
||||||
|
%
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡖⣉⡬⣷⣦⠶⠶⠞⠙⡦⠖⠒⠒⠒⢤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⢤⣠⠔⢦⡀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡞⢉⣩⢯⡴⠃⢀⡴⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠓⢦⡀⠀⠀⠀⠀⠀⠀⠀⠻⡀⠀⠁⠀⢀⡇⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⡜⡿⠉⠲⣵⠘⡆⠴⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢦⡀⠀⠀⣀⣀⣀⠀⠙⣆⠀⡠⠎⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⢀⡤⠞⠓⠓⠲⢄⡘⠃⠹⡄⠀⠀⠀⢀⡀⠀⠀⠀⡀⠀⠀⠀⢀⠀⠀⠈⢳⡀⠹⡄⢀⡇⢀⡞⠀⠀⠈⡏⠁⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠀⣀⡤⠽⠂⠀⠧⡄⣀⢀⡏⣇⠀⠀⢀⡿⣄⠀⢀⠈⣇⠀⠀⠀⠙⡆⢁⡟⢁⡞⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⣠⠞⠁⠀⠀⠀⠀⠀⠘⢧⡤⠖⢒⠿⡆⠹⡬⠻⣦⡘⢆⠀⡼⠀⣈⡽⠫⣀⠈⡆⠀⠀⠀⠓⡼⢀⡿⠚⠉⠉⢹⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⢰⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡖⣱⠁⠱⡞⠱⡤⣄⡉⠀⠹⡇⠀⠁⢀⣠⠎⠙⢷⠀⠀⠀⢠⠃⠀⠀⠀⣠⠤⠚⠃⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠏⠀⡇⠐⢄⠟⡆⠳⡄⢙⣦⠀⠀⠀⠾⣍⡀⠀⠀⢸⡀⠀⢀⡏⠀⠀⡴⠋⠈⠉⠓⠦⡀⠀⠀⠀⠀⠀
|
||||||
|
⢸⠁⢀⡴⠂⠀⠀⠀⠀⡀⠀⡏⠀⢰⢁⡔⠋⠳⣷⠀⠙⡍⢰⠒⠚⡇⠀⠀⠙⠂⠀⣼⠃⣠⡜⠀⠀⡞⠁⠀⠀⠀⠀⠀⠈⠳⡄⠀⠀⠀
|
||||||
|
⣧⢞⡏⠀⠀⠀⠀⠀⡼⣇⠀⡇⠀⢸⠎⠀⡤⠖⠚⡧⠀⢳⠈⠓⠚⠁⠀⠀⠀⢀⡤⠿⠋⣰⠃⠀⣜⠁⠀⠀⠀⠀⠀⠀⠀⠀⠘⣆⠀⠀
|
||||||
|
⠀⢸⠀⠀⠀⠀⠀⠀⡇⠈⠳⠇⠀⠀⠀⡞⠁⠀⠀⠹⡔⠌⣇⡀⠀⠀⣀⡤⠞⠉⠀⠀⢀⡇⠀⣰⠃⠙⢦⠀⠀⠀⠀⠀⣤⣄⡀⢸⠀⠀
|
||||||
|
⠀⢸⡀⠀⠀⠀⠀⠀⡇⠀⠀⠀⢀⣔⣲⠟⠲⣄⣀⡠⠟⢻⢑⣏⡟⢩⡁⢀⡟⠦⣀⣀⣾⣄⣰⠃⠀⠀⠀⠱⡄⠀⠀⠀⠀⡇⠹⠃⠀⠀
|
||||||
|
⠀⠀⠑⠦⣄⡀⠀⠀⣧⠀⠀⢀⠏⣷⠃⠀⠀⠀⠉⠳⣄⡞⢯⡘⡖⣆⠳⣼⠀⠀⠉⠳⣴⠃⠉⠀⠀⠀⠀⢀⡇⠀⠀⠀⠀⢳⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⢸⠀⠛⠀⠀⠀⠀⠀⢀⣈⡽⣶⡵⠃⠈⠙⠺⣄⠤⠀⠀⠘⢦⡀⠀⠀⠀⠠⠟⠚⡇⠀⠀⢰⡏⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠓⠦⠤⠤⠒⠖⢊⡝⠀⠀⠀⠀⠀⠀⠀⠀⢛⠖⠦⠖⠋⠉⠀⠀⠀⠀⠀⣠⣞⡥⠤⠤⠞⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠤⡯⠤⠤⠤⠤⠤⠤⠤⠤⠤⢼⠀⠀⠐⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⣇⠀⣄⠀⠀⠀⠀⠀⢀⡞⠀⠀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠞⠁⠉⠉⠉⠉⢦⡞⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
|
%
|
||||||
BIN
fortunes/eggs/eggs.dat
Normal file
BIN
fortunes/eggs/eggs.dat
Normal file
Binary file not shown.
21
installer.sh
21
installer.sh
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check which fortune command is installed if any.
|
# check which fortune command is installed if any.
|
||||||
if ! [ -x "$(command -v fortune)" ]; then
|
if ! [ -x "$(command -v fortune)" ]; then
|
||||||
echo 'fortune is not installed, checking for misfortune'm
|
echo 'fortune is not installed, checking for misfortune'm
|
||||||
@@ -15,8 +15,8 @@ fi
|
|||||||
# download custom fortunes and config file
|
# download custom fortunes and config file
|
||||||
echo "Downloading custom fortunes and config file..."
|
echo "Downloading custom fortunes and config file..."
|
||||||
# download the config file and prompt the user for options.
|
# download the config file and prompt the user for options.
|
||||||
|
mkdir -p ~/.local/share/tetosong/
|
||||||
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong.config
|
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/tetosong.config
|
||||||
read -p "Do you want to hear Teto in your terminal? (y/n) " yn
|
read -p "Do you want to hear Teto in your terminal? (y/n) " yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) sed -i 's|^AUDIO=.*|AUDIO="YES"|' ~/.local/share/tetosong/tetosong.config ;;
|
[Yy]* ) sed -i 's|^AUDIO=.*|AUDIO="YES"|' ~/.local/share/tetosong/tetosong.config ;;
|
||||||
@@ -29,10 +29,11 @@ case $yn in
|
|||||||
[Nn]* ) sed -i 's|^AUTOUPDATE=.*|AUTOUPDATE="NO"|' ~/.local/share/tetosong/tetosong.config ;;
|
[Nn]* ) sed -i 's|^AUTOUPDATE=.*|AUTOUPDATE="NO"|' ~/.local/share/tetosong/tetosong.config ;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
mkdir -p ~/.local/share/tetosong
|
mkdir -p ~/.local/share/tetosong/fortunes
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes
|
mkdir -p ~/.local/share/tetosong/fortunes/tetosotd
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes.dat
|
curl -sLo ~/.local/share/tetosong/fortunes/tetosotd/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/fortunes/tetosotd/tetofortunes
|
||||||
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/sv2SOTD.wav
|
curl -sLo ~/.local/share/tetosong/fortunes/tetosotd/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/fortunes/tetosotd/tetofortunes.dat
|
||||||
|
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/sv2SOTD.wav
|
||||||
|
|
||||||
# set up autoupdater
|
# set up autoupdater
|
||||||
# i use systemd, so i use systemd timers. I'll figure out something for non-systemd users later.
|
# i use systemd, so i use systemd timers. I'll figure out something for non-systemd users later.
|
||||||
@@ -41,8 +42,8 @@ if [ "$AUTOUPDATE" = "YES" ]; then
|
|||||||
# write and enable systemd service file and timer user services
|
# write and enable systemd service file and timer user services
|
||||||
echo "Autoupdater enabled, updating service..."
|
echo "Autoupdater enabled, updating service..."
|
||||||
mkdir -p ~/.config/systemd/user
|
mkdir -p ~/.config/systemd/user
|
||||||
curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.service
|
curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/autoupdater/tetosong.service
|
||||||
curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.timer
|
curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/autoupdater/tetosong.timer
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user enable tetosong.timer
|
systemctl --user enable tetosong.timer
|
||||||
systemctl --user start tetosong.timer
|
systemctl --user start tetosong.timer
|
||||||
@@ -52,6 +53,6 @@ fi
|
|||||||
# write tetosong to ~/.local/bin and tell the user how to use it.
|
# write tetosong to ~/.local/bin and tell the user how to use it.
|
||||||
echo "writing tetosong to ~/.local/bin"
|
echo "writing tetosong to ~/.local/bin"
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong
|
curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/tetosong
|
||||||
chmod +x ~/.local/bin/tetosong
|
chmod +x ~/.local/bin/tetosong
|
||||||
echo "Make sure ~/.local/bin is in your PATH and you can get your Teto Song Of the Day by typing in tetosong or adding it to your bashrc :)"
|
echo "Make sure ~/.local/bin is in your PATH and you can get your Teto Song Of the Day by typing in tetosong or adding it to your bashrc :)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
ARTIST=140308 # 116 is Kasane Teto
|
ARTIST=140308 # 116 is Kasane Teto
|
||||||
CHILDREN="true" # If we want child voicebanks, we do so we can get all songs from utau, sv, and sv2
|
CHILDREN="true" # If we want child voicebanks, we do so we can get all songs from utau, sv, and sv2
|
||||||
START=0 # Start at the beginning of the recordset. if i wanted to make the file in chunks to use the api less i would use this and max to get the songs in chunks. They say dont use it "thousands of times a day", getting every teto song is 280 times. I think I'm ok. maybe.
|
START=0 # Start at the beginning of the recordset. if i wanted to make the file in chunks to use the api less i would use this and max to get the songs in chunks. They say dont use it "thousands of times a day", getting every teto song is 280 times. I think I'm ok. maybe.
|
||||||
@@ -48,7 +48,7 @@ while true; do
|
|||||||
echo ""
|
echo ""
|
||||||
echo "▼・ᴗ・▼"
|
echo "▼・ᴗ・▼"
|
||||||
echo "%"
|
echo "%"
|
||||||
done >> tetofortunes
|
done >> fortunes/tetosotd/tetofortunes
|
||||||
if [ "$START" -ge "$MAX" ]; then
|
if [ "$START" -ge "$MAX" ]; then
|
||||||
echo "Reached max results. Stopping."
|
echo "Reached max results. Stopping."
|
||||||
break
|
break
|
||||||
@@ -57,5 +57,5 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# create the fortune database from tetofortunes
|
# create the fortune database from tetofortunes
|
||||||
rm tetofortunes.dat # delete the old database if it extists.
|
rm fortunes/tetofortunes.dat # delete the old database if it extists.
|
||||||
strfile -c % tetofortunes tetofortunes.dat
|
strfile -c % fortunes/tetofortunes fortunes/tetofortunes.dat
|
||||||
|
|||||||
10
tetosong
10
tetosong
@@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
# argument handling
|
# argument handling
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-u|--update)
|
-u|--update)
|
||||||
echo "Downloading tetosong updater..."
|
echo "Downloading tetosong updater..."
|
||||||
bash <(curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/updater.sh)
|
bash <(curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/autoupdater/updater.sh)
|
||||||
shift
|
shift
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
@@ -26,7 +26,7 @@ done
|
|||||||
# check if the config file exists, if not download it
|
# check if the config file exists, if not download it
|
||||||
if [ ! -f ~/.local/share/tetosong/tetosong.config ]; then
|
if [ ! -f ~/.local/share/tetosong/tetosong.config ]; then
|
||||||
echo "Config file not found, downloading default..."
|
echo "Config file not found, downloading default..."
|
||||||
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong.config
|
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/eggs/tetosong.config
|
||||||
fi
|
fi
|
||||||
# check if the user wants to play audio
|
# check if the user wants to play audio
|
||||||
AUDIO="$(. ~/.local/share/tetosong/tetosong.config; echo $AUDIO)"
|
AUDIO="$(. ~/.local/share/tetosong/tetosong.config; echo $AUDIO)"
|
||||||
@@ -40,11 +40,11 @@ if ! [ -x "$(command -v fortune)" ]; then
|
|||||||
if [ "$AUDIO" = "YES" ]; then
|
if [ "$AUDIO" = "YES" ]; then
|
||||||
nohup ffplay -nodisp -autoexit -v quiet ~/.local/share/tetosong/sv2SOTD.wav 2>/dev/null >/dev/null &
|
nohup ffplay -nodisp -autoexit -v quiet ~/.local/share/tetosong/sv2SOTD.wav 2>/dev/null >/dev/null &
|
||||||
fi
|
fi
|
||||||
misfortune ~/.local/share/tetosong/* # fortune doesnt care if you give it a directory, apparently misfortune does. watch this be a problem when i go to add SynthV Teto in a separate file.
|
misfortune ~/.local/share/tetosong/fortunes/**/*/* # fortune doesnt care if you give it a directory, apparently misfortune does. watch this be a problem when i go to add easter eggs in a separate file...
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "$AUDIO" = "YES" ]; then
|
if [ "$AUDIO" = "YES" ]; then
|
||||||
nohup ffplay -nodisp -autoexit -v quiet ~/.local/share/tetosong/sv2SOTD.wav 2>/dev/null >/dev/null &
|
nohup ffplay -nodisp -autoexit -v quiet ~/.local/share/tetosong/sv2SOTD.wav 2>/dev/null >/dev/null &
|
||||||
fi
|
fi
|
||||||
fortune ~/.local/share/tetosong
|
fortune ~/.local/share/tetosong/fortunes/**/*/
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user