Debian Codegraph @

src/Lambdabot/Plugin/Core/Version.hs

raw
1 -- Copyright (c) 2005-6 Don Stewart - http://www.cse.unsw.edu.au/~dons
2 -- GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html)
3
4 -- | Lambdabot version information
5 module Lambdabot.Plugin.Core.Version (versionPlugin) where
6
7 import Lambdabot.Plugin
8 import Data.Version (showVersion)
9
10 versionPlugin :: Module ()
11 versionPlugin = newModule
12 { moduleCmds = return
13 [ (command "version")
14 { help = say $
15 "version/source. Report the version " ++
16 "and git repo of this bot"
17 , process = const $ do
18 ver <- getConfig lbVersion
19 say $ "lambdabot " ++ showVersion ver
20 say "git clone https://github.com/lambdabot/lambdabot"
21 }
22 ]
23 }