| View previous topic :: View next topic |
| Author |
Message |
mikkeldk Voice
Joined: 15 Mar 2008 Posts: 7
|
Posted: Sun Mar 16, 2008 6:46 am Post subject: Helpdesk? |
|
|
Hello all again
I will ask .. For Where can i find Helpdesk to Script?
Only to ex: #Mychan.help
And i use: !online
And This Admin are Online and this bot will voice one to helping
and i maybe say: Whats problem??
where can i find or make? |
|
| Back to top |
|
 |
Nor7on Op

Joined: 03 Mar 2007 Posts: 185 Location: Spain - Barcelona
|
|
| Back to top |
|
 |
mikkeldk Voice
Joined: 15 Mar 2008 Posts: 7
|
Posted: Sun Mar 16, 2008 7:12 am Post subject: |
|
|
<- Its Dont working!!! |
|
| Back to top |
|
 |
Nor7on Op

Joined: 03 Mar 2007 Posts: 185 Location: Spain - Barcelona
|
Posted: Sun Mar 16, 2008 8:03 am Post subject: |
|
|
try
| Code: |
###
# trigger
set waffles(cmd) "!admin"
# Admins list
set waffles(list) "admin1 admin2"
###
bind pub - $waffles(cmd) pub:needadmin
proc pub:needadmin { nick host hand chan arg } {
global waffles
set counter 0
foreach ad [split $waffles(list)] {
if {[onchan $ad $chan]} {
putquick "PRIVMSG $ad :\037$nick\017 Necesita la Ayuda de Un Admin."
incr counter
}
}
if {$counter == 0} {
putquick "PRIVMSG $chan :Lo Siento $nick, No hay ningun Admin Online."
} else {
putquick "PRIVMSG $chan :$nick, tu petición ha sido enviada a la administración. Por Favor espera."
}
}
|
this code work on my channel.
good luck. |
|
| Back to top |
|
 |
mikkeldk Voice
Joined: 15 Mar 2008 Posts: 7
|
Posted: Sun Mar 16, 2008 8:54 am Post subject: |
|
|
| Nor7on wrote: | try
| Code: |
###
# trigger
set waffles(cmd) "!admin"
# Admins list
set waffles(list) "admin1 admin2"
###
bind pub - $waffles(cmd) pub:needadmin
proc pub:needadmin { nick host hand chan arg } {
global waffles
set counter 0
foreach ad [split $waffles(list)] {
if {[onchan $ad $chan]} {
putquick "PRIVMSG $ad :\037$nick\017 Necesita la Ayuda de Un Admin."
incr counter
}
}
if {$counter == 0} {
putquick "PRIVMSG $chan :Lo Siento $nick, No hay ningun Admin Online."
} else {
putquick "PRIVMSG $chan :$nick, tu petición ha sido enviada a la administración. Por Favor espera."
}
}
|
this code work on my channel.
good luck. |
Can u not set it to english? I hater Spain  |
|
| Back to top |
|
 |
Nor7on Op

Joined: 03 Mar 2007 Posts: 185 Location: Spain - Barcelona
|
Posted: Sun Mar 16, 2008 9:52 am Post subject: |
|
|
use a translate spanish to english: www.world.altavista.com
trouble solved. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Mar 17, 2008 1:14 am Post subject: |
|
|
| Code: | # -> trigger
set waffles(cmd) "!admin"
# -> Admins list
# can be 1, 2, 3 or 50,000 nicks, there is no limit but your own imagination
# if more than one, seperate each by a single space.
set waffles(list) "admin1 admin2 etc etc"
# -> Message type
# 0 for private message, or 1 for notice
set waffles(type) 1
### end config, changes beyond not advised
bind pub - $waffles(cmd) pub:needadmin
proc pub:needadmin { nick host hand chan arg } {
global waffles
if {$waffles(type) == 0} {
set adtype "PRIVMSG"
} else {
set adtype "NOTICE"
}
if {$arg != ""} {
set adreason " Reason: [join [lrange [split $arg] 0 end]]"
} else {
set adreason ""
}
foreach ad [split $waffles(list)] {
if {[onchan $ad]} {
set flagtrap 1
# puthelp is used here because (potentially) we jested above
# about putting 50,000 nicks, some people may take that
# seriously. puthelp queue can handle it without flooding bot.
# changing this to putquick or putserv is ill advised.
puthelp "$adtype $ad :\002$nick\002 requires assistance from an admin on $chan.$adreason"
}
}
if {[info exists flagtrap]} {
putserv "$adtype $nick :$nick, your request has been sent to the admins, please wait for assistance."
} else {
putserv "$adtype $nick :Sorry $nick, the admins are unavailable at this time. Try again later."
}
} |
In English. I've also added an option for privmsg or notice. As well as the ability for users to give a help reason.
With message type 1, notice, it would work like this...
someone types: <nick> !admin
you would see: -bot- nick requires assistance from an admin on #channel.
someone types: <nick> !admin i need help with my friend getting unbanned please
you would see: -bot- nick requires assistance from admin on #channel. Reason: need help with my friend getting unbanned please |
|
| Back to top |
|
 |
|