Skip to content

cosmo0920/hs-IRC

Repository files navigation

hs-IRC

Build Status

Simple IRC bot writen in Haskell.

This bot's source code was made in reference to haskellwiki/Roll_your_own_IRC_bot

Requirement

  • Haskell Platform 2012.1.0.0 or later

currently, it can build following platforms:

  • ghc 7.4.1 @ Ubuntu 12.04.3 LTS
  • ghc 7.6.3 with hsenv @ Ubuntu 12.04.3.LTS
  • ghc 7.6.3 @ Windows 7 and 8
  • ghc 7.6.3 @ OSX 10.8
    • Lexical error occurred when it installs dependent libraries, it must define LANG=C to avoid this error.

Try it

If you install cabal packages, strongly recommended use cabal-dev.

git clone

$ git clone https://github.com/cosmo0920/hs-IRC.git
$ cd hs-IRC

Install dependent libraries

when you use Debian and related distributions...

$ cabal update
$ cabal install cabal-dev
$ ~/.cabal/bin/cabal-dev install --dry-run --only-dependencies #prevent dependency hell
$ ~/.cabal/bin/cabal-dev install --only-dependencies

build application

$ ~/.cabal/bin/cabal-dev configure
$ ~/.cabal/bin/cabal-dev build
$ cp setting-dummy.yml setting.yml

Haddock

This code contains haddock style comments.

So, you can generate haddock document as follows:

$ cabal[-dev] haddock --executables [--hyperlink-source] # if you want to see highlighted code in document.

Settings

setting.yml contains follwing items:

  • server
    • server URL
  • port
    • port number
  • nick
    • nickname
  • password
    • password (It does not need always.)
  • channel
    • connecting channel info
  • realname
    • realname setting (Mixed case is not allowed.)
  • usessl
    • use SSL/TLS (true/false)

This code is provided under the MIT LICENSE. see: LICENSE

About

IRC Bot written in Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published