This is the most sensible coding for Bar Remotes.
Just Copy and Paste and Add more similar commands into your remotes.
Save it as an ini file (example barserv.ini)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Sensible BarServ By Dev|l ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
menu menubar
Gamez
.BarServ
..On:set %barserv on | notice $chan BarServ is Now ON
..Off:set %baerserv off | notice $chan BarServ is Now OFF
}
on *:TEXT:`barserv*:#: {
if ( $2 == on ) { set %barserv on | notice $chan BarServ is Now ON | halt }
if ( $2 == off ) { set %barserv off | notice $chan BarServ is Now OFF | halt }
}
on *:ACTION:`barserv*:#: {
if ( $2 == on ) { set %barserv on | notice $chan BarServ is Now ON | halt }
if ( $2 == off ) { set %barserv off | notice $chan BarServ is Now OFF | halt }
}
on *:TEXT:`beer*:#: {
if ( %barserv == on ) {
if ( $2 == $null ) { describe $chan hands $nick a nice cold beer | halt }
else { describe $chan hands $2 a nice cold beer, compliments of $nick | halt }
}
}
on *:ACTION:`beer*:#: {
if ( %barserv == on ) {
if ( $2 == $null ) { describe $chan hands $nick a nice cold beer | halt }
else { describe $chan hands $2 a nice cold beer, compliments of $nick | halt }
}
}