|
@ -134,15 +134,16 @@ onDiscordStart conf@Config {..} eventSystem = do |
|
|
onDiscordEvent :: Config -> E.EventSystem -> Event -> Discord.DiscordHandler () |
|
|
onDiscordEvent :: Config -> E.EventSystem -> Event -> Discord.DiscordHandler () |
|
|
onDiscordEvent conf@Config {..} eventSystem (Ready _ _ _ _ _ _ (PartialApplication i _)) |
|
|
onDiscordEvent conf@Config {..} eventSystem (Ready _ _ _ _ _ _ (PartialApplication i _)) |
|
|
= do |
|
|
= do |
|
|
|
|
|
liftIO $ putStrLn "onready" |
|
|
mapM_ |
|
|
mapM_ |
|
|
(maybe |
|
|
(maybe |
|
|
(return ()) |
|
|
(return ()) |
|
|
(void . Discord.restCall . R.CreateGuildApplicationCommand i configServer) |
|
|
(void . Discord.restCall . R.CreateGuildApplicationCommand i configServer) |
|
|
) |
|
|
) |
|
|
[ pingCommand |
|
|
[ pingCommand |
|
|
, edtCommand conf |
|
|
|
|
|
|
|
|
-- , edtCommand conf |
|
|
, remindCommand |
|
|
, remindCommand |
|
|
, groupCommand conf |
|
|
|
|
|
|
|
|
-- , groupCommand conf |
|
|
, helpCommand |
|
|
, helpCommand |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|