lambdabot-4.3: src/Lambdabot/Plugin/Version.hs
-- Copyright (c) 2005-6 Don Stewart - http://www.cse.unsw.edu.au/~dons
-- GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html)
-- | Lambdabot version information
module Lambdabot.Plugin.Version (theModule) where
import Lambdabot.Plugin
import Paths_lambdabot (version)
import Data.Version (showVersion)
theModule :: Module ()
theModule = newModule
{ moduleCmds = return
[ (command "version")
{ help = say $
"version/source. Report the version " ++
"and git repo of this bot"
, process = const $ do
say $ "lambdabot " ++ showVersion version
say "git clone git://github.com/mokus0/lambdabot.git"
}
]
}