| View previous topic :: View next topic |
| Author |
Message |
ShadowWlf Voice
Joined: 27 Aug 2005 Posts: 3
|
Posted: Sat Aug 27, 2005 11:17 pm Post subject: something like |
|
|
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 |
|
 |
greenbear Owner
Joined: 24 Sep 2001 Posts: 733 Location: Norway
|
Posted: Sat Aug 27, 2005 11:23 pm Post subject: |
|
|
| 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 |
|
 |
ShadowWlf Voice
Joined: 27 Aug 2005 Posts: 3
|
Posted: Sat Aug 27, 2005 11:28 pm Post subject: |
|
|
Thanks, will see how it works  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Aug 28, 2005 12:21 am Post subject: |
|
|
| [join] shouldn't be used on $un, see spock's last post |
|
| Back to top |
|
 |
ShadowWlf Voice
Joined: 27 Aug 2005 Posts: 3
|
Posted: Sun Aug 28, 2005 3:35 pm Post subject: |
|
|
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 |
|
 |
|