Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Apr 24, 2007 9:24 pm |
Use #alarm or #wait.
#trig {(%w) says, ~"sing (*) for me!~"} {#if (@CurrentSong) {tell %1 Sorry, I'm singing at the moment. Wait a minute.} {#if (%iskey("%2",@Songs)) {say Sorry, %1, I don't know that song.} {say ok %1, I'll sing %2.;singsong %2}}}
#alias singsong {CurrentSong=%db(@Songs,"%-1");#t+ singAlarm}
#alarm "singAlarm" {*1} {sing %pop(@CurrentSong);#if (!@CurrentSong) {#t- singAlarm;bow}}
Or something like that. This is designed to use the full title of the song, even if it's multiple words. Use "#addkey Songs {Songname} {song lyrics with | separating lines}" to add songs to the list. |
|