Refactor bot logic and add tests for file uploads
Refactored src/index.js to modularize and simplify Telegram file and photo upload handling to Google Drive. Enhanced Google authentication and file upload logic, improved error handling, and added unit tests in test/index.test.js. Updated package.json with metadata and made the package public. Adjusted wrangler.jsonc to set CPU limits and add environment variables.
This commit is contained in:
1 parent
651a7a03ea
commit
79a25966d4
4 files changed
+230
-229
No files matched your search
@@ -5,6 +5,9 @@
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"compatibility_date": "2025-07-03",
|
||||
"limits": {
|
||||
"cpu_ms": 10000
|
||||
},
|
||||
"main": "src/index.js",
|
||||
"name": "gdrive-upload-robot",
|
||||
"observability": {
|
||||
@@ -12,5 +15,8 @@
|
||||
},
|
||||
"placement": {
|
||||
"mode": "smart"
|
||||
},
|
||||
"vars": {
|
||||
"ENVIRONMENT": "production"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user