./cycle

By amztechtalk on Jun 02, 2010

just do ./cycle then your bot should leave then come back make sure you put the chan after ./cycle. You can change your bot name to your bot and the if statment nicks to your nicks

on *:TEXT:./cycle BOTNAME:#:{
if ($nick == YOURNICK) || ($nick == OPTIONAL) {
/cycle $chan
}
else {
msg $chan Sorry $nick but your not my owner.
}
}

Comments

Sign in to comment.
Jethro   -  Jun 05, 2010

I thought the cycle command worked with channel name. I have not seen it work with the bot nick itself: /cycle #chan1,#chan2,#chan3

I still fail to see the use of /cycle

As I read that command is usually preformed after changing a user status with ChanServ.

 Respond  
ChanZin   -  Jun 05, 2010

if use !cycle MyNickHere, if the bot change the nick, you will must type !cycle MyNickHere anyway... with $$2 == $me you must use the ative nick, and not the old.

 Respond  
Jethro   -  Jun 05, 2010

ChanZin, why use the /cycle command for one channel where the client that runs the code is on... when you can just use /hop -c #

This saves you the step in calling the bot name.

Also, you have to be aware that by telling users who don't have the access will likely get spammed...so you might want to add a trigger control. Or better yet, just remove the else and keep the $istok part.

 Respond  
ChanZin   -  Jun 05, 2010

on :TEXT:!cycle:#:{
if ($$2 == $me && $istok(YOURNICK ANOTHER_NICK ONE_MORE,$nick,32)) {
cycle $chan
}
else {
msg $chan Sorry $nick but your not my owner.
}
}

 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.