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.

MegaHal

Discussion of Eggdrop's code and module programming in C.
Post Reply
a
antigrav
Voice
Posts: 2
Joined: Sat Jul 09, 2005 12:42 pm

MegaHal

Post by antigrav »

Just installed megahal into the eggdrop and i can talk to it in dcc chat with .megahal prefix but I have no idea where or how to use +megahal or +freespeech commands or how to get it to talk in a channel.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

From the Command Console (DCC):

Code: Select all

.chanset #channel +megahal +learnall +freespeech 
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
a
antigrav
Voice
Posts: 2
Joined: Sat Jul 09, 2005 12:42 pm

Post by antigrav »

Thank You, that worked with the exception of free speech.
Is there some documentation for eggy use of hal?

<antigrav> .chanset #chan +megahal +learnall +freespeech
<bot> Error trying to set +freespeech for #eztv, invalid mode.

Also I'm wondering if there is any way to set it so that 'bot' doesn't have to be addressed directly to speak, also I'm thinking I might like to download a better personality if you have any suggestions.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I just noticed I made a typo in previous post, sorry. :oops: It's +freespeak.

There are two example scripts that can be used in the ~megahal.mod/examples folder. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Z
Zero_Kewl
Voice
Posts: 4
Joined: Mon Oct 24, 2005 6:33 pm

ARGH!

Post by Zero_Kewl »

Hi there,

I have been trying to install megaHAL for ages and never succeeded. When I do .chanset #mychan +megahal or .chanset #mychan +learn all. I get a message that says:

Error trying to set +learnall for #mychan, invalid mode.

Also, I have loaded one of the example TCL scripts (replyall.tcl) and everytime something is sais in the room, the bot states that 'learn' is not a valid command. Any help anyone would have for me would be very much appreciated. I have compiled the bot several times, and I can confirm that the bot has definitely loaded the module as I selected it diring 'make iconfig'.

Thanks

Daz
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

1. Obtain megahal.mod.2.7.tar.bz2.
2. Place it in ~/eggdrop1.6.x/src/mod/
3. Decompress it: tar zxvf megahal.2.x.tar.gz
4. Go back to your ~/eggdrop1.6.x directory
5. make config
6. make
7. make install
8. Copy the megahal.??? files in src/mod/megahal.mod to your bot's directory
9. Edit you bot's *.conf file and add the line: loadmodule megahal
10. Rehash your bot
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Z
Zero_Kewl
Voice
Posts: 4
Joined: Mon Oct 24, 2005 6:33 pm

Post by Zero_Kewl »

I have done that at least 6 times :(

I must be going wrong somewhere!
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Error trying to set +learnall for #mychan, invalid mode.
The above line in the generated error tells me that this module is not being loaded correctly. If the 'loadmodule megahal' entry is definitely in your bots' configuration file then it should be loading.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Z
Zero_Kewl
Voice
Posts: 4
Joined: Mon Oct 24, 2005 6:33 pm

Post by Zero_Kewl »

It's fixed! You were right! Although it said the module loaded, for some reason it did not. I think I am now on my 60th compile, and it seems to work. Neither of those two example scripts seem to allow the bot to work in the channel though, as it only responds in PM when you use it's nick. I am learning TCL so I should be able to make a small piece of code to do the job. Thanks for your help :D
Z
Zero_Kewl
Voice
Posts: 4
Joined: Mon Oct 24, 2005 6:33 pm

Post by Zero_Kewl »

Hmmm, when I do .chanset #mychan -megahal -freespeak -learnall the bot still talks in the channel. How can I deactivate it without unloading the module?
Post Reply