# 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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
What version are you using?
What OS are you running?
Can you show us the config file?
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.
Maybe it is because the users diplodocu and budge7 are not defined in the config?
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.
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.