Something went wrong. Try again.
A simple Discord bot framework built on discord-haskell
Something went wrong. Try again.
1234567891011121314151617181920{-# LANGUAGE DisambiguateRecordFields #-}{-# LANGUAGE NamedFieldPuns #-}
module Howdy.Builtin.Help where
import Data.Maybe (fromMaybe)import Data.Text (Text)--import Howdy.Comptime.Bot (BotPreferences (commandsData))import Howdy.Comptime.Command
{- help :: BotPreferences -> Commandhelp b i = do let text = fmap formatCommand b.commandsData pure ()
formatCommand :: CommandMeta -> TextformatCommand CommandMeta { hidden = True } = ""formatCommand CommandMeta { alias, desc = Just desc } = "**" <> head alias <> ":** " <> descformatCommand CommandMeta { alias } = "**" <> head alias <> "**" -}