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 

something like

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
ShadowWlf
Voice


Joined: 27 Aug 2005
Posts: 3

PostPosted: Sat Aug 27, 2005 11:17 pm    Post subject: something like Reply with quote

when someone types !trigger username

the script would output something like http://website.com/username

been trying to figure it out on my own, but have forgotten most of what learned a couple years ago with sctipts.

any help would be appreciated

Thanks
Back to top
View user's profile Send private message
greenbear
Owner


Joined: 24 Sep 2001
Posts: 733
Location: Norway

PostPosted: Sat Aug 27, 2005 11:23 pm    Post subject: Reply with quote

Code:
set url "http://website.com/"

bind pub - !trigger foo
proc foo {n u h c a} {
 set un [lindex [$split $a] 0]
 putserv "PRIVMSG $c :$::url[join $un]"
}
Back to top
View user's profile Send private message Send e-mail
ShadowWlf
Voice


Joined: 27 Aug 2005
Posts: 3

PostPosted: Sat Aug 27, 2005 11:28 pm    Post subject: Reply with quote

Thanks, will see how it works Smile
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 28, 2005 12:21 am    Post subject: Reply with quote

[join] shouldn't be used on $un, see spock's last post
Back to top
View user's profile Send private message Visit poster's website
ShadowWlf
Voice


Joined: 27 Aug 2005
Posts: 3

PostPosted: Sun Aug 28, 2005 3:35 pm    Post subject: Reply with quote

after looking more, wasn't quite what was thinking of.

where "username" is whatever username a person specifies when they use the trigger to show the URL with their username/lookup at the end of it
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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