This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Helpdesk?

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
m
mikkeldk
Voice
Posts: 7
Joined: Sat Mar 15, 2008 6:07 pm

Helpdesk?

Post by mikkeldk »

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?
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

m
mikkeldk
Voice
Posts: 7
Joined: Sat Mar 15, 2008 6:07 pm

Post by mikkeldk »

<- Its Dont working!!!
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

try

Code: Select all

###

# 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.
m
mikkeldk
Voice
Posts: 7
Joined: Sat Mar 15, 2008 6:07 pm

Post by mikkeldk »

Nor7on wrote:try

Code: Select all

###

# 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 :)
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

use a translate spanish to english: www.world.altavista.com

trouble solved.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

# -> 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
Post Reply