!vhost Bot Script

By TehJibba on May 28, 2009

Simple on TEXT !vhost script allowing users to add their own vhost. Bot requires the appropriate permissions to accomplish this of course.

All users have to do is type !vhost , then type /msg hostserv on

"All credits go to dk00, if it wasnt for his original script this one wouldnt have been made"

    on *:TEXT:*:#: {
  if ($1 == !vhost) {
    msg hostserv set $nick $2 ;
    notice $nick Congratulations On Your New Vhost, please "/msg HostServ ON" to activate it.
  }
}

Comments

Sign in to comment.
dma174   -  Jan 23, 2019

this gives the same vhjost thatys already given what's up?

 Respond  
Jonesy44   -  Jun 01, 2009

You'll get there, just offering some help. Nice script though, does what you ask it to do, keep up the learning :)

 Respond  
TehJibba   -  May 31, 2009

@ jonesy44 i havent learned regex yet :( still learning stuff

@ miniCruzer thats a good idea and i was thinking of doing that myself just havent figured out how yet. when i do i will update the script :)

 Respond  
miniCruzer   -  May 31, 2009

Yeah, I'd make it more interesting with regex like jonsey44 has. Tis a bummer HostServ is gone on my channel, and ircops don't hand out vhosts.

You should add something that checks to see if the nick is registered, or echo back if HostServ says the nick must be registered.

 Respond  
Jonesy44   -  May 31, 2009
on $*:TEXT:/^[!`@]vhost/Si:#:
  if ($regex($2,/(.{1,10})@(.*)/Si)) msg hostserv set $nick $2
  notice $nick $iif($v1,Congratulations On Your New Vhost. please "/msg HostServ ON" to activate it.,Your requested Vhost does not match a host)
}
 Respond  
Aucun50   -  May 29, 2009

yes i could have but then if a user typed !!!vhost it would still activate this way it only activates on !vhost

"on :text:!vhost:#:" will not trigger on !!!vhost as far as i know, there is no "!!!" in the text event being triggered.

 Respond  
TehJibba   -  May 29, 2009

Could have used :TEXT:!vhost :#: {
instead of on :TEXT::#: {
if ($1 == !vhost) {

yes i could have but then if a user typed !!!vhost it would still activate this way it only activates on !vhost

 Respond  
WorldDMT   -  May 29, 2009

hi

most be if ($strip($1) == !vhost)

 Respond  
Blubble   -  May 29, 2009

Could have used :TEXT:!vhost :#: {
instead of on :TEXT::#: {
if ($1 == !vhost) {

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.