• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:32
CEST 00:32
KST 07:32
  • 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
[ASL20] Ro8 Preview Pt2: Holding On8Maestros of the Game: Live Finals Preview (RO4)5TL.net Map Contest #21 - Finalists4Team TLMC #5: Vote to Decide Ladder Maps!0[ASL20] Ro8 Preview Pt1: Mile High15
Community News
PartinG joins SteamerZone, returns to SC2 competition195.0.15 Balance Patch Notes (Live version)91$2,500 WardiTV TL Map Contest Tournament 151Stellar Fest: StarCraft II returns to Canada11Weekly Cups (Sept 22-28): MaxPax double, Zerg wins, PTR12
StarCraft 2
General
PartinG joins SteamerZone, returns to SC2 competition 5.0.15 Balance Patch Notes (Live version) ZvT - Army Composition - Slow Lings + Fast Banes Stellar Fest: StarCraft II returns to Canada Had to smile :)
Tourneys
Stellar Fest $2,500 WardiTV TL Map Contest Tournament 15 Sparkling Tuna Cup - Weekly Open Tournament LANified! 37: Groundswell, BYOC LAN, Nov 28-30 2025 Maestros of The Game—$20k event w/ live finals in Paris
Strategy
Custom Maps
External Content
Mutation # 493 Quick Killers Mutation # 492 Get Out More Mutation # 491 Night Drive Mutation # 490 Masters of Midnight
Brood War
General
BarrackS' ASL S20 Ro.8 Review&Power of Friendship Question regarding recent ASL Bisu vs Larva game BGH Auto Balance -> http://bghmmr.eu/ Thoughts on rarely used units RepMastered™: replay sharing and analyzer site
Tourneys
[ASL20] Ro8 Day 4 [Megathread] Daily Proleagues [ASL20] Ro8 Day 3 Small VOD Thread 2.0
Strategy
TvZ Theorycraft - Improving on State of the Art Current Meta I am doing this better than progamers do. Simple Questions, Simple Answers
Other Games
General Games
ZeroSpace Megathread Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI Russo-Ukrainian War Thread Canadian Politics Mega-thread
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts The Automated Ban List BarCraft in Tokyo Japan for ASL Season5 Final
Blogs
[AI] From Comfort Women to …
Peanutsc
Mental Health In Esports: Wo…
TrAiDoS
Try to reverse getting fired …
Garnet
[ASL20] Players bad at pi…
pullarius1
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1637 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 States25552 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
[BSL 2025] Weekly
18:00
#16
ZZZero.O137
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nathanias 114
StarCraft: Brood War
Britney 15288
Rain 4764
ZZZero.O 137
Larva 108
Dewaltoss 105
sSak 101
NaDa 35
ggaemo 15
ajuk12(nOOB) 12
Dota 2
canceldota62
League of Legends
JimRising 829
Counter-Strike
Stewie2K284
Heroes of the Storm
Khaldor317
Other Games
summit1g5923
FrodaN3885
Grubby3138
Mlord655
KnowMe276
C9.Mang0177
Sick140
XaKoH 103
Trikslyr69
UpATreeSC55
Mew2King39
ViBE27
JuggernautJason10
Organizations
Other Games
EGCTV1282
gamesdonequick982
StarCraft 2
angryscii 34
Other Games
BasetradeTV19
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• EnkiAlexander 58
• Hupsaiya 50
• RyuSc2 45
• davetesta42
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21346
• WagamamaTV614
• Ler88
Other Games
• imaqtpie1548
• tFFMrPink 14
Upcoming Events
Sparkling Tuna Cup
11h 28m
BSL Team Wars
20h 28m
Team Bonyth vs Team Dewalt
Dewalt vs kogeT
JDConan vs Tarson
RaNgeD vs DragOn
StRyKeR vs Bonyth
Aeternum vs Hejek
IPSL
20h 28m
DragOn vs Fear
Radley vs eOnzErG
Replay Cast
1d 11h
Map Test Tournament
2 days
Map Test Tournament
3 days
Tenacious Turtle Tussle
4 days
The PondCast
4 days
Map Test Tournament
4 days
Map Test Tournament
5 days
[ Show More ]
OSC
5 days
Korean StarCraft League
6 days
CranKy Ducklings
6 days
Map Test Tournament
6 days
OSC
6 days
[BSL 2025] Weekly
6 days
Safe House 2
6 days
Liquipedia Results

Completed

KCM Race Survival 2025 Season 3
Maestros of the Game
HCC Europe

Ongoing

BSL 20 Team Wars
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
Acropolis #4 - TS2
EC S1
ESL Pro League S22
Frag Blocktober 2025
Urban Riga Open #1
FERJEE Rush 2025
Birch Cup 2025
DraculaN #2
LanDaLan #3
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025

Upcoming

C-Race Season 1
IPSL Winter 2025-26
SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
WardiTV TLMC #15
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
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 © 2025 TLnet. All Rights Reserved.