Well when hostmask are not a good decision, maybe it's better to try something new ...
When there is .startgame command the bot have to change by topic and send privmsg to the channel. That's already done by me. Startgame also opens up the .sign command. The question here is how to make the bot when 10 users are already .sign to randomly make the teams - 5 users in sentinel and 5 in scourge.
When there is .challenge [nick] $nick has to be the captain of team sentinel and $arg has to be the captain of team scourge. When there is 10 users signen in (.sign) the bot have to announce that the pick is started like that :
Code: Select all
<BOT> nick starts the pick, use .pick [nickname]
<nick> .pick someone
<BOT> nick has picked someone, it's nick2's turn
<nick2> .pick somewho
<BOT> nick2 has picked somewho, nick2 it's again your turn.
and so on ... The system is 1-2-2-2-2-1 (nick has to pick 1 player; then nick2 has to pick 2 players; then nick has to pick 2 players; then nick2 has to pick 2 players ; then nick has to pick 2 players; then nick2 has to pick 1 player)
When a player is picked by nick he should be added to team sentinel.
When a player is picked by nick2 he should be added to team scourge.
.listteams command shoud display all the players on both teams.
.result sentinel/scourge/draw
on result sentinel :
Code: Select all
<BOT> The winner is team SENTINEL.
Player1[+50], Player2[+50], Player3[+50], Player4[+50], Player5[+50]
Player6[-50], Player7[-50], Player8[-50], Player9[-50], Player10[-50]
on result scourge :
Code: Select all
<BOT> The winner is team SENTINEL.
Player1[-50], Player2[-50], Player3[-50], Player4[-50], Player5[-50]
Player6[+50], Player7[+50], Player8[+50], Player9[+50], Player10[+50]
on result draw :
Code: Select all
<BOT> There is no winner. Game successfuly closed
After the game is once closed (.close for startgame and .ready for challenge) the teams should be erased.
There are also vouch/unvouch commands (.vouch [nickname]) should add this user to the bot's db with a 1000 points and .unvouch should del this user.
.top10 shows the top 10 players based on XP.
Code: Select all
<BOT> player1[1500],player2[1400] and so on ..
.stats [nickname] - shows nickname statistics
Code: Select all
<BOT> somewho is on place [place] with [xxxx] XP.
where place is 3/100 for example where 3 is current position and 100 is all the players that are vouched.
Hope that's possible.