egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Edge botpack help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
sdays
Halfop


Joined: 21 Oct 2006
Posts: 98

PostPosted: Tue Mar 13, 2007 11:37 am    Post subject: Edge botpack help Reply with quote

i am trying to use this bot pack at 'http://mekk.net/' But when i type './start.sh' i get:

Code:

sdays@Mars ~/eggdrop1.6.18
./start.sh
: command not found
: command not found:
: command not found:
: command not found:
./start.sh: line 219: syntax error: unexpected end of file


here's start.sh
Code:

#!/bin/sh
#start.sh
#See Readme for more info.
#By: mekk and thermo

#Edit these:
suser="sdays"
bname="botnet"
hpass="******"
lpass="*****"
mchan="#"

###################################################################################

PWD="`/bin/pwd`"

if test "$suser" = "your-superuser"
 then
 echo "You need to edit the top of start.sh."
 exit 0
fi
if test "$mchan" = "your-mainchannel"
 then
 echo "You need to edit the top of start.sh."
 exit 0
fi

clear
echo "start.sh - v1.9"
echo "By: mekk and thermo"
echo

if [ -f eggdrop ]
 then
 echo "Edge has already been compiled on this shell."
 echo -n "Do you want to make a bot? [y/n]: "
 read ans
 if test "$ans" = "y"
  then
  skip=yes
 else
  exit 0
 fi
fi

if [ ! "$skip" = "yes" ]
 then
 echo "Configuring..."
 ./configure
 make eggdrop
 if [ ! -f eggdrop ]
  then
  echo
  echo "Compile or Configure errored!"
  echo "See Readme for more help and contact information."
  exit 1
 fi
 rm -rf conf* Make* lush* EGGDROP.stamp src
 echo "done!"

 echo "Setting up the go file..."
 echo "#This script launches the bot(s)" > go
 echo "#Made from start.sh" >> go
 echo " " >> go
 echo "botdir=\"$PWD\"" >> go
 echo " " >> go
 echo "cd \$botdir" >> go
 echo " " >> go
 echo "for script in *.conf" >> go
 echo "do" >> go
 echo "if [ ! -r \$script ]" >> go
 echo " then continue" >> go
 echo "fi" >> go
 echo "botname=\`echo \$script | cut -d. -f1\`" >> go
 echo "if [ -r pid.\$botname ]" >> go
 echo " then" >> go
 echo " botpid=\`cat pid.\$botname\`" >> go
 echo " if \`kill -CHLD \$botpid >/dev/null 2>&1\`" >> go
 echo "  then" >> go
 echo "  continue" >> go
 echo " fi" >> go
 echo " rm -f pid.\$botname" >> go
 echo "fi" >> go
 echo "./eggdrop \$script" >> go
 echo "done" >> go
 chmod 700 go
 echo "done!"

 echo "Setting up Crontab..."
 echo -n "Do you want crontab? [y/n]: "
 read cron
 if test "$cron" = "y"
  then
  echo "0,10,20,30,40,50 * * * * * $PWD/go > /dev/null 2>1&" > cron
  crontab cron
  echo "done!"
 else
  echo "done!"
 fi
fi

ans2="y"
while [ $ans2 = "y" ]
do
echo "Making config..."
echo -n "Botnick: "
read bot
echo -n "User Name: "
read username
echo -n "Real Name: "
read realname
echo -n "Vhost: "
read vhost
echo -n "Ip: "
read ip
echo -n "Bot Port: "
read bport
echo -n "User Port: "
read uport
echo -n "Is this a hub? [y/n]: "
read ans3
if test "$ans3" = "y"
 then
 hub="1"
 passive="0"
else
 hub="0"
 passive="1"
fi

cat >> "$bot.conf" << EOF
#edge config from start.sh
#Bot: $bot
#Made: `date`

set nick "$bot"
set altnick "$bot|"
set username "$username"
set realname "$realname"
set my-hostname "$vhost"
set my-ip "$ip"
set hub "$hub"
set passive "$passive"
set superuser "$suser"
set botnet "$bname"
set hubpw "$hpass"
set leafpw "$lpass"
listen $bport bots
listen $uport users
set cchan "$mchan"

set servers {
efnet.cs.hut.fi
efnet.demon.co.uk
efnet.skynet.be
efnet.vuurwerk.nl
irc.Prison.NET
irc.Qeast.net
irc.arcti.ca
irc.concentric.net
irc.daxnet.no
irc.du.se
irc.easynews.com
irc.efnet.pl
irc.flamed.net
irc.hemmet.chalmers.se
irc.homelien.no
irc.inet.tele.dk
irc.inter.net.il
irc.isdnet.fr
irc.lagged.org
irc.lightning.net
irc.mindspring.com
irc.rt.ru
irc.secsup.uu.net
irc.torix.ca
irc.umich.edu
irc.umn.edu
irc.vrfx.com
irc.webgiro.se
irc.weblook2k.com
irc2.flamed.net
ircd.Qeast.net
ircd.arcti.ca
ircd.charter.com
ircd.flamed.net
ircd.lightning.net
ircd.secsup.org
ircd.torix.ca
}

channel add $mchan {chanmode "+stn"}
channel set $mchan -clearbans -bitch -greet -protectops -stopnethack
channel set $mchan -revenge -secret +shared

source scripts/edge.tcl
EOF
echo "done!"
echo
echo -n "Make another bot? [y/n]: "
read ans2
done

echo
echo "Install script finshed!"

if [ -e $bot.u ]
 then
 echo "User file found."
 echo "Running go script..."
 ./go
else
 echo "No user file found. When the bot comes on /msg $bot hello to add your self."
 echo "Running bot with out userfile..."
 ./eggdrop -m $bot.conf
fi

exit 0


Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Tue Mar 13, 2007 12:27 pm    Post subject: Reply with quote

I suggest contacting the author.
Obvious quick answer, the machine you are running this on is missing something.
Back to top
View user's profile Send private message
sdays
Halfop


Joined: 21 Oct 2006
Posts: 98

PostPosted: Tue Mar 13, 2007 12:38 pm    Post subject: Reply with quote

I cannot find the owner.. i looked every where.
Back to top
View user's profile Send private message
sdays
Halfop


Joined: 21 Oct 2006
Posts: 98

PostPosted: Wed Mar 14, 2007 6:12 am    Post subject: Reply with quote

i looked all over i want this script but i cannot get it to work..
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Mar 14, 2007 3:43 pm    Post subject: Reply with quote

The script looks like a bash script..Are you using bash? If you're not using bash, then yeah you'll get syntax errors. Check to see what /bin/sh is symlinked to. If it's not linked to /bin/bash, change the top of the script to use /bin/bash instead of /bin/sh

Also, do a 'which pwd' and see if it's in /bin/pwd, that's the only other obvious error I see.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber