Skip to content

RocHack/hircbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hircbot

IRC Bot in Haskell

By RocHack

Authors

Features

  • Reads configuration in ~/.hircbot/cfg
  • Writes logs to stdout and ~/.hircbot/YYYY-MM-DD.txt
  • Connects to IRC to the set of channels specified.
  • Responds to commands starting with !h or !hircbot:
    • say: repeats input
    • about: prints HircBot by nmbook
    • whoami: prints your nick, username, host

To Use

  1. Set up Haskell:

     # or equivalents for your distribution
     yum install haskell-platform ghc-MissingH ghc-network
    
  2. Download to directory.

  3. Put settings in ~/.hircbot/cfg:

    Settings that are read (all lines must be in format "key = value"):

    • Server = IRC host name
    • Port = IRC port (must be numeric)
    • Nick = IRC nick
    • Pass = IRC server password
    • Username = IRC username
    • RealName = IRC real name field
    • Channels = comma separated list of channels to join on connect (no spaces allowed)
  4. Make sure runnable:

     chmod +x HircBot.hs
    
  5. Run it:

     ./HircBot.hs
    

About

IRC Bot in Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published