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.

Compile perl script and add to module.

Discussion of Eggdrop's code and module programming in C.
Post Reply
b
botnet
Voice
Posts: 9
Joined: Sat Jul 31, 2010 9:03 am

Compile perl script and add to module.

Post by botnet »

Question
simple question for people who know please participate.
How to compile perl script and add to a module for Eggdrop?

Details
i have a module called megahal. i already compiled megahal module and it's working fine with eggdrop. But i found a perl script and need to add it to my meghal module.

So how to add a perl script to an Eggdrop module?
Do I need to recompile again module + the perl script? If so then how do I compile perl file and link it with Megahal so it can recognize it?
For linking maybe looking at line 36 can help but not sure:
line36 use AI::MegaHAL; # The megahal AI module

for who's interested
here's perl script file paste here :)
http://codepad.org/nZR84dqV

:arrow: so anybody knows about perl add to Eggdrop modules?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

# Requires: 
#	Xchat. (2.04 or later, windows or linux)
#	Perl (or ActivePerl) installed. 
#	AI::MegaHAL  (Get it from http://search.cpan.org/~chorny/AI-MegaHAL-0.05/lib/AI/MegaHAL.pm OR "cpan AI::MegaHAL" OR "ppm" and search.
# 
It has nothing to do with eggdrop. Why don't you use an eggdrop version of megaHAL instead?
b
botnet
Voice
Posts: 9
Joined: Sat Jul 31, 2010 9:03 am

Post by botnet »

Hi speechles
sure my Megahal version is specific for Eggdrop and it's working fine.

But you're saying that the perl script i found has nothing to do with Eggdrop. ok so this script can't use it for eggdrop megahal then. thanks for your reply.
Post Reply