Menu

Won't Start!

Help
Anonymous
2002-04-15
2003-04-17
  • Anonymous

    Anonymous - 2002-04-15

    Hi,

    Just downloaded perlbot.
    Uploaded
    tar -xvzf perlbot-*
    Modified the config file

    Typed ./perlbot.pl at the command line and get the following message. I haev tried using the debugger but i get the same message.

    Can't locate object method "new" via package "user" (perhaps you forgot to load
    "user"?) at PerlbotCore.pm line 84.

    Does anybody have any idea?

    Cheers,

    Chris

     
    • Demian Rootring

      Demian Rootring - 2002-04-16

      What version are you using?

      What OS are you running?

      Can you show us the config file?

       
    • Anonymous

      Anonymous - 2002-04-16

      Sure ...

      I have tried both versions .. 1.4.2 and 1.5.1. I am now using the latter.

      OS is some form of linux, not entirely sure as I dont own the server, but I could find out.

      Config file ... sure ...

      ###############################
      # chan objects
      ###############################

      chan {
          key       
          name        #rapidmagic.com
          flag        +t
          logging            yes   
          limit        0
          op        diplodocu
          op        budge7
      }

      ###############################
      # bot objects
      ###############################

      bot {
          logdir        ./logs
          noload        MegaHal
          noload        Guile
          nickappend    _
          nick        boezbot
          plugindir    ./plugins
          crashlogdir    .
          ircname        imabot
          commandprefix    #
          pluginprefix    !

              # other possible command/plugin prefixes:
              #commandprefix  \\         #pluginprefix   \/
              #
              #commandprefix  .*?botname,\s+
              #pluginprefix   (?:botname|idiotface)
              #
              # if this makes no sense, just don't define them
      }

      ###############################
      # user objects
      ###############################

      user {
          flag        w #make this guy an owner of the bot
          name        leet_admin
      # note: the password is crypted and perlbot expects this to be the case!
              password        vvTHJiOIQW.vV
          hostmask    *!*bob@something.foo.com
          hostmask    *!*robert@somewhere.else.org
      }

      user {
          name        lame_user
      # THIS WOULD BE INSECURE: the host range is very wide and the user
      #                         has no password set.
          hostmask    *!*lamer@*.aol.com
      }

      ###############################
      # server objects
      ###############################

      server {
          name        undernet
          addr        london.uk.eu.undernet.org
      }

      Thanks for your time.

       
      • Demian Rootring

        Demian Rootring - 2002-04-21

        Maybe it is because the users diplodocu and budge7 are not defined in the config?

         
    • Jeremy Muhlich

      Jeremy Muhlich - 2002-06-05

      rootring is probably right.  I haven't looked at the 1.4.2/1.5.1 code in a while so I can't say off the top of my head if that would cause that error.

      However, you should seriously consider 1.9.2.  It's very nearly ready for release as 2.0.0.

       
    • Sam R

      Sam R - 2003-04-17

      Hi - I was attempting to try out perlbot, as it looks quite useful for me, and I ended failing miserably, though I'm not sure quite why.  I was wondering if anybody had any suggestions.

      First, I tried with 1.4.2, and got the following error:
      Can't locate object method "new" via package "User" at PerlbotCore.pm line 83.

      the debug output is as follows:
      begin class chan
        name: #odp-test
        logging: yes
        op: sam
      end class chan
      begin class bot
        logdir: ./logs
        noload: MegaHal
        noload: Guile
        nickappend: _
        nick: mozzie
        plugindir: ./plugins
        crashlogdir: .
        ircname: Mozzie-bot
        commandprefix: #
        pluginprefix: !
      end class bot
      begin class user
        flag: w
        name: sam
        password: (removed)
      end class user
      begin class server
        name: odp-irc
        addr: (removed)
      end class server

      I then downloaded 1.9.6 and got
      "Can't return a readonly value from lvalue subroutine at Perlbot.pm line 25" as an error.

      Any suggestions?

      I am running Perl 5.6.0 on darwin

      P.S. - I tried to post on the new forums, but got a "couldn't create duplicate key" error...

      Thanks in advance.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.