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:
parent
5016cd8cb3
commit
42be227916
6 changed files with 317 additions and 11 deletions
|
|
@ -2,8 +2,8 @@
|
|||
import { CreateImage } from "./lib/image";
|
||||
|
||||
//const YYMMDD = new Date().toISOString().slice(0, 10).replace(/-/g, "").toString();
|
||||
const YYMMDD = "20250512"
|
||||
console.log(YYMMDD);
|
||||
const YYMMDD = "20250509"
|
||||
//console.log(YYMMDD);
|
||||
|
||||
//Discord("20250509")
|
||||
async function run() {
|
||||
|
|
@ -28,3 +28,15 @@ run();
|
|||
|
||||
// 내일이 1일이면
|
||||
//console.log(tomorrow.getDate());
|
||||
|
||||
|
||||
/*import { VTSList } from "./lib/vts";
|
||||
|
||||
VTSList().then(results => {
|
||||
if (results.length > 0) {
|
||||
console.log("\n5번째 행의 노란색 셀 내용 리스트:");
|
||||
results.forEach(value => console.log(value));
|
||||
} else {
|
||||
console.log("\n5번째 행에서 노란색 배경의 셀을 찾지 못했거나, 'V.T.S.' 조건 불충족.");
|
||||
}
|
||||
});*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue