set ms(ver) 0.5 set ms(pre) % set ms_dir /home/lazy/bot/scripts bind pub -|- $ms(pre)mame gamesearch bind pub -|- $ms(pre)help showhelp proc gamesearch {nick uhost hand chan arg} { global ms_dir set search $arg if {$search == ""} { set result [exec $ms_dir/mamename.pl] } { set result [exec $ms_dir/mamename.pl $search] } putchan $chan "$result" return 0 } proc showhelp {nick uhost hand chan arg} { puthelp "notice $nick : *** #marp Command Help ***" puthelp "notice $nick : %seen - Tells you when a nickname was last seen" puthelp "notice $nick : %lastspoke - Tells you when a nickname last said something" puthelp "notice $nick : %mame - Gives you the full name of a MAME game" puthelp "notice $nick : %lb [#scores] - List scores for a game on MARP" return 0 } putlog "*** MAME Game Search $ms(ver) loaded."