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.
Old posts that have not been replied to for several years.
-
ShadowWlf
- Voice
- Posts: 3
- Joined: Sat Aug 27, 2005 11:13 pm
Post
by ShadowWlf »
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
-
greenbear
- Owner
- Posts: 733
- Joined: Mon Sep 24, 2001 8:00 pm
- Location: Norway
Post
by greenbear »
Code: Select all
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]"
}
-
ShadowWlf
- Voice
- Posts: 3
- Joined: Sat Aug 27, 2005 11:13 pm
Post
by ShadowWlf »
Thanks, will see how it works
-
demond
- Revered One
- Posts: 3073
- Joined: Sat Jun 12, 2004 9:58 am
- Location: San Francisco, CA
-
Contact:
Post
by demond »
[join] shouldn't be used on $un, see spock's last post
-
ShadowWlf
- Voice
- Posts: 3
- Joined: Sat Aug 27, 2005 11:13 pm
Post
by ShadowWlf »
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