Channel Staff Alert

By Callumlord on Mar 27, 2011

Simple script that will alert staff in a channel.

Things you need to edit:

- Remove the <> #Channel - Change to your chan name. *Enter Alert Text here* - Change to what you would like a user to type for it to alert the staff ------------------------------------------------------------------------------------------------------------------------------------------------------ Updates: Fix Bug Replaced #Channel with $chan ------------------------------------------------------------------------------------------------------------------------------------------------------ ```mirc |-------------------------------------| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | Simple channel staff alert script. | @ Things to change: @ | By: Callumlord | @ - Remove the <> @ |-------------------------------------| @ #Channel - Change to your chan name. @ @ *Enter Alert Text here* - Change to @ @ what you would like as a trigger to @ @ alert the staff. @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ on *:text:*Enter Alert Text here*:#Channel: { $chan .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick .notice 4!! Alert !!0 Your attention is needed in $chan called by $nick } ```

Comments

Sign in to comment.
Known   -  Apr 02, 2011

macs-rocks theres no point in making this into a module for that, as you could have a IRCHelp bot basically sitting around and when someone needs support they would type this.

It would be better if you made a timer and not make it just spam a user or channel like this.

 Respond  
Callumlord   -  Apr 02, 2011

Ah and Parsonsda, next time, post that as a 'Code' not a message :)

 Respond  
Callumlord   -  Apr 02, 2011

No

 Respond  
macs-rock   -  Mar 31, 2011

well to make an Anope/Atheme/epona module for this would be better

 Respond  
macs-rock   -  Mar 31, 2011

urrrr why dont you just make it notice the staff channel (eg: #opers)

 Respond  
Callumlord   -  Mar 28, 2011

Oh ok thanks :D

 Respond  
Cheiron   -  Mar 28, 2011

if you read what i said on my post Callumlord .. that was a script which I did for one of MY mirc bots,

Jethro_ has shown you one way to do it.. I have shown you a slightly different way of doing it,

both have the same end results. it just depends what sort you would rather have.. a simpler one like Jethro_'s which is neater and cleaner, or a more messier but slightly more advanced functionable version like mine.

all we have done is shown you different ways in which to acheive what you are after, so using the 2 .. you should be able to source a variant for yourself :)

 Respond  
Callumlord   -  Mar 28, 2011

How and where would I put that timer on mine?

 Respond  
Cheiron   -  Mar 28, 2011

as i did on one of my own snippets for a bot... my version allows 2 ways to alert staff.. either in channel via an on text command.. or stealth via noticing the bot. you will notice my version has 2 channels there.. this is due to my bot sitting in a seperate Ops channel so if it gets missed in the main channel from the onotice, then it messages it into the ops channel for the record. its for mirc and runs on 6.35. its fitted with antiflood too

on *:TEXT:!assist *:*: {
  if ( %test. [ $+ [ $nick ] ] == $null ) {
    set %test. [ $+ [ $nick ] ] 1
  .onotice #channel $nick : $2-
  .msg #channel2 $nick : $2-
  .timer 1 60 unset %test. [ $+ [ $nick ] ]
  }
}
on *:NOTICE:!assist *:*: {
  if ( %test. [ $+ [ $nick ] ] == $null ) {
    set %test. [ $+ [ $nick ] ] 1
  .onotice #channel $nick : $2-
  .msg #channel2 $nick : $2-
  .timer 1 60 unset %test. [ $+ [ $nick ] ]
  }
}
 Respond  
Callumlord   -  Mar 27, 2011

Jethro_ , Yeh I know, I saw after posting but was too busy to fix at that time and forgot about it. Sorted now.

 Respond  
Callumlord   -  Mar 27, 2011

Parsonsda, Thanks my bad.

 Respond  
Jethro   -  Mar 27, 2011

I already said that, IllogicTC. > When you specify the #channel in the event, you don't need to reiterate the #channel again in its routine, meaning you can simply use # or $chan.

 Respond  
IllogicTC   -  Mar 27, 2011

Instead of having #channel in all the notices, since there is already a check done in the ON TEXT event to ensure it is the proper channel, just use $chan. That way, people won't have to replace all those #Channel things, just the one.

 Respond  
Jethro   -  Mar 27, 2011
on *:text:*Enter Alert Text here*:#Channel:{
  if !%p {
    inc -u4 %p
    var %n 1, %c #chan1 #chan2 #chan3 #chan4 #chan5 #chan6 #chan7
    while $gettok(%c,%n,32) { 
      .timer 1 $calc(%n *2) .notice $v1 <Enter User Nick Here> 4!! Alert !!0 Your attention is needed in $v1 called by $nick
      inc %n
    }
  }
}

This will make the code trigger once every 4 seconds and send a notice from #chan1 to #chan7 with a 2-second delay to avoid flood.

 Respond  
Parsonsda   -  Mar 27, 2011

found your bug!

|-------------------------------------| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
| Simple channel staff alert script. | @ Things to change: @
| By: Callumlord | @ - Remove the <> @
|-------------------------------------| @ #Channel - Change to your chan name. @
@ Enter Alert Text here - Change to @
@ what you would like as a trigger to @
@ alert the staff. @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

on :text:Enter Alert Text here*:#Channel: { $chan

.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick
.notice 4!! Alert !!0 Your attention is needed in #Channel called by $nick

) <<<<<<<<<<<<<<<<<<<< that your problem, repelase it with " } "

 Respond  
Parsonsda   -  Mar 27, 2011

error in your code, all my codes under it don't work

 Respond  
Jethro   -  Mar 27, 2011

Why do you need 7 notices? When you specify the #channel in the event, you don't need to reiterate the #channel again in its routine, meaning you can simply use # or $chan.

 Respond  
Callumlord   -  Mar 27, 2011

You need to change the to the users nick that it will alert. But take out the < and >.

Then change the #Channel parts to your channel name E.G #Callum

Then change the Enter Alert Text here to what you want a user to say to trigger the command and alert the staff. E.G CallumOP. When a user says CallumOP in the chat-room it will notice all staff with a alert message to get there attention and will also tell them who trigged the command.

Any more help let me know.

 Respond  
Parsonsda   -  Mar 27, 2011

urr can u give me a example, i don't get it, do i need to change the does or something?

 Respond  
Callumlord   -  Mar 27, 2011

Any ideas on a flood protection?

 Respond  
Jethro   -  Mar 27, 2011

This code can easily be flooded big time.

 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.