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.

Shell and IRC question

Old posts that have not been replied to for several years.
Locked
d
dan0r

Shell and IRC question

Post by dan0r »

Hi.

I am interested in creating a simple irc bot and running it from a shell account.

However the shell blocks irc access from the default ip (which is understandable.)

Eggdrop. bitchx, etc however can still connect to irc using vhost ip's.

Im not really sure how the vhost thing works, but i dont see why i cant code my bot to do the same?

Does anyone know how it works, and where example code can be found? or if its not possible to do.

Also if you know of any simple irc bots like this?


Thanks in advance.



PS. I know that i could get around the shell firewall using an ip/port forward service, but i am reluctant to do so as it will violate the shell terms of use.
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

You can specify a vhost in your eggdrop config file.
set my-hostname "virtual.host.com"
set my-ip "99.99.0.0"
d
dan0r

Post by dan0r »

I didnt mention using eggdrop.

I want to create my own.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

This is an eggdrop forum. We deal only with eggdrop. Seems you're in the wrong hole.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I doubt you can create your own, it requires alot of skill, devotion and time.

If you have cable or a 24/7 connection, you can run it locally on your machine too, using your assigned ip as the vhost on a 'Windrop' that is. (Windrop = Eggdrop modified to run on windows)

Also 'Energymech' is a more simpler irc bot than an eggdrop.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
d
dan0r

Post by dan0r »

Alchera wrote:This is an eggdrop forum. We deal only with eggdrop. Seems you're in the wrong hole.
The description for this forum is "Discussion of shell accounts and help with shell usage."
Having read through a number of threads not ALL posts related to eggdrop. (even thought mine is, as im asking how a certain feature works.)
So no im not in any hole thank you.


awyeah thanks for the info.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

dan0r wrote:Im not really sure how the vhost thing works, but i dont see why i cant code my bot to do the same?
Does anyone know how it works, and where example code can be found? or if its not possible to do.
The tcp layer in your os takes care of that (using a non-default network interface)...telling us what language you're planning to code it in might help :P (in tcl it would be 'socket -myaddr vhost.tld remote.tld 6667')
Have you ever read "The Manual"?
d
dan0r

Post by dan0r »

Hi user.

I was considering c, but tcl would do fine.

It could even be a script used by eggdrop.

All i am looking for is a simple irc socket bot script.

Ive read into using sockets for c. But got in to problems with the shell firewall as ive described.

Would it be easier to code a tcl script for eggdrop?

Do you have any info for using sockets in tcl?

I run an eggdrop already, but im a relative newbie, ive loaded premade tcl scripts, but not looked into making my own.

thanks.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

dan0r wrote:Would it be easier to code a tcl script for eggdrop?
Easier than coding a brand new bot from scratch? You bet yer ass :wink:
dan0r wrote:Do you have any info for using sockets in tcl?
For someone prepared to code a new source, I'm shocked you've never heard of google......
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Have a look at the irc module in tcllib
Locked