channel sayer for bots

By Wishmaker on Aug 08, 2007

It's a simple script for a bot, it goes well if your bot has autojoin on invite and you want it to be a "shared" bot, all you say is !sayrooms and it says the channels it's in, if it's op, halfop, or voice there(I wasn't able to make it able for the advanced powers like ~ and &) it's been known not to say all the channels if it lags, and it also works in PMs, it uses notices, so if you have some sort of notice flood protection on, this'll likely set it off, so think about it, this script goes especially well for those who rent a shell for their bot and can't open their bot's window to see the rooms it's in, this is my first snippet =/

on *:TEXT:*!Sayrooms*:*:(
  if ($chan(0) == 1) { /notice $nick I am in  $+ $chan(0) $+  channel }
  else { /notice $nick 0I am in  $+ $chan(0) $+  channels }
  /notice $nick 0They are:
  set %x 0
  :next
  inc %x
  set %chans $chan(%x)
  if (%chans == $null) { goto end }
  elseif ($me isop %chans) { /notice $nick 12@ $+ %chans | goto next }  
  elseif ($me isop %chans) && ($me isvoice %chans) { /notice $nick 12@3+ $+ %chans | goto next }
  elseif ($me isop %chans) && ($me isvoice %chans) && ($isuser($me,%chans)) { /notice $nick 12@3+10- $+ %chans | goto next }
  elseif ($me isop %chans) && ($isuser($me,%chans)) { /notice $nick 12@10- $+ %chans | goto next }
  elseif ($me ishop %chans) { /notice $nick 7% $+ %chans | goto next }
  elseif ($me ishop %chans) && ($me isvoice %chans) { /notice $nick 7%3+ $+ %chans | goto next }
  elseif ($me isvoice %chans) { /notice $nick 9+ $+ %chans | goto next }
  elseif ($me isvoice %chans) && ($isuser($me,$chans)) { /notice $nick 9+10- $+ %chans | goto next }
  elseif ($isuser($me,%chans)) { /notice $nick 010- $+ %chans | goto next }
  else { /notice 0$nick %chans | goto next }
  :end
  halt
}

Comments

Sign in to comment.
Shadow Clash   -  Aug 12, 2007

5/10

 Respond  
Anti   -  Aug 10, 2007

ROFL yeah i forgot about that ( << :P well done wishy

 Respond  
napa182   -  Aug 09, 2007

i mean nice =P

 Respond  
napa182   -  Aug 08, 2007

oh and nick script by the way =)

 Respond  
napa182   -  Aug 08, 2007

also you have !Sayrooms as a wildcard also you had a ( mixed up for a {

on *:TEXT:!Sayrooms:*:{
  if ($chan(0) == 1) { 
    /notice $nick I am in  $+ $chan(0) $+  channel 
  }
  else { /notice $nick 0I am in  $+ $chan(0) $+  channels 
    /notice $nick 0They are:
    set %x 0
    :next
    inc %x
    set %chans $chan(%x)
    if (%chans == $null) { goto end }
    elseif ($me isop %chans) { /notice $nick 12@ $+ %chans | goto next }  
    elseif ($me isop %chans) && ($me isvoice %chans) { /notice $nick 12@3+ $+ %chans | goto next }
    elseif ($me isop %chans) && ($me isvoice %chans) && ($isuser($me,%chans)) { /notice $nick 12@3+10- $+ %chans | goto next }
    elseif ($me isop %chans) && ($isuser($me,%chans)) { /notice $nick 12@10- $+ %chans | goto next }
    elseif ($me ishop %chans) { /notice $nick 7% $+ %chans | goto next }
    elseif ($me ishop %chans) && ($me isvoice %chans) { /notice $nick 7%3+ $+ %chans | goto next }
    elseif ($me isvoice %chans) { /notice $nick 9+ $+ %chans | goto next }
    elseif ($me isvoice %chans) && ($isuser($me,$chans)) { /notice $nick 9+10- $+ %chans | goto next }
    elseif ($isuser($me,%chans)) { /notice $nick 010- $+ %chans | goto next }
    else { /notice 0$nick %chans | goto next }
    :end
    halt
  }
}
 Respond  
Anti   -  Aug 08, 2007

on :TEXT:!Sayrooms::(
if ($chan(0) == 1) { /notice $nick I am in $+ $chan(0) $+ channel }
-------------- ^ ROFLMAO umm might want to change it a bit
on :TEXT:!Sayrooms*:#:(
if ($chan(0) == 1) { /notice $nick I am in $+ $chan(0) $+ channel }
----------------^ there you go

 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.