Browse Source

live patches

master
Annwan 2 years ago
parent
commit
cb419a1106
  1. 5
      app/Main.hs

5
app/Main.hs

@ -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
] ]

Loading…
Cancel
Save