MegaHAL Module

From Documentation

(Redirected from MegaHAL)
Jump to: navigation, search

Welcome to the wonderful world of artificial intelligence!

Contents

File List

examples
Example Tcl scripts for MegaHAL
LICENSE
GNU General Public License
paper.doc
A paper about MegaHAL (not the module)
README.megahal
The README for MegaHAL (not the module)
README.TXT
A link to this site

Installing (non-Windrop)

  1. Obtain the package.
  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

Installing (Windrop)

  1. Obtain the package.
  2. Extract megahal.dll into the modules folder.
  3. Extract the rest of the files into the eggdrop's main folder.
  4. Edit you bot's *.conf file and add the line (anywhere): loadmodule megahal
  5. Rehash your bot

Configuration

+megahal
A channel setting. You must set +megahal on each channel that you wish the module to listen and respond to.
+learnall
A channel setting. This setting will enable learning from everything said on the channel. It will still only respond to properly prefixed (see below) channel messages.
+freespeak
A channel setting. Makes the bot gives random replies even though noone is talking to it, specifically.
set mega_auto_save <whole number>
Save the brain every how many hours. Default: 1
set mega_backup_brain <1/0>
Should the brain be backed up daily? Default: 1
set mega_file_name <8.3 filename>
What file should the brain file be loaded and saved as. Default: megahal.brn
set mega_wpm <whole number>
A config/Tcl file setting. Words Per Minute. This will set the speed that replies, more or less, are sent at. Default: 120

Usage

General

Channel
Say a line prefixed with the bot's nickname followed by a character and a space or just a space. Example: Lamestbot, How are you today?
Private Message
Same as above.
Dcc Chat
The command for dcc chat is `.megahal <text>'.

Tcl

learn <text>
Makes the bot learn the specified text. Returns nothing.
getreply <text>
Gets the bot's reply for the given text. The bot does not learn from this text. Returns the reply.

Miscellaneous

The module automatically saves its brainfile whenever the userfile is saved. If you wish to make it save separately, use the dcc command .brainsave or the private message command BRAINSAVE <password>.

To Do List

Feel free to add to this list or program some of the items.

  • I'm also thinking about making some form of limit. Like max 3 lines in 5 minutes to the same person or something (of course .set variable). Should also be a max number of lines to one channel in a time-limit imho
  • Update the core code to MegaHAL v9.1.1.
  • Add a setting with a list of msg commands to ignore. This will fix the problem where msgm binds are called before msg binds.

Related Article

External Links

Personal tools