Skip to content

Mafia

A social deduction game for 5 to 25 players, with five stories, its own temporary channels and private panels for every role.

Dashboard
Dashboard › Games, then the Mafia tab
Commands
/mafia
You need
Manage Events to start or schedule a game. Manage Server for settings.
Element needs
View Channel, Send Messages, Read Message History, Attach Files, Add Reactions, Use Application Commands, Manage Channels, Manage Roles and Manage Threads. Manage Channels and Manage Roles are for the game's own channels.
Plans
More games at once, more stories, scheduled games and the Corkboard picture look. See plans

What it does

Mafia is a game of hidden sides. A few players are secretly on the bad side, and the rest are on the good side. Each night the bad side kills one good player. By day everyone talks, then votes one player out. The good side wins when every bad player is out. The bad side wins when it matches the good side in number.

Element runs the whole game. It makes a temporary game channel and a private channel for the bad side, deals the roles, keeps the timers and posts every result. Your role, your night job and your vote live in a private panel that updates as you play.

Why use it

It is a game for a group that wants to talk, argue and work things out. Anyone can join in a few seconds, night 1 is quiet so everybody can read their role first, and a short How to play card is on every screen. It suits a regular game night, and a game of 8 takes about 12 minutes.

Stories

A story changes the scene and the names. The roles and rules stay the same.

StoryGood sideBad sidePlan
Thieves in the CaravanTravellersThievesFree
Spies in the FortressDefendersSpiesFree
Saboteurs in the LabScientistsSaboteursBasic
Rivals in the KitchenCooksRivalsBasic
Smugglers on the ShipSailorsSmugglersPremium

At night the bad side kills someone, in each story's own plain words. A vote sends someone out in the story's own way: in the Caravan they are left at the oasis, and on the Ship they are put ashore at the next port. Nothing is graphic.

A server can pick one story, or Random to draw one from the stories its plan has. The host can change the story for a single game.

Start a game

  1. Open the dashboard, pick your server and go to Games, then the Mafia tab.
  2. Set the server's defaults: story, roles, timers, who can join and where games play.

Games themselves start in Discord.

How a game runs

  1. The lobby. It shows the story, the players who joined and the teams. The lobby shows how many players it needs (5 or more players), and it closes with a note if not enough join.
  2. The deal. Element makes the two channels, deals every role in secret and pings the players. Everyone presses My role to read theirs. The bad side meets in its own channel.
  3. Night 1 is quiet. It lasts at least a minute, so everyone can read their role. Nobody is killed. The Scout checks one player.
  4. Morning. Element says who was lost in the night, or that everyone woke up safe. The game channel opens and players talk.
  5. The vote. Each player presses Vote and picks someone, or Nobody, in a private choice. The most-voted player is out. Votes can be changed until the vote closes.
  6. Night again. The bad side picks someone to kill, the night roles act, and the round repeats until one side wins.

A round is a night (60 seconds), talk (2 minutes) and a vote (1 minute). Each part can end early: talk when more than half the players still in press Ready to vote, night (from night 2) once every night job is done, and the vote once everyone has voted. The end screen shows every role and a night-by-night story of the game.

How votes work

  • Someone is out only if they have the most votes and at least 2 people voted for them.
  • If Nobody gets as many votes as the top player, or two players tie, nobody is out.
  • A player who goes out is shown with their role, unless the server has turned that off.
  • Three quiet rounds in a row, with nobody out, end the game as a draw.

Away and leaving

A player who misses 2 votes in a row leaves the game, and is warned after the first miss. Voting Nobody counts as voting. A player can also press Leave game on their panel. A host can kick a player, but a kick never decides the game: if it would, the game ends with no winner.

Roles

RoleSideWhat they do
Plain playerGoodTalks and votes
Bad playerBadPicks one good player with the team each night
ScoutGoodChecks one player each night and sees their side
GuardGoodWatches one player. If the bad side picks them, nobody is out
BossBadA bad player who looks clean when a Scout checks them
TrackerGoodFollows one player and sees whose place they went to
MayorGoodCan reveal once by day, then their vote counts twice
WitnessGoodWatches one player's place and sees who came to it

Each story renames them. In the Caravan the Scout stays the Scout, the Guard is the Guard, the Boss is the Master Thief, the Mayor is the Caravan Leader and the Witness is the Camel Herder. Fortress, Lab, Kitchen and Ship each have their own names, shown on every panel.

The Scout and the Boss. The bad side knows each other, but nobody else knows anyone's role. When a Boss is in the game, a clean check isn't proof, and Element says so on the Scout's card.

The Mayor is secret until they press Reveal. Then Element tells the channel. A Mayor alone can't put anyone out, because at least 2 people must vote for the same player.

Extra roles

The Guard, Tracker, Mayor, Boss, Witness and a second Scout are switches in the server's settings. The Guard and the Mayor are on by default. Each needs a minimum number of players, and a role that is on but below its minimum is left out of that game. The welcome notes a left-out Boss, Tracker, Mayor, Witness or second Scout. The Guard simply isn't dealt below its minimum, with no note.

RoleNeeds
Guard, Tracker, Mayor7 or more players
Boss9 or more players, and 2 or more bad players
Witness12 or more players
Second Scout17 or more players

Every role is free on every plan.

How many are on the bad side

The host sets this on the setup panel. It is Auto by default: about one bad player for every 5 in the game, and always fewer than a third of the players. The host can instead pick 1 to 8, and a number too big for the players who joined is cut down to fit.

The channels Element makes

Each game gets two temporary channels, both made and deleted by Element:

  • The game channel is where the game is played. Who can talk is set by channel permissions, changed once per phase: closed at night and open by day.
  • The bad side's channel is where the bad side meets and picks.

By default the game channel goes right below the channel where the game started. Servers can choose a category, or a spot below a channel, in the settings. They can also choose who watches: anyone who can see the start channel (they can read but not talk), or only the players.

Watchers never see the bad side's channel. Only the server owner and members with Administrator can read it, and staff with View Audit Log can see who was given access to it. When the game ends, the bad side's channel opens read-only to the players, unless the server turns that off.

Element deletes both channels 5 minutes after the game (a setting, 1 to 60), or 1 minute after the host presses Clean up. There is no transcript. The lobby message turns into a result card in the start channel and stays.

If another bot or AutoMod guards your channels

If another bot guards your channels, allow Element to make and delete channels. If your AutoMod blocks words like kill or poison, exempt Element's role. Otherwise Element switches that game to plain lines, such as "Zinc is out."

Example game

Rayyan hosts a game of 8 in the Caravan. Zinc and Neon are the thieves, Silver is the Scout and Copper is the Guard. On night 1, Silver checks Zinc and sees that Zinc's bag holds stolen goods. In the morning Silver says they have a strong feeling about Zinc, and the vote puts Zinc out: the caravan leaves Zinc at the oasis, and Zinc was a Thief. On night 2, Neon picks Silver, but Copper is watching Silver's tent, so nobody is out. Silver checks Neon and the vote sends Neon out too. No thief is left, so the Travellers win.

Schedules

/mafia schedule opens the same setup panel with Schedule game. Pick a time from 1 minute to 7 days ahead, in your timezone. The lobby opens at once so players can join early, and it holds the channel until the game starts. Element makes the channels only at the start time, so a cancelled schedule leaves nothing behind.

Settings

/mafia settings (Manage Server) opens a private panel, and the dashboard has the same settings. They are the server's defaults. The host can change the story, the number on the bad side, the maximum players and the lobby, night, talk and vote times for one game when they start it.

  • Where games play: below the start channel, in a category, or below a channel.
  • Who can watch: anyone who can see the start channel, or only the players.
  • Story: one of the five, or Random.
  • Bad side: Auto, or 1 to 8 players.
  • Roles: switches for the Guard, Boss, Tracker, Mayor, Witness and Second Scout.
  • Show role when out: reveal a player's role when they go out. On by default. A kicked player's role is never shown.
  • Show every ballot: list who voted for whom at each vote. Off shows only the counts.
  • Open bad side at end: let every player read the bad side's channel until it is deleted.
  • Missed votes before leaving: off, or 1, 2 or 3 in a row. The default is 2.
  • Timers: lobby (30 seconds to 15 minutes), night (30 to 180 seconds), talk (30 to 600 seconds), vote (30 to 180 seconds) and cleanup (1 to 60 minutes).
  • Players: the minimum (5 or more) and maximum (up to 25). The default maximum is 16.
  • Entry roles, blocked roles and lobby ping role: who can join, who can't, and who gets pinged when a lobby opens.
  • Picture theme: Classic and Onyx, or Corkboard on Premium.

Night 1 always lasts at least a minute, even if the night timer is shorter. If a server drops to a lower plan, nothing is deleted: a saved story or theme that needs a higher plan plays as the free one until the plan returns.

Commands

CommandWhat it doesYou need
/mafia startOpen a Mafia lobby in this channelManage Events
/mafia scheduleOpen a lobby that starts at a set timeManage Events, Basic plan
/mafia panelReopen the host panel for the game hereThe host, or Manage Server
/mafia settingsChange this server's Mafia defaultsManage Server

The host panel lets the host start early, cancel a lobby, kick a player or end the game. Clean up is on the end message in the game channel. Only the host can use slash commands in the game channel, and only while they can talk, so use the start channel at night.

Limits

FreeBasicPremium
Games at once123
Players in a game5 to 255 to 255 to 25
StoriesCaravan, FortressPlus Lab and KitchenPlus Ship
Extra rolesYesYesYes
Scheduled gamesNoYesYes
Picture looksClassic, OnyxClassic, OnyxClassic, Onyx, Corkboard

A lobby, a scheduled lobby and a running game each count towards the games at once.

Common problems

  • "I can't make channels in the ... category". Element needs the permissions the message lists in that category, such as Manage Channels and Manage Permissions. Ask an admin to give them, or pick another place in /mafia settings.
  • "The ... category is full". Each game needs 2 free spots. Delete a channel there, or pick another place in /mafia settings.
  • Not enough players joined. The lobby shows how many players it needs (5 or more players), and it closes with a note if not enough join.
  • A story is locked. "Saboteurs in the Lab needs Basic." The game plays Thieves in the Caravan until the plan returns.
  • A role is missing from a game. It is on, but the game had fewer players than its minimum. The welcome says which, except for the Guard, which is left out with no note.
  • A game is already running. You have reached the games-at-once limit for your plan, or the start channel is busy. Let one finish, or use another channel.

Turn it off or reset it

Games only run when someone starts one. The host can cancel a lobby or stop a game from the host panel, and Clean up deletes the channels early. To choose who can run Mafia commands, and where, use command rules.