bot assign/unassign

By Massivity on Oct 07, 2010

You can use script to make your bot assign a BotServ to your channel

i made this script when i was bored :D
======TESTED======
<&Justine> !rembot Leopard

  • &Leopard (leopard@i.run.very.fast) has left #chicken (UNASSIGN from Chicken)
    -Chicken- Bot Leopard unassigned from #chicken
    <&Justine> !bot leopard
    -Chicken- Bot leopard assigned to #chicken
  • Leopard (leopard@i.run.very.fast) has joined #chicken
  • Leopard sets mode: +ao Leopard Leopard
on 1000:TEXT:!bot *:#:{
  if ($nick isop $chan) bs assign # $2
  notice $nick Bot $2 assigned to $chan
}
on 1000:TEXT:!rembot *:#:{
  if ($nick isop $chan) bs unassign # $2
  notice $nick Bot $2 unassigned from $chan
}

Comments

Sign in to comment.
Massivity   -  Nov 03, 2010

lol ur welcome :)

 Respond  
TMFKSOFT   -  Nov 01, 2010

10/10 ive been sick of typing out a load of crap all the time!!

 Respond  
Jethro   -  Oct 25, 2010

DragonFlare, why would you want to use the iswm operator?

 Respond  
DragonFlare   -  Oct 25, 2010

Then just use

 if ($me !iswm $nick) { 
 Respond  
Massivity   -  Oct 08, 2010

for level i know but i've made that for my bot and im Lv 1000 on it :p

 Respond  
GuitarMasterx7   -  Oct 07, 2010

Theres two dif ways i think you can do tha
you dun really need the lvl indicater if you have the isop in second line

on 1000:TEXT:!rembot *:#:{
  if ($nick isop $chan)

Theres this way[didnt test im in school]

on *:TEXT:*:#:{
   if ($nick isop $chan)
   var %c = $1 | goto %c
   :!bot | bs assign # $2 || /notice $nick Bot $2 assigned to $chan | halt
   :!rembot | bs unassign # $2 || /notice $nick Bot $2 unassigned from $chan | halt
   :%c | return
}

then theres this way

on *:TEXT:*:#:{
   if ($nick isop $chan)
   if ($1 == !bot) { bs assign # $2 || notice $nick Bot $2 assigned to $chan | halt }
   if ($1 == !rembot) { bs unassign # $2 || notice $nick Bot $2 unassigned from $chan | halt }
}
 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.