Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- startTrackingAll :: Session e s ()
- startTrackingChannel :: String -> Session e s ()
- startTrackingChannels :: [String] -> Session e s ()
- stopTrackingAll :: Session e s ()
- stopTrackingChannel :: String -> Session e s ()
- stopTrackingChannels :: [String] -> Session e s ()
- channelIsTracked :: String -> Session e s Bool
- isInChannel :: String -> String -> Session e s Bool
- presence :: String -> Session e s [ChannelName]
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.