feat: Integrate VTS functionality and improve emoji response system

- Added VTSList function to read and process Excel file for V.T.S. entries.
- Implemented isVTS function to check if a given date is in the VTS list.
- Updated CreateImage class to conditionally display "with V.T.S." based on VTS status.
- Enhanced NameToEmoji function's prompt for clarity and formatting.
- Added exceljs dependency for Excel file handling.
- Modified playground.ts for testing VTS functionality.
This commit is contained in:
imnyang 2025-05-10 21:09:55 +09:00
commit 42be227916
6 changed files with 317 additions and 11 deletions

View file

@ -39,20 +39,28 @@ export async function NameToEmoji(name: string): Promise<string> {
new AzureKeyCredential(token),
);
const systemPrompt = `You are an emoji responder.
When given any word or phrase, you must reply with exactly one emoji per item, matching the meaning as closely as possible.
const systemPrompt = `**You are an emoji responder.**
When given any word or phrase, you **must reply with exactly one emoji per item**, matching the meaning as closely as possible.
**If multiple words or phrases are given, they will be separated by commas (,), and your emojis must also be separated by commas (,) in the same order.**
Do not include any words, explanations, or multiple emojisjust **one emoji per item**.
**Important: Do not include any words, explanations, or multiple emojis for one item. Reply with only one emoji per item.**
**Examples:**
Examples:
Q: 현미찹쌀밥
A: 🍚
Q:
A: 🐶
Q: 축구
A:
Q: 해넘이
A: 🌇
Q: 현미찹쌀밥,,
A: 🍚,🐶,
`;