| View previous topic :: View next topic |
| Author |
Message |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Sun Dec 23, 2007 12:16 am Post subject: msg all ops |
|
|
can anyone make me a script where when i type ".msgops" it will message all the "@" or people with over 200 access in channel #mouseskills. the network is on gamesurge and service is ChanServ. I would also like it post in dcc if it gets "nick Target change too fast. Please wait xx seconds."
plz let me know if im not making sense |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Dec 23, 2007 7:40 am Post subject: |
|
|
You might want to state the services command used to get the op-level and the service's reply message for that command (also the raw-numeric of the message-target). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Sun Dec 23, 2007 9:48 pm Post subject: |
|
|
| i dont get what your saying... all i need the bot to do is reply to a command with text after it so it pms all "@"s with the text after the command.. |
|
| Back to top |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Mon Dec 24, 2007 3:17 am Post subject: |
|
|
| Code: | bind msg o|o .msg msg:proc
proc msg:proc {nick host handle text} {
global botnick
if {$text == ""} { putserv "NOTICE $nick :Syntax\: .msg #chan text comes here"; return }
set thechan [lindex $text 0]
set thetext [lrange $text 1 end]
foreach i [chanlist $thechan] {
if {([isop $i $thechan]) && ($i != $botnick)} {
putserv "NOTICE $i :$thetext"
}
}
}
putlog "loaded opnotice tcl..." |
The msg (in private) your bot like this:
| Code: | | .msg #chan Hello, this is just a test msg for all of you ops. |
This will send OPNOTICE to every op of your channel.
Let me know if there is any issue.
Thanks
iamdeath _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*...
Last edited by iamdeath on Tue Dec 25, 2007 11:30 pm; edited 3 times in total |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Dec 25, 2007 9:55 pm Post subject: |
|
|
iamdeath: Bad coding practices you have there. What happened to proper indentation for readability? _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Tue Dec 25, 2007 11:29 pm Post subject: |
|
|
is it better  _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*... |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Dec 26, 2007 4:43 am Post subject: |
|
|
| iamdeath wrote: | is it better  |
Yup!
And Bonne et Heureuse Année  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|