{"id":31698975,"url":"https://github.com/kaspar-p/flatnite-bot","last_synced_at":"2025-10-08T19:13:05.686Z","repository":{"id":53722773,"uuid":"333594506","full_name":"kaspar-p/flatnite-bot","owner":"kaspar-p","description":"A surviv.io helpbot. Sends lobby links, records cobalt win combinations, and is cute.","archived":false,"fork":false,"pushed_at":"2021-10-06T23:11:40.000Z","size":997,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T23:02:43.616Z","etag":null,"topics":["bot","discord-bot","surviv"],"latest_commit_sha":null,"homepage":"","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/kaspar-p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-28T00:02:54.000Z","updated_at":"2021-10-06T23:11:43.000Z","dependencies_parsed_at":"2022-08-31T01:02:11.266Z","dependency_job_id":null,"html_url":"https://github.com/kaspar-p/flatnite-bot","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/kaspar-p/flatnite-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaspar-p%2Fflatnite-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaspar-p%2Fflatnite-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaspar-p%2Fflatnite-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaspar-p%2Fflatnite-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaspar-p","download_url":"https://codeload.github.com/kaspar-p/flatnite-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaspar-p%2Fflatnite-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000702,"owners_count":26082805,"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-08T02:00:06.501Z","response_time":56,"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":["bot","discord-bot","surviv"],"created_at":"2025-10-08T19:12:38.293Z","updated_at":"2025-10-08T19:13:05.678Z","avatar_url":"https://github.com/kaspar-p.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flatnite-bot\n\nA surviv.io helpbot. Sends lobby links, records cobalt win combinations, and is cute.\n\n## How to use it\n\nThere are three ignored files, for security:\n\n- **`/auth/ls.js`** is an object that contains all localStorage data downloaded from an authenticated Surviv.io account.\n- **`/auth/cookies.js`** exports an array of objects, each of which has `name`, `value`, and `domain` keys. The three cookies for authentication MUST BE `__cfduid`, `app-sid` and `app-data`. Be sure to copy these from an authenticated Surviv.io account.\n- **`.env`** is the configuration information for a certain discord server. The discord bot's `BOT_TOKEN` and the desired `CHANNEL_ID` live here, as well as an optional `TEST_CHANNEL_ID` for development.\n\nThe system is currently tuned for Linux, but any regular PC can use this by installing the npm `chromedriver` package and using that, rather than the native chromedriver currently used.\n\nThis works well on the author's Mac and Linux machines. Please open an issue if setup is failing with a different configuration.\n\nOnce all that is resolved, just run `npm install \u0026\u0026 npm run flatnite-bot`! Then, the next time someone says \"gaming\" in the desired channel, the bot will create a lobby and send the corresponding link.\n\n## How to test it\n\nBe sure to have a `TEST_CHANNEL_ID` in the `.env` file. Then, run `npm install \u0026\u0026 npm run develop`, and rather than using the production channel, the bot will use the test channel for listening and its responses.\n\n## Future changes\n\n- Use a free database like mongoDB or other in order to separate possible servers, rather than just saving results to the local filesystem.\n- Queue requests for a flatnite link while it is working, so that as soon as it is finished working, it can send one without the user needing to re-request a link.\n- Get the bot to automatically recognize the players playing in the lobby it created, and choose which file to save their dubs under with that.\n- Give flatnite-bot sentience with Deep Q-Learning and let it learn to play the game.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaspar-p%2Fflatnite-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaspar-p%2Fflatnite-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaspar-p%2Fflatnite-bot/lists"}