{"id":22923881,"url":"https://github.com/daftmaple/rocket-league-mafia-bot","last_synced_at":"2025-08-12T12:31:36.197Z","repository":{"id":40705052,"uuid":"271798290","full_name":"daftmaple/rocket-league-mafia-bot","owner":"daftmaple","description":"The game mafia for Rocket League, based on SunlessKhan's YouTube video","archived":false,"fork":false,"pushed_at":"2023-03-05T22:46:04.000Z","size":450,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-09T23:21:24.638Z","etag":null,"topics":["discord","discord-bot","mafia","rocket-league"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/daftmaple.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}},"created_at":"2020-06-12T12:55:08.000Z","updated_at":"2023-03-09T23:21:24.638Z","dependencies_parsed_at":"2023-02-08T03:31:27.552Z","dependency_job_id":null,"html_url":"https://github.com/daftmaple/rocket-league-mafia-bot","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daftmaple%2Frocket-league-mafia-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daftmaple%2Frocket-league-mafia-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daftmaple%2Frocket-league-mafia-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daftmaple%2Frocket-league-mafia-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daftmaple","download_url":"https://codeload.github.com/daftmaple/rocket-league-mafia-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229679217,"owners_count":18106420,"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":["discord","discord-bot","mafia","rocket-league"],"created_at":"2024-12-14T08:17:48.069Z","updated_at":"2024-12-14T08:17:48.583Z","avatar_url":"https://github.com/daftmaple.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocket League Mafia Bot\n\nA crappy bot that handles only one match at a time and not persistent\n\nThings to upgrade:\n\n- ~~There can be only one match per bot (will be refactored to one match per channel, or even per host)~~ Now supports one party per channel\n- Handles only 6 players in a match\n- Doesn't store points when bot is restarted\n\n## To start the bot in pm2 instance\n\nSince npm package number can only be parsed when running npm script, use this command:\n\n```sh\npm2 start npm --name \"rlmafiabot\" -- start\n```\n\n## To start the bot with docker composer\n\n```sh\ndocker-compose up --build --detach\n```\n\n## To start the bot with docker (normal)\n\n```sh\ndocker build -t rl-mafia-bot .\ndocker run --detach --env-file ./.env --name rlmafiabot-container rl-mafia-bot\n```\n\nNote: Docker **doesn't** ignore quotes (both `'` and `\"`) on `.env` file\n\n## Terminating bot\n\nIssue `SIGTERM` to whatever runs the bot. In Docker, this is equivalent to `docker stop rlmafiabot-container`.\n\n## How it works\n\nA game can be created from a party that consists of 6 players. Once a game starts, these players will be split into two teams, and only 1 player will be assigned the mafia role.\n\nScenarios:\n\n- If you are a mafia and your team loses, you will gain 3 points.\n- If you are a non-mafia, you will gain 1 point if you win.\n- If you vote a mafia (as a non-mafia), you will gain 1 point. Mafia will lose 1 point for each vote.\n- You can't vote for yourself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaftmaple%2Frocket-league-mafia-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaftmaple%2Frocket-league-mafia-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaftmaple%2Frocket-league-mafia-bot/lists"}