This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

public sending of notes

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
f
fayettemat
Voice
Posts: 27
Joined: Tue Jan 09, 2007 6:10 pm

public sending of notes

Post by fayettemat »

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?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Do you mean using the bot's note system? Or something independent? If you're talking about the bot's note system, check the documentation for notes here:
http://www.egghelp.org/commands/notes.htm

If you're talking about an independent/public notes script, there's a few in the tcl archives you can look over for ideas, just search for 'notes' .. I modified one by 'Sergio100' to work specifically with undernet's authenticated usernames, you can find that here:
http://members.dandy.net/~fbn/publicnot ... 12.tcl.txt

As far as other documentation to refer to, you'll want to read the tcl-commands.doc in regard to bind and other eggdrop-specific commands, and the tcl documentation about command syntax:
http://www.eggheads.org/support/egghtml ... mands.html
http://www.egghelp.org/commands/index.htm
http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm
f
fayettemat
Voice
Posts: 27
Joined: Tue Jan 09, 2007 6:10 pm

Post by fayettemat »

ok rosc2112 thanks for that, now I need to know HOW to read the notes via a public trigger is there anyway?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Hmm well, I thought it would be possible if you were logged in with the bot, but nope, you'd have to give your password in public. Here's the msg commands tho:
/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.
All you should really need via a public command, is a help file to remind you of the msg commands. Something like:

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"
}
Also keep in mind, only users in the bots userfile can use the bot's note system. If you want non-users to have access, check the archive for the before-mentioned notes scripts.
Post Reply