module Lambdabot.Plugin.Core.Version (versionPlugin) where
import Lambdabot.Plugin
import Data.Version (showVersion)
versionPlugin :: Module ()
versionPlugin :: Module ()
versionPlugin = Module ()
forall st. Module st
newModule
{ moduleCmds = return
[ (command "version")
{ help = say $
"version/source. Report the version " ++
"and git repo of this bot"
, process = const $ do
ver <- getConfig lbVersion
say $ "lambdabot " ++ showVersion ver
say "git clone https://github.com/lambdabot/lambdabot"
}
]
}