Register
It is currently Fri Oct 24, 2014 11:36 pm

Issues using bashbot


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Mon Apr 28, 2014 10:02 am   

Joined: Fri Mar 21, 2014 8:30 am
Posts: 1
Location: Lake Stevens, Wa
I have configured the bash bot to login to an unreal server but I am getting some odd errors from within the functions file..

Starting Bash Bot

Bash bot started

Hit RETURN to continuebin/libs/.functions: line 49: return: -1: invalid option
return: usage: return [n]


Code:
function inStr
{
        searchFor="$1";
        lenOf=${#searchFor};
        searchIn="$2";

        for (( i=0; i < ${#searchIn}; i++ ))
        do
                if [[ "${searchIn:$i:$lenOf}" = "$searchFor" ]]
                then
                        echo "$i"
                        return $i
                fi
        done
        echo "-1"
        return -1  # here is the error
}


It looks like I am connecting properly from the log entries..

Code:
<undefined> :irc2.pipeload.com 265 bbot :Current Local Users: 23  Max: 32 <end>
<input> :irc2.pipeload.com 266 bbot :Current Global Users: 30  Max: 39 <end>
<undefined> :irc2.pipeload.com 266 bbot :Current Global Users: 30  Max: 39 <end>
<input> :irc2.pipeload.com 422 bbot :MOTD File is missing <end>
<undefined> :irc2.pipeload.com 422 bbot :MOTD File is missing <end>
<input> :bbot MODE bbot :+iwx <end>
NICK bbot
<output> NICK bbot
USER bbot 0 * :Bash Bot
<output> USER bbot 0 * :Bash Bot
JOIN #test
<output> JOIN #test
<output> #test I'm Bash Bot Version BETA .2.0
<output> Identifying with Nickserv
PRIVMSG nickserv :identify
<output> Bot getting chan ops
PRIVMSG chanserv :op all


I changed it to a positive integer, but I am still unable to join a channel

Any suggestions on where to begin debugging?


Top
 Profile YIM  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP