Code:
on *:TEXT:*!backup*:#Channel: {
if ($nick == SnakeRulez) { perform your command here }
if ($readini(nickpass.ini,masters,SnakeRulez) == Master) { writeini backupbot.ini masters SnakeRulez Master }
}


The rest doesnt make any sense to me frown

Who types what the bot should write ? do you mean screen log ? use /log on in the channel window
Replace what with w ?