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

Safe HaskellNone



URL Utility Functions



urlPageTitle :: String -> BrowserAction (HandleStream String) (Maybe String)Source

Fetches a page title suitable for display. Ideally, other plugins should make use of this function if the result is to be displayed in an IRC channel because it ensures that a consistent look is used (and also lets the URL plugin effectively ignore contextual URLs that might be generated by another instance of lambdabot; the URL plugin matches on urlTitlePrompt).

browseLB :: MonadLB m => BrowserAction conn a -> m aSource

Run a browser action with some standardized settings