egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

public sending of notes

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
fayettemat
Voice


Joined: 09 Jan 2007
Posts: 27

PostPosted: Sat Feb 17, 2007 3:29 am    Post subject: public sending of notes Reply with quote

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?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Feb 17, 2007 4:08 am    Post subject: Reply with quote

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/publicnotes.rosc2112.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/1.6.18/tcl-commands.html
http://www.egghelp.org/commands/index.htm
http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm
Back to top
View user's profile Send private message
fayettemat
Voice


Joined: 09 Jan 2007
Posts: 27

PostPosted: Sat Feb 17, 2007 5:21 am    Post subject: Reply with quote

ok rosc2112 thanks for that, now I need to know HOW to read the notes via a public trigger is there anyway?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Feb 17, 2007 2:42 pm    Post subject: Reply with quote

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:
Quote:

/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:

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber