diff --git a/app/Commands.hs b/app/Commands.hs index a158a87..eba2dba 100644 --- a/app/Commands.hs +++ b/app/Commands.hs @@ -62,14 +62,14 @@ pingResponse _ = return $ interactionResponseBasic "Pong" edtCommand :: Config -> Maybe CreateApplicationCommand edtCommand c = - createChatInput "edt" "Gets the planning for a group" + createChatInput "edt" "Affiche l'emploi du temps" >>= \cac -> return $ cac { createOptions = Just $ OptionsValues [ OptionValueString "group" Nothing - "The group for which the planning is requested" + "Le groupe pour lequel afficher l'emploi du temps" Nothing True (Right $ map (\x -> Choice x Nothing x) $ groupNames c) @@ -77,7 +77,7 @@ edtCommand c = , OptionValueString "day" Nothing - "The day(s) for which the planning is requested (today, tomorrow, week or DD/MM/YYYY)" + "Le(s) jour(s) pour le(s)quel(s) afficher l'emploi du temps (today (aujourd'hui), tomorrow (demain), week (semaine) or JJ/MM/AAAA)" Nothing False (Left False) @@ -106,13 +106,13 @@ edtResponse _ _ = return $ interactionResponseBasic remindCommand :: Maybe CreateApplicationCommand remindCommand = - createChatInput "remind" "reminds you of something later on" + createChatInput "remind" "Crée un rapel pour plus tard" >>= \cac -> return $ cac { createOptions = Just $ OptionsValues - [ OptionValueString "delay" Nothing "delay" Nothing True (Left False) Nothing Nothing - , OptionValueString "message" Nothing "message" Nothing True (Left False) Nothing Nothing - ] + [ OptionValueString "delay" Nothing "délai" Nothing True (Left False) Nothing Nothing + , OptionValueString "message" Nothing "message" Nothing True (Left False) Nothing Nothing + ] } remindResponse @@ -151,9 +151,9 @@ remindResponse (Just (OptionsDataValues opts)) evts ch mou liftIO $ registerRemind rmd return $ interactionResponseBasic - $ "Reminder registered sucessfully for " + $ "Rappel enregistré avec succes pour le " `T.append` T.pack (show remindDateTime) - else return $ interactionResponseBasic "couldn't parse your delay :/" + else return $ interactionResponseBasic "Le délai n'a pas pu être interprété" where parsedOpts = Map.fromList $ map parseOpt opts delay' = @@ -201,7 +201,7 @@ groupResponse c mou gid (Just (OptionsDataValues opts)) restCall $ AddGuildMemberRole gid uid rid return $ interactionResponseBasic - $ "You are now part of group " + $ "Vous faîtes désormait partie du groupe " `T.append` group where group = @@ -221,8 +221,8 @@ helpResponse :: IO InteractionResponse helpResponse = return . interactionResponseBasic - $ "**__Help for Bot IUT__**\n\n" - `T.append` "`/help` shows this help message\n" - `T.append` "`/group ` join a group\n" - `T.append` "`/remind