- Basic hook scaffolding - Double XP notification - Global quest announcements - Tracks global quest joined - Global quest started if joined - Quest ready - Quest timing out - Daily blessing ready - Tell received Resolves: https://todo.sr.ht/~fierre/termighty/2 Fixes: https://todo.sr.ht/~fierre/termighty/5 Note: https://todo.sr.ht/~fierre/termighty/11 (Quest state not totally tracked)master
parent
2b78192852
commit
5b21c586fb
@ -1,6 +1,9 @@
|
||||
double.ogg: https://notificationsounds.com/notification-sounds/maybe-one-day-584
|
||||
tell.ogg: https://notificationsounds.com/message-tones/stairs-567
|
||||
quest.ogg: https://notificationsounds.com/wake-up-tones/solemn-522
|
||||
questtime.ogg: https://notificationsounds.com/sound-effects/munchausen-433
|
||||
globalquest.ogg: https://notificationsounds.com/wake-up-tones/engaged-306
|
||||
globalqueststart: https://notificationsounds.com/wake-up-tones/insistently-85
|
||||
|
||||
Used and distributed under the Creative Commons Attribution License
|
||||
https://creativecommons.org/licenses/by/4.0/legalcode
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
NOTIFY_LENGTH=5000 #milliseconds
|
||||
AUDIO="audio/dailyblessing.ogg"
|
||||
|
||||
# Send via libnotify if available
|
||||
if [ -x `which notify-send` ]
|
||||
then
|
||||
notify-send "Daily Blessing" "Your daily blessing is ready." --icon=weather-clear --expire-time=$NOTIFY_LENGTH
|
||||
fi
|
||||
|
||||
# Play a sound if available
|
||||
if [ -x `which ogg123` ]
|
||||
then
|
||||
ogg123 -q $AUDIO &
|
||||
fi
|
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
QUESTID=$1
|
||||
NOTIFY_LENGTH=5000 #milliseconds
|
||||
AUDIO="audio/globalquest.ogg"
|
||||
|
||||
# Send via libnotify if available
|
||||
if [ -x `which notify-send` ]
|
||||
then
|
||||
notify-send "Global Quest" "Global quest #${QUESTID} starting soon." --icon=applications-games --expire-time=$NOTIFY_LENGTH
|
||||
fi
|
||||
|
||||
# Play a sound if available
|
||||
if [ -x `which ogg123` ]
|
||||
then
|
||||
ogg123 -q $AUDIO &
|
||||
fi
|
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
QUESTID=$1
|
||||
NOTIFY_LENGTH=5000 #milliseconds
|
||||
AUDIO="audio/globalqueststart.ogg"
|
||||
|
||||
# Send via libnotify if available
|
||||
if [ -x `which notify-send` ]
|
||||
then
|
||||
notify-send "Global Quest Started!" "Your global quest #${QUESTID} has started." --icon=go-jump --expire-time=$NOTIFY_LENGTH
|
||||
fi
|
||||
|
||||
# Play a sound if available
|
||||
if [ -x `which ogg123` ]
|
||||
then
|
||||
ogg123 -q $AUDIO &
|
||||
fi
|
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DURATION=$1
|
||||
NOTIFY_LENGTH=5000 #milliseconds
|
||||
AUDIO="audio/questtime.ogg"
|
||||
|
||||
# Send via libnotify if available
|
||||
if [ -x `which notify-send` ]
|
||||
then
|
||||
notify-send "Quest Timing Out!" "You are almost out of time on your quest!" --icon=dialog-warning --expire-time=$NOTIFY_LENGTH
|
||||
fi
|
||||
|
||||
# Play a sound if available
|
||||
if [ -x `which ogg123` ]
|
||||
then
|
||||
ogg123 -q $AUDIO &
|
||||
fi
|
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SENDER=$1
|
||||
NOTIFY_LENGTH=5000 #milliseconds
|
||||
AUDIO="audio/tell.ogg"
|
||||
|
||||
# Send via libnotify if available
|
||||
if [ -x `which notify-send` ]
|
||||
then
|
||||
notify-send "Tell" "Tell received from ${SENDER}." --icon=mail-message-new --expire-time=$NOTIFY_LENGTH
|
||||
fi
|
||||
|
||||
# Play a sound if available
|
||||
if [ -x `which ogg123` ]
|
||||
then
|
||||
ogg123 -q $AUDIO &
|
||||
fi
|
Loading…
Reference in new issue