{"id":18555764,"url":"https://github.com/infinitybotlist/webhook-server","last_synced_at":"2025-05-15T13:10:30.911Z","repository":{"id":149365973,"uuid":"616792426","full_name":"InfinityBotList/Webhook-Server","owner":"InfinityBotList","description":"Simple Fastify Server for logging our Vote Webhooks","archived":false,"fork":false,"pushed_at":"2023-03-31T07:01:53.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T11:31:50.011Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InfinityBotList.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"InfinityBotList","patreon":"infinitybots"}},"created_at":"2023-03-21T04:52:36.000Z","updated_at":"2024-06-01T16:15:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef2b7b51-337f-4901-9896-aa0a7e215930","html_url":"https://github.com/InfinityBotList/Webhook-Server","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2FWebhook-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2FWebhook-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2FWebhook-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2FWebhook-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfinityBotList","download_url":"https://codeload.github.com/InfinityBotList/Webhook-Server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346626,"owners_count":22055809,"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":[],"created_at":"2024-11-06T21:27:53.461Z","updated_at":"2025-05-15T13:10:30.887Z","avatar_url":"https://github.com/InfinityBotList.png","language":"JavaScript","funding_links":["https://github.com/sponsors/InfinityBotList","https://patreon.com/infinitybots"],"categories":[],"sub_categories":[],"readme":"# Webhook Server Sample\nSimple Fastify Server for logging our Vote Webhooks\n\n---\n\n## Setup\n\n### Step 1\n- Open and edit the config.js file using the table below as a reference!\n\n| Value            | Description                        | Example                                 |\n| :---             |                           :----:   |                                    ---: |\n| `hook_secret`    | Your webhook secret                | `InfinityBotsTest_2022`                 |\n| `bot_token`      | Discord Client Token               | `Found in the Discord Dev Portal`       |\n| `domain`         | The domain for the Server          | `https://votes.infinitybots.gg`         |\n| `guildID`        | Discord Server ID for Logs         | `758641373074423808`                    |\n| `voteLogs`       | Channel ID in the Server Above     | `998714340326781049`         |\n| `port`           | The port the Server will run on    | `4223`                                  |\n\n\u003e NOTE: If you are using `railway`, or `heroku` for hosting the port should be set to `process.env.PORT` to allow them to dynamically assign ports. You should set this on line 38 of the `src/sever/index.js` file!  \n\n**NOTE:** Webhook Secret should also be set in the settings/edit section for your bot on our website (shown below)\n\n**NOTE:** Webhook URL shown below should be \n- `https://yourdomain.com/hooks/v1/votes/` for v1 webhooks\n- `https://yourdomain.com/hooks/v2/votes` for v2 webhooks\n\n\n![Imgur](https://i.imgur.com/QBHiQVC.png)\n\n### Step 2 \nRun the server using the following\n\n- `npm install` - Install required modules\n- `npm start` - for production startup\n- `npm run dev` - for development startup\n\n---\n\n## Deployment\n\n### Heroku\n\u003ca href=\"https://dashboard.heroku.com/new?template=https://github.com/InfinityBotList/Webhook-Server/tree/master\"\u003e\n  \u003cimg src=\"https://www.herokucdn.com/deploy/button.svg\" alt=\"Deploy\"\u003e\n\u003c/a\u003e\n\n### Railway\n\u003ca href=\"https://railway.app/template/wZBSMc?referralCode=ca8amY\"\u003e\n  \u003cimg src=\"https://railway.app/button.svg\" alt=\"Deploy\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitybotlist%2Fwebhook-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitybotlist%2Fwebhook-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitybotlist%2Fwebhook-server/lists"}