Welcome to Yu-Gi-Oh! ETC Forums
![]() |
Welcome to Yu-Gi-Oh! ETC Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Yu-Gi-Oh! ETC Forums by signing in or creating an account.
|
Mafia Bot for IRC Chat
#1
Posted 23 June 2010 - 01:25 PM
The bot will be on the channel #etcmafia on the xerocreative server (if you use the link on the board index instead a stand alone IRC client, then just type "/join #etcmafia" after you connect).
Post here if you are willing to help me with the testing. I will post updates in this thread as progress is made.
#3
Posted 23 June 2010 - 05:22 PM

#4
Posted 24 June 2010 - 07:01 AM
#5
Posted 24 June 2010 - 09:07 AM
but idk if i can get the chat working, last 4 times i tried getting in there it said no gtfo u suck
Edited by JiB, 24 June 2010 - 09:07 AM.
#6
Posted 24 June 2010 - 10:29 AM
Edited by Forte, 24 June 2010 - 10:30 AM.
#7
Posted 25 June 2010 - 08:58 PM
Alas, poor Yorick.
#8
Posted 30 June 2010 - 04:39 AM
Getting Started:
As I already stated, you will need to join ETC's IRC Channel to use this bot. The easiest way is to simply click the "Chat" tab at the top of the forum. However, if that doesn't work for whatever reason, then you must manually join it with another IRC client. I offer these recommendations:
- mIRC (Windows)
- Colloquy (Mac OS X)
- X-Chat (GNU / Linux)
To access ETC's chatroom (or "channel"), connect to the Xerocreative Server (whose address is irc.xerocreative.com). Adjust your nick accordingly and register it if possible. Once connected, type "/join #etc" and you are there! ForteBot will be the name of the bot.
Starting a new Game:
To start a game, simply type "!mafia" while in the channel. If ForteBot is around and no other games are going on, he will begin to assemble a signups list. Then simply type "!join" into the channel to join the game. After a minute, the bot will determine what game to make based on the number of players who join:
- < 5 players - This is an insufficient amount of players, so no game will be started. You will need to type !mafia again to attempt collecting signups again.
- 5 players - 1 Vanilla Townie, 1 Mayor, 2 Mafia, 1 Inspector
- 6 players - 1 Vanilla Townie, 1 Mayor, 2 Mafia, 1 Inspector, 1 Bodyguard
- 7 players - 1 Vanilla Townie, 1 Mayor, 2 Mafia, 1 Inspector, 1 Bodyguard, 1 Hooker
- 8 players - 1 Vanilla Townie, 1 Mayor, 2 Mafia, 1 Inspector, 1 Bodyguard, 1 Hooker, 1 Serial Killer
- 9 players - 2 Vanilla Townies, 1 Mayor, 2 Mafia, 1 Inspector, 1 Bodyguard, 1 Hooker, 1 Serial Killer
- 10 players - 3 Vanilla Townies, 1 Mayor, 2 Mafia, 1 Inspector, 1 Bodyguard, 1 Hooker, 1 Serial Killer
- 11 players - 3 Vanilla Townies, 1 Mayor, 3 Mafia, 1 Inspector, 1 Bodyguard, 1 Hooker, 1 Serial Killer
Explanation of Roles:
Vanilla Townie - Standard powerless role. Town aligned.
Mayor - Vanilla Townie with double vote. Town aligned.
Mafia - Mostly standard mafia goons. They are given their teammates when the game starts and can kill one other player at night by PMing ForteBot !kill USER". Mafia aligned obviously.
Inspector - Typical cop role. Gives the role name of your target at night by PMing ForteBot !inspect USER". Town aligned.
Bodyguard - Standard protector role. Protects a user from kills by PMing ForteBot "!protect USER". Town aligned.
Hooker - Standard roleblocker role. Prevents a user from completing their night action by PMing ForteBot "!grape user" yes, ignore the filter here and use your imagination. Note that targeting one mafia goon stops them all from successfully killing, regardless who sent the command. Town aligned.
Serial Killer - Wins if he is the only surviving player. Can kill at night by PMing ForteBot "!kill USER". Self aligned.
I will add more roles as more testing is completed.
Nights and Days:
When there are enough players, the bot will randomly assign everyone roles. If they have a night action, they may use the above commands to PM them to ForteBot. Nights last 60 seconds.
During the day, you may vote to lynch someone by typing "!vote USER" in the channel. After 90 seconds, the person with majority votes gets lynched. Note that if the majority is a tie, there will be no lynch.
I think you know the conditions to end the game, so I am not going to state that here.
Most other rules are standard, but this bot will not strictly enforce a no outside communication rule. That's up to you.
Disclaimer:
Because this bot is in the testing stages, I cannot guarantee that anything works as stated above as of this post. It is very well possible that the game may very well be unplayable. It's very difficult to fix or even detect some of these problems due to the nature of the testing, so I will need all the help I can get.
Thanks, and have fun!
Edited by Forte, 30 June 2010 - 08:38 PM.
#9
Posted 30 June 2010 - 04:54 AM
Alas, poor Yorick.
#11
Posted 30 June 2010 - 07:30 AM
I can only assume there won't even be enough time for outside convo. And the 90second limit/60second limit will be tought with higher count of players.
But I guess we'll see through testing.
#12
Posted 30 June 2010 - 08:01 AM
Alas, poor Yorick.
#13
Posted 30 June 2010 - 05:19 PM
Also Sage, the bot is written in Java using Jibble's Pircbot API:
http://www.jibble.or...cbot/index.html
Oh, and the bot is in the channel now, so let's start testing!
Edited by Forte, 30 June 2010 - 05:21 PM.
#14
Posted 30 June 2010 - 05:41 PM
Alas, poor Yorick.
#15
Posted 30 June 2010 - 07:55 PM
[22:24] <~Forte> !mafia [22:24] <~ForteBot> A game of mafia has been started! We need at least 5 people in the next 60 seconds to join. To join, simply type !join [22:24] <xSage> !join [22:24] <~ForteBot> xSage has joined the game! [22:24] <~Forte> !join [22:24] <~ForteBot> Forte has joined the game! [22:24] <Krizz> !join [22:24] <~ForteBot> Krizz has joined the game! [22:24] <Sage2> !join [22:24] <~ForteBot> Sage2 has joined the game! [22:25] <Yoy> one more i guess [22:25] <Yoy> !join [22:25] <~ForteBot> Yoy has joined the game! [22:25] * Sage (~14651@XC-AC447966.dhcp.hckr.nc.charter.com) has joined #etc [22:25] <Yoy> Not enough players! [22:25] * Sage (~14651@XC-AC447966.dhcp.hckr.nc.charter.com) Quit (Quit: user exited) [22:25] <~Forte> it is enough [22:25] <Sage2> we have 5 [22:25] <~ForteBot> The game is is about to begin! Players: [xSage, Forte, Krizz, Sage2, Yoy] [22:25] <~ForteBot> The roles will be: [Inspector, Mafia, Mafia, Vanilla Townie, Vanilla Townie] [22:25] -ForteBot- You are: Mafia. At night you can kill other players by PMing me !kill <player>. You are allied with the Mafia. [22:25] -ForteBot- Your team: [xSage, Forte] [22:25] <~ForteBot> Night 0 has started! You have 60 seconds to PM me your night actions! [22:25] <Krizz> Vanilla here [22:26] <Yoy> inspector [22:26] -ForteBot- You have chosen to kill Yoy [22:26] -ForteBot- You have chosen to kill Yoy [22:26] <xSage> xSage is mafia, Sage2 is vanilla [22:26] <xSage> so we killed inspector I guess [22:26] -ForteBot- You have successfully killed Inspector! [22:26] <~ForteBot> Yoy (Inspector) was killed! [22:26] <~ForteBot> Day 1 has started! You have 90 seconds to lynch someone. Type !vote USER to cast your vote! [22:26] <~Forte> !vote Krizz [22:26] <xSage> !vote Sage2 [22:26] <~ForteBot> xSage has voted to lynch Sage2 [22:27] <~ForteBot> Forte has voted to lynch Krizz [22:27] <xSage> !vote Krizz [22:27] <~ForteBot> xSage has voted to lynch Krizz [22:27] <Krizz> !vote Krizz [22:27] <~ForteBot> Krizz has voted to lynch Krizz [22:27] <Sage2> !vote Krizz [22:27] <~ForteBot> Sage2 has voted to lynch Krizz [22:27] <Yoy> FoS [22:27] <xSage> >_< [22:27] <Yoy> .... [22:27] <Yoy> FoS [22:27] <xSage> >_< [22:27] <Yoy> .... [22:27] <xSage> 60 second nights [22:28] <xSage> and people were complaining they're too short >_< [22:28] <~Forte> yeah [22:28] <~Forte> these are long [22:28] <~ForteBot> Krizz (Vanilla Townie) was killed! [22:28] <~ForteBot> Night 1 has started! You have 60 seconds to PM me your night actions! [22:28] <xSage> wooo [22:28] <~Forte> Yes! [22:28] <Krizz> yeah now that I sit here and wait 90 seconds seems plenty long [22:28] -ForteBot- You have chosen to kill Sage2 [22:28] <~Forte> ok Sage [22:28] <~Forte> if this works [22:28] <~Forte> it should say we win [22:28] <xSage> killing Sage2 [22:28] <xSage> yeah [22:28] <~Forte> then we are golden [22:28] <~Forte> though [22:29] <~Forte> i still need to test hooker and bodyguard [22:29] <xSage> we can just make more clones [22:29] <~Forte> hooker was tricky to code [22:29] -ForteBot- You have successfully killed Vanilla Townie! [22:29] <xSage> i bet [22:29] <~ForteBot> Sage2 (Vanilla Townie) was killed! [22:29] <~ForteBot> Game over! Mafia ([xSage, Forte]) wins!
While that was successful, there is still work to be done!
-I have made mayor a default role for now in order to give the town a fair chance in 5 man games.
-Hooker, Bodyguard, and Serial Killer still need to be tested. We need more players to join the test!
-Finally, the bot is only connected as long as my computer is on, so don't expect to see him during late night and early morning hours for now.
#16
Posted 04 July 2010 - 11:08 PM
#17
Posted 04 July 2010 - 11:13 PM
Alas, poor Yorick.
#18
Posted 04 July 2010 - 11:20 PM
#19
Posted 04 July 2010 - 11:23 PM
Alas, poor Yorick.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



















