I think there is a way to do this but I'm not sure of a few things:
1)binding to use
2) syntax that is needed
3) how I can script it
can anyone please answer those things that I need help on?
All you should really need via a public command, is a help file to remind you of the msg commands. Something like:/msg botnick notes <password> index
Lists all the notes stored up for you.
/msg botnick notes <password> read <# or ALL>
Will display some notes for you, or, if you use read all, it will show you every note stored for you. # may be numbers and/or intervals separated by semicolon. Example:
notes read 2-4;8;16-
/msg botnick notes <password> erase <# or ALL>
This works like read, except it erases whichever note you tell it to (or all of them).
/msg botnick notes <password> to <nickname> <message...>
Stores a note to someone, as long as the bot knows the specified user. They will be informed of a note waiting for them the next time they join the channel.
Examples
/msg botnick notes secret7 Doofus Doofus, please stop kicking people from the channel, everyone is complaining about you.
Code: Select all
bind pub - !notes proc:notehelp
proc notehelp {nick uhost hand chan text} {
puthelp "PRIVMSG $nick :here's the msg commands for the notes system:"
puthelp "PRIVMSG $nick :blah blah blah, etc etc etc, all the help stuff, one line at a time, etc"
}