summaryrefslogtreecommitdiff
path: root/HsBot/Plugins/Base.hs
blob: a8acbfbbd0b4149a5fd50c6891aa07d5bd8ddc6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module HsBot.Plugins.Base where

import HsBot.Base.Env
import HsBot.Base.State

type CallbackFunction = String -> SendMessage -> Env -> IO Env

data Plugin a = Plugin {
   cbPrio :: Integer,
   cbFunction :: CallbackFunction
}