A comprehensive Google Apps Script utility library that provides various automation tools and integrations for social media management, messaging, calendar operations, and more.
- POST Handler: Manages various POST endpoints including:
- Out-of-office status checker
- GOG 2FA token retrieval
- Telegram bot webhook handler
- Custom command handling
- Message sending capabilities
- Photo sharing functionality
- Traffic monitoring and reporting
- Real-time CCTV image capture
- Automated posting to LinkedIn and Facebook via Zapier
- Support for text, images, and links
- Customizable post scheduling
- Property management advertising automation
- Calendar integration for out-of-office status
- Gmail integration for email parsing
- Google Maps integration for traffic estimates
- Screenshot service integration
- Automatic giveaway entry
- Point tracking
- XSRF token management
doPost.ts: Main API endpoint handlertelegram_handler.ts: Telegram bot command processorresponder_helper.ts: API response formatter
google_calendar_helper.ts: Calendar operationsgoogle_maps_client.ts: Maps API integrationgmail_helper.ts: Email operationsscreenshot_service.ts: Web screenshot capturesteam_gifts_lib.ts: Steam giveaway automation
time_utils.ts: Time manipulation utilitiesurl_string_helper.ts: URL manipulationurl_fetch_app_helper.ts: HTTP request wrapper
run_ads_manager.ts: Advertisement automationrun_majelic_point_ads_worker.ts: Property-specific ad workerrun_spring_wood_ads_worker.ts: Property-specific ad workersteam_gifts_worker.ts: Steam giveaway automation
- Clone or fork this repository
- Install clasp on your local machine:
npm install -g @google/clasp
- Configure clasp with your Google account
- Copy
.clasp.json.exampleto.clasp.jsonand update with your configuration - Push to Google Apps Script:
clasp push
The following script properties need to be set in your Google Apps Script project:
api_secret_token: API authentication tokencalendar_id: Google Calendar IDscreendot_token: Screendot API tokentelegram_bot_token: Telegram Bot API tokenlinkedin_zapier_token: LinkedIn Zapier integration tokenfacebook_zapier_webhook_url: Facebook Zapier webhook URLlinkedin_zapier_webhook_url: LinkedIn Zapier webhook URLsteam_gifts_token: Steam Gifts authentication tokenmaps_token: Google Maps API token
To automate the workers using Google Apps Script triggers:
- Open your Google Apps Script project
- Navigate to "Triggers" in the left sidebar
- Click "+ Add Trigger" button
- Configure triggers for each worker:
Function: runAdsManager
Event source: Time-driven
Type: Day timer
Time: Select preferred time (e.g., "6 AM to 7 AM")Function: runMajelicPointAdsWorker
Event source: Time-driven
Type: Week timer
Time: Select preferred day and time
Function: runSpringWoodAdsWorker
Event source: Time-driven
Type: Week timer
Time: Select preferred day and timeFunction: steamGiftsWorker
Event source: Time-driven
Type: Hour timer
Select hours: Every 1 hour- Click "Save" for each trigger
- Verify trigger status in the Triggers dashboard
POST /
{
"path": "IS_TODAY_OUT_OF_OFFICE | GOG_TOKEN | TELEGRAM_BOT_WEBHOOK",
"secretToken": "your-secret-token",
"data": {}
}/time: Get current time/test-ss: Test screenshot functionality/work: Get traffic predictions and CCTV images
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you find my work helpful, consider supporting me:
**Bitcoin Address:** `32Ja5bcaAAYXFjKCRmcYe3SM2RsSUCmXtQ`
