You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
935 B

  1. {-# LANGUAGE OverloadedStrings #-}
  2. module Commands where
  3. import Discord
  4. import Discord.Types
  5. import Discord.Interactions
  6. import qualified Discord.Requests as R
  7. import qualified Data.Text as T
  8. pingCommand :: CreateApplicationCommand
  9. pingCommand =
  10. CreateApplicationCommand
  11. "ping"
  12. "pong"
  13. (Just [])
  14. Nothing
  15. Nothing
  16. pingResponse :: InteractionResponse
  17. pingResponse = interactionResponseBasic "Pong"
  18. edtCommand :: CreateApplicationCommand
  19. edtCommand = CreateApplicationCommand
  20. "edt"
  21. "Gets the planning for a group"
  22. (Just $ toInternal <$>
  23. [ ApplicationCommandOptionValueString
  24. "group"
  25. "Group to get the planning for"
  26. (Just True)
  27. Nothing
  28. Nothing
  29. , ApplicationCommandOptionValueString
  30. "day"
  31. "The day you want the planning for as DD/MM(/YYYY)"
  32. Nothing Nothing Nothing
  33. ])
  34. Nothing
  35. Nothing