Heaven/Room Invite

By PyThOn on Jul 29, 2011

This snippet was made because some people wanted to have a unique way to go into a room.
The bot has to be in the room in order to invite the person
!Heaven Activates it.
Have fun.
Feel free to change the room name and chan msg to w/e u like

on *:text:!Heaven:#:{ 
  .ignore -cu5 $nick 2
  .msg $chan You have earned a way to Heaven ;D  
  .invite $nick #Heaven 
}

Comments

Sign in to comment.
PyThOn   -  Jul 29, 2011

Oh thanks Jethro Im slowly learning this... lol

 Respond  
Jethro   -  Jul 29, 2011

That's beside the point. You ought to learn the proper way in coding with a thorough consideration, which the snippet lacks a trigger control to safeguard the client running the code being flooded out..

on *:text:!Heaven:#:{ 
  .ignore -cu5 $nick 2
  .msg $chan You have earned a way to Heaven ;D  
  .invite $nick #Heaven 
}

One of these days you're gonna find yourself bumping into errors if you place the brackets the way you've done.

 Respond  
PyThOn   -  Jul 29, 2011

The script still works >_>
Fixed

 Respond  
Jethro   -  Jul 29, 2011

Brackets mismatched and no need for * in the trigger match text section.

 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.