irc-fun-bot-0.3.0.0: Library for writing fun IRC bots.

Safe HaskellNone
LanguageHaskell2010

Network.IRC.Fun.Bot.Nicks

Contents

Description

The module gives access to the nickname tracker. For each channel with tracking enabled, the list of users in the channel is being maintained. It is optionally used internally for logging, and can be very useful for some bot features you may with your bot to have.

Synopsis

Tracker Control

startTrackingAll :: Session e s () Source

Start tracking nicks in all the channels the bot has joined which aren't being tracked.

startTrackingChannel :: String -> Session e s () Source

Start tracking nicks in the given channel, if not tracked already.

startTrackingChannels :: [String] -> Session e s () Source

Start tracking nicks in the channels not tracked, among the ones given.

stopTrackingAll :: Session e s () Source

Stop tracking nicks in all tracked channels.

stopTrackingChannel :: String -> Session e s () Source

Stop tracking nicks in the given channel, if tracked.

stopTrackingChannels :: [String] -> Session e s () Source

Stop tracking nicks in the tracked channels among the ones given.

Queries

channelIsTracked :: String -> Session e s Bool Source

Check whether a given channel is being tracked.

isInChannel :: String -> String -> Session e s Bool Source

Check whether a nickname is present in a channel.

presence :: String -> Session e s [ChannelName] Source

Check in which channels a nickname is present.