Add the ability to customise what voice is used by macintalk notifications
This commit is contained in:
parent
1b919b6b56
commit
4391f64f85
|
@ -139,7 +139,7 @@ sub trigger {
|
|||
$file->remove() if defined $Conf->{monitor}->{$sender_mon}->{action}->{delete} and $Conf->{monitor}->{$sender_mon}->{action}->{delete} == 1;
|
||||
}
|
||||
sub notify {
|
||||
macintalk_say(text=>$_[($_[0] eq $ME)? 1 : 0]) if $Conf->{general}->{notify}->{macintalk} == 1;
|
||||
macintalk_say(text=>$_[($_[0] eq $ME)? 1 : 0], voice=>(length $Conf->{general}->{notify}->{macintalk_voice}? $Conf->{general}->{notify}->{macintalk_voice} : "Daniel")) if $Conf->{general}->{notify}->{macintalk} == 1;
|
||||
nc_notify(@_) if $Conf->{general}->{notify}->{osxnotify} == 1;
|
||||
}
|
||||
sub name {
|
||||
|
|
|
@ -59,4 +59,5 @@ general:
|
|||
upload: 1
|
||||
error: 0
|
||||
macintalk: 1
|
||||
macintalk_voice: Daniel
|
||||
osxnotify: 1
|
||||
|
|
Loading…
Reference in New Issue