What's a good number of people who are mafia compared to citizens? I made now that max 25% of all users can be mafia EDIT: for those who haven't noticed, atm MafiaBot is running on #omnimaga-spam for some testing usage (need to program a help section, lol (if you are on OmnomIRC replace /msg MafiaBot with /msg Sorunome): general: creating new account: /msg MafiaBot new user <username> <password> logging in: /msg MafiaBot login <username> <password> logging out: /msg MafiaBot logout
joining game (not working if a game is running): joining: >join leaving: >leave display users joined: >users start the game: >start
in-game: find out username of irc nick: /msg MafiaBot whois <nick> >whois <nick> find out irc nick of username: /msg MafiaBot whoisirc <nick> >whoisirc <nick> your role: /msg MafiaBot whoami night (mafia only): Display users: /msg MafiaBot users Vote for user to be killed: /msg MafiaBot vote <user> Display number of votes: /msg MafiaBot votes <user> day (everyone): Display users: >users Vote for user to be killed: >vote <user> Display number of votes: >votes <user>
things to add: changing username, changing password, deleting account, cool stuff
Online on #omnimaga-games So, what is it about? It's all about playing mafia! If you don't know the game then check out http://en.wikipedia.org/wiki/Mafia_(game) Now, this bot plays the game manager/narrator. So now, how do I use this bot?
Spoiler For Commands:
Command
Description
new user
Creates a new user: /msg MafiaBot new user <username> <password>
login
Logs into a account: /msg MafiaBot login <username> <password>
logout
Logs out: /msg MafiaBot logout
set password
Changes password: /msg MafiaBot set password <oldpasswd> <newpasswd>
set username
Changes username: /msg MafiaBot set username <newUsername>
set email
Sets a email to a account: /msg MafiaBot set email <email>
recoverpasswd
Recovers a password of a account via email: /msg MafiaBot recoverpasswd <username>
whois
Returns which username has the irc user: (/msg MafiaBot whois|>whois) <nickOnIRC>
whoisirc
Returns irc user has the username: (/msg MafiaBot whois|>whois) <nickForBot>
whoami
Returns your user role: /msg MafiaBot whoami
users
Returns the users which have currently joined the game: (/msg MafiaBot users|>users)
vote
Vote for a person to be killed (pm mafia only at night): (/msg MafiaBot vote|>vote) <username>
votes
Returns the current votes for someone (pm mafia only at night): (/msg MafiaBot votes|>votes) <username>
voted
Returns the users which already have voted: >voted
notvoted
Returns the uers which haven't voted yet: >notvoted
bomb
Bombs a person, terrorist only. You will die too: >bomb <username>
save
Save a person at night (doctor only): /msg MafiaBot save <username>
join
Joins the game, only possible if not in-game: >join
leave
Leaves the game, only possible if not in-game: >leave
start
Starts a game with <args> special users, seperated with comma (,): >start <args>
specialCharacters
If in-game it displays the special characters used, else the ones available. >specialCharacters
time
Outputs the current time (day/night): >time
So, now that we have all commands it would be awesome to know each character:
Spoiler For Characters:
Character
Description
Citizen
You are citizen, you can just vote at day who to kill, your goal is to kill all mafia.
Detective
You are detective, part of the citizen community. During night you can find out who is mafia and who not.
Doctor
You are doctor, part of the citizen community. During night you can save a person from death, but you don't know who will die.
Justin
You are justin. If you manage to be killed in the first round you win the game, otherwise you are a normal citizen.
Hunter
You are hunter, part of the citizen community. If you are killed you can kill immidatley one other person.
Gardener
You are gardener, part of the citizen community. If the detective spys on you he thinks you are for the mafia.
Fool
You are fool, your own party. If you are killed in the night you don't die, you are 'sharpened'. If you are voted to death during day and are 'sharpened' you win. If you die in other ways you lose.
Freemason
You are a freemason, part of the citizen community. You know all other freemasons and know for sure that they are not mafia.
Matchmaker
You are matchmaker, part of the citizen community. During nighttimes must choose two people and it returns if they are in the same group or not.
Mafia
You are mafia. Your gole is it to kill all citizens. You can kill a citizen at nighttime!
Terrorist
You are terrorist, part of the mafia community. You can't vote during night-time as the other mafia, you don't even know who the other mafia is. The other mafia also don't know who you are. During daytime you can bomb a person, that person will die immediately, so will you.
Godfather
You are godfather, part of the mafia community. If the detective spys on you he thinks you are for the citizens.
About starting the game - I tried to make it as user-friendly as possible so when starting the game you can choose which special characters to use. You have to have at least 4 users joined the game to be able to start it. Then, you can type ">start" to start without any special characters, or, if you prefer with special characters you can do stuff like this (now for doctor and detective as special characters) ">start doctor,detective". If you enter some stuff invalid like to many special characters etc. it will only display that it is invalid, not why, as that would have been a LOT more complex. If your type-lazy you can also only type the first three letters of a character, so for doctor and detective it would be ">start doc,det".
Admin-stuff: MafiaBot features also a user-right system, it is only there to prevent if someone blocks a game or something like that.
Spoiler For admin-commands:
Command
Description
set admin
Sets a person as admin. Admin only: /msg MafiaBot set admin (true|false) <user>
kick
Kicks a user if not in-game. Admin only: >kick <user>
quitgame
Quits the current game. Admin only: >quitgame
So, have fun playing mafia! And if you have any problems or found any bug feel free to email me!
Spoiler For original message:
My entry for coding battles is....a mafia bot! Yes, the classic game mafia. It will manage everything. Just thought I'll post this so that no one will steal my idea
I am a bug Well, I noticed that I was 5 times in the list, 4 of 'em from irc, but I was just twice on irc, and the irc ones were all named "Sorunome_" instead of "Sorunome"
Just noticed that on a topic from the minus world the links for quotes don't appear correctly. I don't know if it has to do with the minus world or not, but i think it does.