Skip to content

The game mafia for Rocket League, based on SunlessKhan's YouTube video

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.old
Notifications You must be signed in to change notification settings

daftmaple/rocket-league-mafia-bot

Repository files navigation

Rocket League Mafia Bot

A crappy bot that handles only one match at a time and not persistent

Things to upgrade:

  • 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
  • Handles only 6 players in a match
  • Doesn't store points when bot is restarted

To start the bot in pm2 instance

Since npm package number can only be parsed when running npm script, use this command:

pm2 start npm --name "rlmafiabot" -- start

To start the bot with docker composer

docker-compose up --build --detach

To start the bot with docker (normal)

docker build -t rl-mafia-bot .
docker run --detach --env-file ./.env --name rlmafiabot-container rl-mafia-bot

Note: Docker doesn't ignore quotes (both ' and ") on .env file

Terminating bot

Issue SIGTERM to whatever runs the bot. In Docker, this is equivalent to docker stop rlmafiabot-container.

How it works

A 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.

Scenarios:

  • If you are a mafia and your team loses, you will gain 3 points.
  • If you are a non-mafia, you will gain 1 point if you win.
  • If you vote a mafia (as a non-mafia), you will gain 1 point. Mafia will lose 1 point for each vote.
  • You can't vote for yourself.

About

The game mafia for Rocket League, based on SunlessKhan's YouTube video

Topics

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.old

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published