lambdabot-4.3: Lambdabot is a development tool and advanced IRC bot

Safe HaskellNone

Lambdabot.IRC

Description

The IRC module processes the IRC protocol and provides a nice API for sending and recieving IRC messages with an IRC server.

Synopsis

Documentation

data IrcMessage Source

An IRC message is a server, a prefix, a command and a list of parameters.

privmsgSource

Arguments

:: Nick

Who should recieve the message (nick)

-> String

What is the message?

-> IrcMessage

Constructed message

privmsg creates a private message to the person designated.

quit :: String -> String -> IrcMessageSource

quit creates a server QUIT message. The input string given is the quit message, given to other parties when leaving the network.