Setting up my bot to do multiple channels - 01/06/14 03:22 AM
I am trying to make my bot have the ability to join multiple channels. I am aving some problems with it:
1. The first thing i want is for someone saying !join in my bot's chat it joins their chat. I have problems with it joining their chat. Here's my script The thing is the # is treated as my own channel, so if bob says !join it will say /join #mychannelbob, not #bob.
2. I want my bot to basically be a moderation bot for other channels (not !addcom or stuff yet) That includes stuff like the linkblock (looks for a .com(and other domains) and says .timeout). I was wondering if there was a way to make a on:text command that is similar to this?
1. The first thing i want is for someone saying !join in my bot's chat it joins their chat. I have problems with it joining their chat. Here's my script
Code:
on *:text:!join:#mychannel: { /join # $+ $nick | msg #paintballbot joining $nick $+ 's chat }
2. I want my bot to basically be a moderation bot for other channels (not !addcom or stuff yet) That includes stuff like the linkblock (looks for a .com(and other domains) and says .timeout). I was wondering if there was a way to make a on:text command that is similar to this?
Code:
on *:text:*.com*:#bob:{ if ($read(reglist.txt $+ $nick,nw,$nick)) return Msg $chan .timeout $nick 1 Msg $chan Stop posting links! }