MafiaBot - A IRC bot to play mafia

Pages: (1/10) > >>

Sorunome:

MafiaBot
--
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:
--
CommandDescriptionnew userCreates a new user: /msg MafiaBot new user <username> <password>loginLogs into a account: /msg MafiaBot login <username> <password>logoutLogs out: /msg MafiaBot logoutset passwordChanges password: /msg MafiaBot set password <oldpasswd> <newpasswd>set usernameChanges username: /msg MafiaBot set username <newUsername>set emailSets a email to a account: /msg MafiaBot set email <email>recoverpasswdRecovers a password of a account via email: /msg MafiaBot recoverpasswd <username>whoisReturns which username has the irc user: (/msg MafiaBot whois|>whois) <nickOnIRC>whoisircReturns irc user has the username: (/msg MafiaBot whois|>whois) <nickForBot>whoamiReturns your user role: /msg MafiaBot whoamiusersReturns the users which have currently joined the game: (/msg MafiaBot users|>users)voteVote for a person to be killed (pm mafia only at night): (/msg MafiaBot vote|>vote) <username>votesReturns the current votes for someone (pm mafia only at night): (/msg MafiaBot votes|>votes) <username>votedReturns the users which already have voted: >votednotvotedReturns the uers which haven't voted yet: >notvotedbombBombs a person, terrorist only. You will die too: >bomb <username>saveSave a person at night (doctor only): /msg MafiaBot save <username>joinJoins the game, only possible if not in-game:  >joinleaveLeaves the game, only possible if not in-game: >leavestartStarts a game with <args> special users, seperated with comma (,): >start <args>specialCharactersIf in-game it displays the special characters used, else the ones available. >specialCharacterstimeOutputs the current time (day/night): >time
--

--

--
So, now that we have all commands it would be awesome to know each character:
Spoiler for Characters:
--
CharacterDescriptionCitizenYou are citizen, you can just vote at day who to kill, your goal is to kill all mafia.DetectiveYou are detective, part of the citizen community. During night you can find out who is mafia and who not.DoctorYou are doctor, part of the citizen community. During night you can save a person from death, but you don't know who will die.JustinYou are justin. If you manage to be killed in the first round you win the game, otherwise you are a normal citizen.HunterYou are hunter, part of the citizen community. If you are killed you can kill immidatley one other person.GardenerYou are gardener, part of the citizen community. If the detective spys on you he thinks you are for the mafia.FoolYou 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.FreemasonYou are a freemason, part of the citizen community. You know all other freemasons and know for sure that they are not mafia.MatchmakerYou 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.MafiaYou are mafia. Your gole is it to kill all citizens. You can kill a citizen at nighttime!TerroristYou 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.GodfatherYou 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:
--
CommandDescriptionset adminSets a person as admin. Admin only: /msg MafiaBot set admin (true|false) <user>kickKicks a user if not in-game. Admin only: >kick <user>quitgameQuits 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 :P

--

--

--


ruler501:

Dang thats close to the idea I'm still coming up with. I'll make sure its different though. Good luck

Sorunome:

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 :D
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 :D

hellninjas:

Me want play Sorunome...
Get more people :P


parserp:

Hm, after playing this game, I realize that it is actually fun to kill people. :P Anxiously awaiting further progress!

Pages: (1/10) > >>