raw 270:*:{
set %memo1 $1- | timer 1 3 unset %memo1
}
raw 276:*:{
set %memo2 $1- | timer 1 3 unset %memo2
}
raw 264:*:{
set %memo3 $1- | timer 1 1 unset %memo3
}
I'm confused about this part. You set a variable and then unset it (btw you can just do set -u1 %memo3 $1-, but that's not the point...), and then you never use the variables that you set.
Edit: my bad. It seems that you don't use %memo3 and also %memo5