{"id":21457755,"url":"https://github.com/deputyryan32/dm-serverstatuspingfivem","last_synced_at":"2025-10-29T08:06:46.643Z","repository":{"id":263700489,"uuid":"891216599","full_name":"deputyryan32/DM-ServerStatusPingFiveM","owner":"deputyryan32","description":"Sends periodic pings to a status logger endpoint like BetterStack.","archived":false,"fork":false,"pushed_at":"2025-01-15T01:12:29.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T20:03:12.363Z","etag":null,"topics":["fivem","lua","ping","script","status","status-active","status-connected","url"],"latest_commit_sha":null,"homepage":"https://www.deputymods.com","language":"Lua","has_issues":true,"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/deputyryan32.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-11-19T23:53:15.000Z","updated_at":"2025-01-15T01:12:30.000Z","dependencies_parsed_at":"2025-03-17T04:20:56.356Z","dependency_job_id":null,"html_url":"https://github.com/deputyryan32/DM-ServerStatusPingFiveM","commit_stats":null,"previous_names":["deputyryan32/dm-serverstatuspingfivem"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/deputyryan32/DM-ServerStatusPingFiveM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deputyryan32%2FDM-ServerStatusPingFiveM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deputyryan32%2FDM-ServerStatusPingFiveM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deputyryan32%2FDM-ServerStatusPingFiveM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deputyryan32%2FDM-ServerStatusPingFiveM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deputyryan32","download_url":"https://codeload.github.com/deputyryan32/DM-ServerStatusPingFiveM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deputyryan32%2FDM-ServerStatusPingFiveM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281584979,"owners_count":26526171,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fivem","lua","ping","script","status","status-active","status-connected","url"],"created_at":"2024-11-23T06:06:51.253Z","updated_at":"2025-10-29T08:06:46.627Z","avatar_url":"https://github.com/deputyryan32.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DM-ServerStatusPingFiveM\n\n**DM-ServerStatusPingFiveM** is a FiveM script designed to enhance your server's uptime monitoring by pinging a status logger endpoint (e.g., BetterStack) and sending notifications to a Discord channel. This ensures your server status is always accurately monitored.\n\n---\n\n## Features\n- **Ping Status Logger**: Automatically pings a provided URL at regular intervals for uptime tracking.\n- **Discord Integration**: Sends status notifications to a Discord Webhook.\n- **Alternating Pings**: Alternates between sending pings to the logger endpoint and Discord notifications.\n- **Configurable Intervals**: Easily adjust the ping frequency in the configuration file.\n- **Custom Headers**: Supports custom headers (e.g., API tokens) for added flexibility.\n- **Lightweight**: Minimal resource impact on your server.\n\n---\n\n## Installation\n\n1. **Download and Extract**: \n   - Download the script and place the folder `DM-ServerStatusPingFiveM` into your `resources` directory.\n\n2. **Configure**:\n   - Open the `config.lua` file.\n   - Replace `Config.StatusLoggerURL` with your status logger endpoint (e.g., BetterStack heartbeat URL).\n   - Replace `Config.DiscordWebhookURL` with your Discord Webhook URL.\n   - Adjust `Config.PingInterval` (in milliseconds) to set the frequency of pings. Default is 1 minute (`60000` ms).\n   - Add or modify headers in `Config.StatusLoggerHeaders` and `Config.DiscordHeaders` if required.\n\n3. **Add to Server Configuration**:\n   - Open your `server.cfg` file.\n   - Add the following line:\n     ```\n     ensure DM-ServerStatusPingFiveM\n     ```\n\n4. **Start the Server**: \n   - Start your FiveM server to initialize the script.\n\n---\n\n## Notes\n- The script alternates between sending pings to the status logger and Discord notifications to optimize efficiency.\n- Ensure the URLs and tokens provided in the `config.lua` file are valid and active.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeputyryan32%2Fdm-serverstatuspingfivem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeputyryan32%2Fdm-serverstatuspingfivem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeputyryan32%2Fdm-serverstatuspingfivem/lists"}