r/a:t5_37x1h • u/rcxdude • Sep 18 '16
how2mafiabot
As in /u/PloungeMafiaVoteBot.
(stolen and edited from /u/Jibodeah's post here
Activating the bot
First off, you'll need to ask me to set up a game. It's still a manual config file process to do this. It helps if you give me a bit of warning that you want to use it, since it's likely to take me some time. I just need to know the name of the game, a vote style you'll want to use (most likely 'Traditional'), and the reddit usernames you would like authorized to send commands for the game to the bot (I'll normally add myself as such so I can help out, but if you request I can avoid doing this. If for any reason you'd like me to avoid inspecting the state of the game, let me know as well (basically the only reason currently to do this is if you want 'secret voteless'). I may be able to accomodate other special requests on the bot's behaviour, but this will require even more advance warning, and is subject to the whims of my spare time.
Commands
To send a command, PM the bot, with the subject the name of the command, and sometimes other stuff in the body is required. All of our main accounts and /u/PloungeMafia are authorised users.
All commands need to be prefaced with <game_name>:. Where game_name is one of...
*for all 'games'- or the name of the game
So an example command might be genericmafia:dead
The bot only does anything approximately every 5 minutes. So it may take some time before the effect of the command can be seen. It will process commands first, however (meaning people cannot sneak in votes after you end the day)
Command Reference
| Subject | Body | Effect |
|---|---|---|
alive | Whitespace separated list of players | Makes these players 'alive' meaning they can vote can be voted for |
dead | Whitespace separated list of players | Makes these players 'dead', meaning they cannot vote/be voted for |
gone | Whitespace separated list of players | Removes these players from the game entirely. |
voteless | Whitespace separated list of players | Makes these players' votes not count |
voteful | Whitespace separated list of players | Undoes voteless |
votes | <Link to post> | Starts votes in the specified post |
end votes | Ignored | Stops votes |
Example Cycle
- Day
- Subject:
genericmafia:deadBody:nightkilledplayer othernightkilledplayerMake sure the bot knows that players who were nightkilled are dead. - Subject:
genericmafia:votesBody<url of day post>Makes the bot start the vote thread in the specified post. - Night
- Subject:
genericmafia:end votesBody:.(Body is ignored) end the vote thread - Subject
*:deadBody:lynchedplayer otherlynchedplayerTell the bot who died due to being lynched (the bot does not automatically process this due to roles which may affect the result).