Attempt to improve over all voice code.
This commit is contained in:
@@ -54,6 +54,38 @@ leave() {
|
||||
[[ $notify ]] && notify "$2 left the channel."
|
||||
}
|
||||
|
||||
mute() {
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You muted yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 muted themselves."
|
||||
fi
|
||||
}
|
||||
|
||||
unmute() {
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You unmuted yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 unmuted themselves."
|
||||
fi
|
||||
}
|
||||
|
||||
deafen() {
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You deafened yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 deafened themselves."
|
||||
fi
|
||||
}
|
||||
|
||||
undeafen() {
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You undeafened yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 undeafened themselves."
|
||||
fi
|
||||
}
|
||||
|
||||
micdown() {
|
||||
[[ $sound ]] && play -qnV0 synth .25 sin G6:E5 norm -8
|
||||
[[ $notify ]] && notify "You have stopped transmitting."
|
||||
|
||||
Reference in New Issue
Block a user