{"id":23542443,"url":"https://github.com/android-sms-gateway/example-discord-forwarder-fn","last_synced_at":"2026-04-17T12:32:54.176Z","repository":{"id":269676474,"uuid":"908035834","full_name":"android-sms-gateway/example-discord-forwarder-fn","owner":"android-sms-gateway","description":" A Cloud Function to seamlessly forward SMS messages from SMS Gateway for Android™ to a Discord server using webhooks. ","archived":false,"fork":false,"pushed_at":"2024-12-25T08:42:39.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-17T09:21:51.926Z","etag":null,"topics":["cloud","discord","forwarder","functions","javascript","nodejs","sms","smsgateway","webhooks"],"latest_commit_sha":null,"homepage":"https://sms-gate.app","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/android-sms-gateway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-25T00:03:22.000Z","updated_at":"2024-12-25T08:47:54.000Z","dependencies_parsed_at":"2024-12-25T09:38:25.453Z","dependency_job_id":null,"html_url":"https://github.com/android-sms-gateway/example-discord-forwarder-fn","commit_stats":null,"previous_names":["android-sms-gateway/example-discord-forwarder-fn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-sms-gateway%2Fexample-discord-forwarder-fn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-sms-gateway%2Fexample-discord-forwarder-fn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-sms-gateway%2Fexample-discord-forwarder-fn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-sms-gateway%2Fexample-discord-forwarder-fn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android-sms-gateway","download_url":"https://codeload.github.com/android-sms-gateway/example-discord-forwarder-fn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283349,"owners_count":22045141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","discord","forwarder","functions","javascript","nodejs","sms","smsgateway","webhooks"],"created_at":"2024-12-26T06:12:06.348Z","updated_at":"2026-04-17T12:32:49.137Z","avatar_url":"https://github.com/android-sms-gateway.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example Discord Forwarder Function\n\nThis repository contains a Cloud Function designed to forward incoming SMS messages received through the [SMS Gateway for Android™](https://github.com/capcom6/android-sms-gateway) Webhooks to a Discord Webhook.\n\n## Prerequisites\n\n- Node.js installed on your machine\n- SMS Gateway installed on your device in any mode: Local, Cloud or Private\n- A Discord Server with Webhook registered as described at https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks\n\n## Getting Started\n\n1. Clone this repository to your local machine.\n2. Install the required dependencies by running `npm install`.\n3. Set up your environment variables to include:\n   - `API_KEY`: Random value, which will be passed to cloud function in `apiKey` query parameter from webhook.\n   - `WEBHOOK_URL`: Discord Webhook URL.\n4. Deploy the function to your preferred cloud provider. You might need to make some changes to the source code, please consult with your cloud provider documentation.\n5. [Register webhook in SMS Gateway](https://docs.sms-gate.app/getting-started/webhooks/) with the URL of your deployed function adding `?apiKey=YOUR_API_KEY` query parameter.\n\n## Environment Variables\n\nEnsure you have the following environment variables set up:\n\n- `API_KEY`: Random value, which will be passed to cloud function in `apiKey` query parameter from webhook for security purposes.\n- `WEBHOOK_URL`: Discord Webhook URL.\n\n## Usage\n\nThe function is triggered by incoming webhook events from SMS Gateway. When an SMS message is received, the function validates the API key, processes the message, and forwards it to the specified Discord webhook.\n\n## Contributing\n\nContributions are welcome! Feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid-sms-gateway%2Fexample-discord-forwarder-fn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid-sms-gateway%2Fexample-discord-forwarder-fn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid-sms-gateway%2Fexample-discord-forwarder-fn/lists"}