/WealthyWumpus

A discord bot to play monopoly with

Primary LanguageJavaScriptMIT LicenseMIT

Wealthy Wumpus
Wealthy Wumpus

A Discord bot to play Monopoly in Discord. Made for Discord Hack Week.

Brilliance 8+

Key FeaturesCommandsHow to PlayInstallationCreditsLicense

Key Features

  • Discord and video game themed properties, community chest, and chance cards.
  • Custom Monopoly cards
  • Easily Customizable
    • Add and change properties
    • Add and change Community Chest and Chance cards
  • Object Oriented
  • Flexible
  • Easy to Play
    • Use message reactions instead of typing commands
  • Light Weight
  • Incorporates 99% of rules from the original game
  • Completely playable without any commands

Commands

The most often used commands have message reactions but heres a list of all supported commands that could come in handy.

Command Description Has Reaction
!help Get a list of all supported commands
!prefix [new prefix] Change the server prefix
!create Create a new game in the channel
!stop Ends the game in the channel
!join Join the game
!leave Leave the current game
!start Start the game
!leader [new leader] Change the game leader
!roll Roll the dice
!stats Get info about yourself
!buy Buy the property you are currently on
!end End your turn
!bid [amount|quit] Bid on property or back out
!house Buy a house
!sell [property] {player} {amount} Sell a house on the property or the property to another player
!offer [confirm|deny] Accept or deny an offer from another player
!mortgage [property] Mortgage a property
!unmortgage [property] Unmortgage a property
!property Get a list of all owned property's and how many houses are on it

How to Play

The game follows all original Monopoly rules found here.

The only change made for this bot is that when the player goes bankrupt to the bank (tax or card) the property is not auctioned off, it is instead put back up on the market for anyone to buy when they land on it.

Steps

  1. To start, invite the bot to your server and make sure it has permission to send messages and read channels.
  2. Pick a channel and do !create to make a game.
  3. Friends can join by doing !join in the channel or reacting with 🖐.
  • There is a minimum of 2 players and a maximum of 8 players.
  1. Once you have all your players the leader can do !start or react with the ballet box with check emoji.
  • It will pick a random person to begin.
  1. When its your turn you can react with the 🎲 or the 🏠 (you can do !roll or !house if you prefer). It will roll 2 dice and move you to the new position. The house will attempt to buy a house (see this for buying a house).
  • If you land on unowned property you can react with the ✅ emoji to buy it or react with the 🛑 emoji to auction it (see auctions for more detail).
  • If you land on a Chance card or a Community Chest card your character will do whatever the card says (get money, lose money, move to new position etc.)
  • If you land on go to jail or get a card that moves you to jail you will be moved to jail and your turn will be over (if you rolled doubles you get to roll again). See jail for more info.
  1. Before or after rolling, the player can sell houses, mortgage/unmortgage property, and/or offer property to another player for a specified amount of money. These all must be done through commands. To understand selling houses and property read this. To mortgage and unmortgage property simply do either !mortgage [property name] or !unmortgage [property name].
  2. After you are finished with your turn you can react with 🛑 emoji to move on to the next player.
  3. Repeat until someone goes bankrupt.

Auctions

When property is put up for auction, the player who landed on it begins the auction. Property starts at $0 during an auction and the first player must bid at least $1. You have 4 options for bidding. You can either do !bid [amount] to bid a custom amount or you can react with the 3 emojis. ❌ will take you out of the auction, ⬆ will raise the current bid by $10, and ⏫ will raise the current bid by $100. The auction is over when there is only 1 person left.

Jail

A player can go to jail in 3 ways. Either by getting a card that sends them to jail, landing on the go to jail tile or by rolling doubles 3 times in a row. While in jail the player can still collect rent and can bid on property and accept offers. There are 3 ways a player can get out of jail. Either by having a get out of jail free card (will be used the first turn if you don't roll doubles), by rolling doubles or if you don't roll doubles after 3 turns you will pay $50 and get out of jail.

Buying Houses

In order to buy a house, you have to own all properties in a color group. Once that is done houses must be built evenly across all color groups that you own. Reacting with the 🏠 emoji or doing !house will find the cheapest eligible property and build a house.

Selling Property

To offer property to another player you must sell all houses in that color group (it will tell you if you need to). To sell houses do !sell [property] (you don't need to specify a person or amount). Once there are no more houses on that color group you can do !sell [property] [person] [amount] to offer it to another player. When you offer to the player the bot will notify them and the player can react with ✔ to accept it and pay you for it or ✖ to deny it. They must deny it before they can receive another offer.

Screenshots

Installation

To clone and run this bot, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/Gabolicious/WealthyWumpus.git

# Install dependencies
$ npm install

Inside the repository create botconfig.json and it should look something like this:

{
    "token": "YOUR-BOT-TOKEN",
    "prefixes": {}
}

Note: prefixes will be filled in for you the first time you do a command.

Credits

Close friends who made this possible.

Profile Tag Role
Gabo#1234 Programmer
spoodermank#7336 Graphic Designer
Solid2Hours#0069 Creative Director
halleyman7#4111 Creative Director #2

License

MIT