marvin-0.1.4: A modular chat bot

Copyright(c) Justus Adam 2016
LicenseBSD3
Maintainerdev@justus.science
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Marvin.Run

Description

 

Synopsis

Documentation

runMarvin :: forall a. IsAdapter a => [ScriptInit a] -> IO () Source #

Runs the marvin bot using whatever method the adapter uses.

data ScriptInit a Source #

Initializer for a script. This gets run by the server during startup and creates a Script

class IsAdapter a Source #

Basic functionality required of any adapter

requireFromAppConfig :: Configured a => Config -> Name -> IO a Source #

Retrieve a value from the application config, given the whole config structure. Fails if value not parseable as a or not present.

lookupFromAppConfig :: Configured a => Config -> Name -> IO (Maybe a) Source #

Retrieve a value from the application config, given the whole config structure. Returns Nothing if value not parseable as a or not present.

defaultConfigName :: FilePath Source #

Default name for the config file