aboutsummaryrefslogtreecommitdiffstats
path: root/src/Plugin/Base.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin/Base.hs')
-rw-r--r--src/Plugin/Base.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Plugin/Base.hs b/src/Plugin/Base.hs
index 62900c7..ac67e71 100644
--- a/src/Plugin/Base.hs
+++ b/src/Plugin/Base.hs
@@ -13,9 +13,11 @@ import Message
type PluginAction = Message -> IO (Either T.Text T.Text)
data Plugin = Plugin
- { matchRegex :: String
- , perform :: PluginAction
+ { matchRegex :: String
+ , perform :: PluginAction
+ , command :: T.Text
+ , description :: T.Text
}
instance Show Plugin where
- show (Plugin r p) = "matchRegex = " ++ r
+ show (Plugin r _ _ _) = "matchRegex = " ++ r