Topic w/ Divdiers, Static, Verb, Owner, Status, Topic Main

By TMFKSOFT on Dec 01, 2010

This is a new script that supports seperate channels but not seperate networks.

It will soon support them :)

This script is currently on
techie_bot and Amy bot on GeekShed.

I have created this by hand!
Thanks to #bots on GeekShed for help :)

;[[[[[ TOPIC With Dividers, Owner, Status, Verb, Static       ]]]]]
;[[[[[ Script by TMFKSOFT, Copyright 2010, Please give credit ]]]]]

on 1:text:!topic *:#:{ if ( $nick isop $chan){ set %topic $+ $chan $2- | topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } }
on 1:text:!divider *:#:{ if ( $nick isop $chan){ set %divider $+ $chan $2- | topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } }
on 1:text:!owner *:#:{ if ( $nick isop $chan){ set %owner $+ $chan $2- | topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } }
on 1:text:!verb *:#:{ if ( $nick isop $chan){ set %verb $+ $chan $2- | topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } }
on 1:text:!status *:#:{ if ( $nick isop $chan){ set %status $+ $chan $2- | topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } }
on 1:text:!static *:#:{ if ( $nick isop $chan){ set %static $+ $chan $2- | topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } }
on 1:text:!refresh:#:{ if ( $nick isop $chan ) { topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } }
on 1:text:!reset:#:{ if ($nick isop $chan ) { unset %topic $+ $chan | unset %divider $+ $chan | unset %owner $+ $chan | unset %verb $+ $chan | unset %status $+ $chan | unset %static $+ $chan | topic # No topic for $chan } }
on 1:quit:{  if ( %owner [ $+ [ $chan ] ] == $nick ) {
    set %status $+ $chan offline
    topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ]
} }
on 1:PART:#:{  if ( %owner [ $+ [ $chan ] ] == $nick ) {
    set %status $+ $chan offline
    topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ]
} }

on 1:JOIN:#:{ if ( %owner [ $+ [ $chan ] ] == $nick ) {
    set %status $+ $chan online
    topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ]
} }
on 1:TEXT:!credit:#:{ msg # Topic control script created by TMFKSOFT on Geekshed. Copyright 2010 }

Comments

Sign in to comment.
iProTopia   -  Jul 25, 2011

You don't need events for every topic thing, you can always do

 on *:TEXT:*:#:{ 
   if ( $nick isop $chan || $me isop $chan ) { 
   if( $1 == topic) { set %topic $+ $chan $2- | topic # %topic [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %owner [ $+ [ $chan ] ] %verb [ $+ [ $chan ] ] %status [ $+ [ $chan ] ] %divider [ $+ [ $chan ] ] %static [ $+ [ $chan ] ] } } 

And blahh... it would look neater.

GlaDOS

 Respond  
TMFKSOFT   -  Jan 22, 2011

i will when i rewrite it

 Respond  
Cheiron   -  Jan 16, 2011

any chance of a screen shot or 2 to allow preview of the code

 Respond  
TMFKSOFT   -  Jan 16, 2011

I will be hoping to completley rewrite this to support multiple networks

 Respond  
coolsecretspy   -  Jan 14, 2011

this appears to be broken as there is a bracket mis-match somewhere on line 4.

 Respond  
Dark|   -  Dec 02, 2010

i havent gotton the point of these yet,
it must mean somthing? that i just dont understand

 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.