• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:29
CET 15:29
KST 23:29
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets0$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)12Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822
StarCraft 2
General
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns Spontaneous hotkey change zerg Chinese SC2 server to reopen; live all-star event in Hangzhou SC2 All-Star Invitational: Jan 17-18
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026 OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
I would like to say something about StarCraft Potential ASL qualifier breakthroughs? BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Awesome Games Done Quick 2026! Mechabellum Beyond All Reason Stormgate/Frost Giant Megathread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1519 users

Mafia Votecount Tool - Page 5

Forum Index > TL Mafia
Post a Reply
Prev 1 2 3 4 5 6 7 11 12 13 Next All
Palmar
Profile Blog Joined July 2010
Iceland22633 Posts
July 24 2015 18:31 GMT
#81
On July 25 2015 03:29 Blazinghand wrote:
Show nested quote +
On July 25 2015 03:26 Palmar wrote:
On July 25 2015 03:19 Blazinghand wrote:
On July 25 2015 03:16 Palmar wrote:
you should open source this tbh.


I wouldn't mind contributing and I'm sure there are other TL Mafia community members who know how to program who could help out, or at least look over the code

I already have a command line tool that does kind of the same thing but I never bothered to make a configuration part for it or make it readable. I'm not even sure it works but it did run the vote counting for storm mafia:

https://gist.github.com/palmar/c10c42dd4dd330c0f89c

I also have a bunch of other mafia related scripts and stuff (tool to count the words/post amount per player in a game, a mafia hosting IRC bot and at one point I hooked together our skype group and our IRC channel through bots).


these are some of the most disgusting variable names I've ever seen hahahah


 solo = post.find('div', attrs={'class':'quote'})
if solo:
solo.replace_with('')
folo = post.find('b')
try:
yolo = folo.get_text()
except:
yolo = ""
pass
nolo = yolo.encode('ascii', 'ignore')
lolo = nolo.lower()
if "##vote" in lolo:
trolo = lolo.split("##vote")
try:
dmolo = trolo[1]
except:
pass
klolo = dmolo.translate(None, ' :')
fullcontentlist.append(klolo)
elif "##unvote" in lolo:
klol = "unvote"


it's beautiful isn't it!
Computer says mafia
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 24 2015 18:35 GMT
#82
Variables nolo, yolo, klolo and klol wtf :D:D
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Palmar
Profile Blog Joined July 2010
Iceland22633 Posts
Last Edited: 2015-07-24 18:38:33
July 24 2015 18:35 GMT
#83
what on earth is leiningen?

edit: this looks like some kind of a bastard child of lisp or something, jesus.
Computer says mafia
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 24 2015 18:38 GMT
#84
Kind of a tool for managing Clojure projects (running, testing etc.)
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Blazinghand *
Profile Blog Joined December 2010
United States25557 Posts
July 24 2015 18:38 GMT
#85
On July 25 2015 03:31 Palmar wrote:
Show nested quote +
On July 25 2015 03:29 Blazinghand wrote:
On July 25 2015 03:26 Palmar wrote:
On July 25 2015 03:19 Blazinghand wrote:
On July 25 2015 03:16 Palmar wrote:
you should open source this tbh.


I wouldn't mind contributing and I'm sure there are other TL Mafia community members who know how to program who could help out, or at least look over the code

I already have a command line tool that does kind of the same thing but I never bothered to make a configuration part for it or make it readable. I'm not even sure it works but it did run the vote counting for storm mafia:

https://gist.github.com/palmar/c10c42dd4dd330c0f89c

I also have a bunch of other mafia related scripts and stuff (tool to count the words/post amount per player in a game, a mafia hosting IRC bot and at one point I hooked together our skype group and our IRC channel through bots).


these are some of the most disgusting variable names I've ever seen hahahah


 solo = post.find('div', attrs={'class':'quote'})
if solo:
solo.replace_with('')
folo = post.find('b')
try:
yolo = folo.get_text()
except:
yolo = ""
pass
nolo = yolo.encode('ascii', 'ignore')
lolo = nolo.lower()
if "##vote" in lolo:
trolo = lolo.split("##vote")
try:
dmolo = trolo[1]
except:
pass
klolo = dmolo.translate(None, ' :')
fullcontentlist.append(klolo)
elif "##unvote" in lolo:
klol = "unvote"


it's beautiful isn't it!


ugh
When you stare into the iCCup, the iCCup stares back.
TL+ Member
Keirathi
Profile Joined May 2012
United States4679 Posts
Last Edited: 2015-07-24 18:46:53
July 24 2015 18:44 GMT
#86
On July 25 2015 03:29 Palmar wrote:
I think someone... maybe keirathi? I can't remember really, even made some kind of a fuzzy matching and alias support for nicknames. That was fantastic.


Wasn't me. Only thing I've written for here was the useless C9++ generator

I considered writing it last night when I first saw this thread and tried to think of ways to make it more universal, but then I saw that it was in Clojure and decided I don't have time to learn an entirely new way of programming lol.
My dear friend if I have gone pants on head, you have gone socks on ears!!! -ShiaoPi
Palmar
Profile Blog Joined July 2010
Iceland22633 Posts
July 24 2015 18:48 GMT
#87
It was lonemeow, I even found the git but I'm not gonna post it here for him (he'd probably be fine with it but don't wanna be rude).

It's much better than mine

Computer says mafia
Palmar
Profile Blog Joined July 2010
Iceland22633 Posts
July 24 2015 18:49 GMT
#88
yeah clojure means no-go for me too. I'm not even a programmer!
Computer says mafia
JieXian
Profile Blog Joined August 2008
Malaysia4677 Posts
July 24 2015 19:15 GMT
#89
tl mafia getting all high tech (Y)
Please send me a PM of any song you like that I most probably never heard of! I am looking for people to chat about writing and producing music | https://www.youtube.com/watch?v=noD-bsOcxuU |
wherebugsgo
Profile Blog Joined February 2010
Japan10647 Posts
July 25 2015 07:25 GMT
#90
LOL that script
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 25 2015 10:25 GMT
#91
Btw wherebugsgo... Does the "bugs" in your name mean actual bugs or computer bugs?

And btw I also created a C9++ setup generator earlier here: http://www.teamliquid.net/forum/mafia/468070-c9-setup-generator With that said, it seems that the site I used to host it is down currently :/ At least you can still run the JavaScript locally if you want to.
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 25 2015 10:46 GMT
#92
Everything seems to work properly now with the test game (Half the Sky's game). Let's see if things keep going so well
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
raynpelikoneet
Profile Joined April 2007
Finland43270 Posts
July 25 2015 14:33 GMT
#93
On July 25 2015 19:25 Xatalos wrote:
Btw wherebugsgo... Does the "bugs" in your name mean actual bugs or computer bugs?

bugs' account name is one of the most intelligent i have heard.
can you figure out why?
table for two on a tv tray
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 25 2015 17:03 GMT
#94
Not really...
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 26 2015 18:03 GMT
#95
Happy birthday rayn haha :D
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Half the Sky
Profile Joined May 2014
Germany9029 Posts
Last Edited: 2015-07-26 18:33:36
July 26 2015 18:32 GMT
#96
Happy birthday Rayn!

Also Xata and I have PMed but of note - We are in Day 1 of Down Under 3, and as follows:

Yeh I should have said something. Case sensitivity isn't a big thing but what concerns me is if there is a tie and given current definitions of plurality the generator doesn't seem to account for that. The player who most recently had more votes should be lynched.

I've noticed on the last votecount (1930 BST) I've done the non-voters are getting accounted for, so thumbs up there.
However, there is a bracketed "object name" placeholder, so I'm not sure what that's about.

I am still re-ordering the votes based on plurality.

Current Day Votecount


rsoultin (0): Onegu, Snickers
kelsiersc (1): Snickers, GlowingBear
hopeless1der (1): raynpelikoneet, Clarity_nl, scott31337
raynpelikoneet (1): Palmar
palmar (0): FirmTofu
clarity_nl (0): rsoultin
scott31337 (3): boxerfred, Hopeless1der, FirmTofu
firmtofu (5): raynpelikoneet, Onegu, KelsierSC, rsoultin, ObiWanShinobi
boxerfred (1): Snickers

Not Voting (10): [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], raynpelikoneet, Onegu, rsoultin, scott31337]
The phoenix must burn to emerge. - Janet Fitch
Half the Sky
Profile Joined May 2014
Germany9029 Posts
Last Edited: 2015-07-26 18:36:26
July 26 2015 18:36 GMT
#97
Also in the above, the no voters have already voted as well. I had to edit that all out except for Scott who actually did unvote as of the most recent vote count.

So that is another bug there.
The phoenix must burn to emerge. - Janet Fitch
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 26 2015 20:05 GMT
#98
Yeah the nonvoters list is work-in-progress :D You can ignore it until it works lol
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 26 2015 22:04 GMT
#99
Now the list of non-voters *should* work :D

We'll see...

Please note that the app considers a new day started once the first vote of a new day is given. So the non-voters list will show the values of the previous day until a new vote for the new day is given basically.
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 26 2015 22:16 GMT
#100
Oh damn... Forgot that players die during the game :D

At the moment the non-voters list should only work properly on D1. Dead players need to be removed manually from that list..
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Prev 1 2 3 4 5 6 7 11 12 13 Next All
Please log in or register to reply.
Live Events Refresh
Wardi Open
14:00
#69
WardiTV1069
Rex163
Liquipedia
RongYI Cup
11:00
Qualifier 2
OGKoka 305
BRAT_OK 126
3DClanTV 30
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko535
OGKoka 305
Rex 163
BRAT_OK 110
Harstem 99
StarCraft: Brood War
Rain 4374
Larva 1188
Horang2 957
Mini 761
Hyuk 720
EffOrt 672
BeSt 599
Light 450
Snow 444
ZerO 427
[ Show more ]
ggaemo 353
actioN 350
firebathero 175
Soma 145
Zeus 134
Barracks 131
Pusan 120
JYJ 113
Rush 112
Mind 96
Aegong 84
sorry 82
Sharp 77
Sea.KH 69
Leta 51
910 48
Hyun 47
Movie 47
Free 37
Mong 32
Yoon 30
soO 25
Terrorterran 25
HiyA 23
zelot 20
JulyZerg 15
Noble 14
GoRush 11
Rock 9
Sacsri 7
ajuk12(nOOB) 7
Bale 6
Dota 2
qojqva2155
ODPixel219
XcaliburYe110
syndereN4
Counter-Strike
x6flipin569
markeloff188
Super Smash Bros
Westballz27
Other Games
Gorgc2201
singsing2015
B2W.Neo711
hiko594
crisheroes344
Fuzer 167
Sick123
Pyrionflax81
ZerO(Twitch)11
Organizations
Other Games
gamesdonequick4990
StarCraft: Brood War
UltimateBattle 1235
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• naamasc222
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• TFBlade1535
Upcoming Events
Monday Night Weeklies
3h 1m
WardiTV Invitational
21h 31m
WardiTV Invitational
1d 21h
The PondCast
2 days
OSC
2 days
OSC
3 days
All Star Teams
4 days
INnoVation vs soO
sOs vs Scarlett
uThermal 2v2 Circuit
4 days
All Star Teams
5 days
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
5 days
[ Show More ]
OSC
5 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

Proleague 2026-01-11
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
OSC Championship Season 13
Underdog Cup #3
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.