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.

bot auto op wont work

Old posts that have not been replied to for several years.
User avatar
Crack02
Voice
Posts: 15
Joined: Wed Jun 29, 2005 2:34 pm

bot auto op wont work

Post by Crack02 »

The eggdrop joins the channel but does not help itself for operator status.

Code: Select all

    channel add #channelname {
      chanmode "+nCct-ikm"
      need-op { putserv "opmode #channelname +o BotsName" }
      idle-kick 0
      stopnethack-mode 0
      revenge-mode 0
      ban-time 30
      exempt-time 60
      invite-time 60
      aop-delay 5:30
      flood-chan 5:6
      flood-deop 0:0
      flood-kick 0:0
      flood-join 0:0
      flood-ctcp 0:0
      flood-nick 0:0
    }
    channel set #channelname +enforcebans +dynamicbans +userbans +dynamicexempts

Code: Select all

proc evnt:init_server {type} {
  global botnick
  putserv "privmsg x :auth BotsName BotsPass"
  putserv "oper banserv BotsOperatorPass"
}
what did i do wrong?
(btw. dont wonder, bot 's a irc operator)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

maybe you lack this:

Code: Select all

bind evnt - init-server evnt:init_server
User avatar
Crack02
Voice
Posts: 15
Joined: Wed Jun 29, 2005 2:34 pm

Post by Crack02 »

maybe, but init:server events will send immediatly after connection to server? because getting op in a channel, which the bot joins afater the command is useless
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

"maybe"? you don't know what's in your code? you need that, it's mandatory
User avatar
Crack02
Voice
Posts: 15
Joined: Wed Jun 29, 2005 2:34 pm

Post by Crack02 »

did i say that i know my code? :mrgreen: :mrgreen:


so where should i paste bind evnt - init-server evnt:init_server in my code
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Code: Select all

bind join - * botjoin

proc botjoin {n u h c a} {
  global botnick
  if { $nick == $botnick } {
    putserv "mode $c +o $botnick"
    return
  }
} 
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Crack02
Voice
Posts: 15
Joined: Wed Jun 29, 2005 2:34 pm

Post by Crack02 »

on which place should i paste this code. i placed it to test belove the proc evnt part and get

Code: Select all

[21:10] Tcl error in file 'eggdrop.conf':
[21:10] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, ctcp, ctcr, dcc, disc, evnt, filt, flud, link, load, msg, msgm, nkch, notc, note, raw, time, unld, wall
    while executing
"bind join - * botjoin"
    (file "eggdrop.conf" line 783)
[21:10] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Crack02 wrote:did i say that i know my code? :mrgreen: :mrgreen:


so where should i paste bind evnt - init-server evnt:init_server in my code
anywhere
User avatar
Crack02
Voice
Posts: 15
Joined: Wed Jun 29, 2005 2:34 pm

Post by Crack02 »

thats what i did and look two postings above
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

change this.

Code: Select all

bind join - * botjoin
to

Code: Select all

bind join - "*" botjoin
Shouldnt make any difference but hey it should work ;]
Last edited by ^DooM^ on Fri Jul 08, 2005 3:55 pm, edited 1 time in total.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Crack02
Voice
Posts: 15
Joined: Wed Jun 29, 2005 2:34 pm

Post by Crack02 »

Code: Select all

[21:54] Tcl error in file 'eggdrop.conf':
[21:54] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, ctcp, ctcr, dcc, disc, evnt, filt, flud, link, load, msg, msgm, nkch, notc, note, raw, time, unld, wall
    while executing
"bind join - "*" botjoin"
    (file "eggdrop.conf" line 783)
[21:54] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

heh

do you realize that 2 different people are talking to you, with 2 different solutions?

are you able to differentiate between the two?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

ergh. try this then

Code: Select all

bind join - "*" botjoin

proc botjoin {nick uhost hand chan} {
  if { $nick == $::botnick } {
    putserv "mode $chan +o botnick"
  }
}
Your bot must be odd cuz that last script worked ok for me.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Crack02
Voice
Posts: 15
Joined: Wed Jun 29, 2005 2:34 pm

Post by Crack02 »

im trying all options :D

Code: Select all

[22:00] Tcl error in file 'eggdrop.conf':
[22:00] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, ctcp, ctcr, dcc, disc, evnt, filt, flud, link, load, msg, msgm, nkch, notc, note, raw, time, unld, wall
    while executing
"bind join - "*" botjoin"
    (file "eggdrop.conf" line 783)
[22:00] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
same error


thats the place where i put it

Code: Select all

...
# Set what should be displayed in the real-name field for the bot on IRC.
set realname "Service Bot"

# This is a Tcl script to be run immediately after connecting to a server.

bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
  global botnick
  putserv "privmsg x :auth botsname botspass"
  putserv "oper botsname botsoperpass"
}

bind join - "*" botjoin

proc botjoin {nick uhost hand chan} {
  if { $nick == $::botnick } {
    putserv "opmode $chan +o botnick"
  }
}

# Set the default port which should be used if none is specified with
# '.jump' or in 'set servers'.
set default-port 6667
...
Last edited by Crack02 on Fri Jul 08, 2005 4:04 pm, edited 2 times in total.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

demond wrote:heh

do you realize that 2 different people are talking to you, with 2 different solutions?

are you able to differentiate between the two?
heh I thought that whilst I was writing my last post. I wonder if he/she was doing something odd and merging the two scripts together. lmao ;)
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Locked