Skip to content

Commit

Permalink
Merge pull request #195 from Erk-/autodansk
Browse files Browse the repository at this point in the history
Tilføj autodansk
  • Loading branch information
athas authored Feb 14, 2025
2 parents af06dba + 73b020c commit 58d7562
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions concieggs/cmds/autodansk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
#
# Få oversat din sidste besked til modersmålet!

last=$(lastmsg $EGGS_USER)
set -- $last

if ! [ "$last" ]; then
echo "$EGGS_USER: Jeg kan da ikke huske du har skrevet noget."
else
danish=$(gpt4 $((${#last} + 50)) "Oversæt følgende til dansk, brug kun udelandske ord hvis det er strengt nødvendigt: $last")
echo "$EGGS_USER: På dansk: $danish"
fi

0 comments on commit 58d7562

Please sign in to comment.