diff options
author | Teddy Wing | 2017-09-11 00:48:23 +0200 |
---|---|---|
committer | Teddy Wing | 2017-09-13 04:47:08 +0200 |
commit | 3698d614bca4f88c2ffb0c4bf7867e8c5b140b8a (patch) | |
tree | e7d488acc1c7028eb4d093cf5e63aec1b993c9b2 /src/Plugin/GitHubCommit.hs | |
parent | 3b35cb9872af5f866521250547671c329ffbfe13 (diff) | |
download | sorbot-3698d614bca4f88c2ffb0c4bf7867e8c5b140b8a.tar.bz2 |
Bot: Try adding a BotConfig type
Tried adding this to replicate some code I had been reading, but
ultimately it didn't really change anything. In the end I don't need
this type, at least not right now, but it was an interesting exercise I
suppose.
Diffstat (limited to 'src/Plugin/GitHubCommit.hs')
-rw-r--r-- | src/Plugin/GitHubCommit.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Plugin/GitHubCommit.hs b/src/Plugin/GitHubCommit.hs index ad81e2f..fef4474 100644 --- a/src/Plugin/GitHubCommit.hs +++ b/src/Plugin/GitHubCommit.hs @@ -1,3 +1,4 @@ +-- {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} module Plugin.GitHubCommit @@ -14,12 +15,13 @@ import Database.SQLite.Simple.FromRow import Text.Regex.TDFA -- import Config (Config(..)) -import Bot (Bot, runBot) +import Bot (Bot, runBot, BotConfig) import I18n import qualified Message as M import qualified CliOptions as Cli (lang) import Plugin.Base +-- gitHubCommit :: BotConfig m => m Plugin gitHubCommit :: Bot Plugin gitHubCommit = do cfg <- ask |