Project

General

Profile

[Script] Slaps categories

Added by Per Amundsen over 8 years ago

Small script to create slaps category menus using multiple files.

menu * {
 Funny
 .$submenu($readmyfile(funny.txt, $1))
 Mean
 .$submenu($readmyfile(mean.txt, $1))
}

alias readmyfile {
  var %slap $replace($read($1, n, $2), $ $+ 1, $nick)
  return %slap $+ :/me %slap
}