• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:34
CEST 00:34
KST 07:34
  • 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: 1582 users

Mafia Votecount Tool - Page 2

Forum Index > TL Mafia
Post a Reply
Prev 1 2 3 4 5 11 12 13 Next All
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 09 2015 15:22 GMT
#21
You should definitely get a github going, we can pretty easily expand the code for this. Also I noticed you're hosting on heroku, are you using node as well? or just plain jquery?

We can talk to TL admins to spit out JSON for mafia forums for security reasons, ask them to just add an API Token.
Life?
Alakaslam
Profile Blog Joined September 2011
United States17336 Posts
July 09 2015 15:47 GMT
#22
Stop making derogatory threads about me

+ Show Spoiler +
I am not a tool!+ Show Spoiler +
lol
If you think Elon Musk is a Nazi, it is because YOU radicalized him!
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 09 2015 17:44 GMT
#23
Here's the GitHub page for this if you're interested:

https://github.com/Xatalos/mafia-votecount

JQuery is used a bit, but not Node.js.
"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 09 2015 17:49 GMT
#24
It doesn't currently run locally, by the way. If you want to fix that, then revert the changes I made in the last week or so (database settings from PostgreSQL -> H2).
"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
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 09 2015 18:08 GMT
#25
Purpose of using clojure as opposed to PHP or other languages? Just curious :D
Life?
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 09 2015 21:33 GMT
#26
Clojure was chosen because my friend (TripleSnail) wanted to learn Clojure, so I suggested this idea to him At the same time I wanted to learn JavaScript.
"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
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 10 2015 14:04 GMT
#27
On July 10 2015 06:33 Xatalos wrote:
Clojure was chosen because my friend (TripleSnail) wanted to learn Clojure, so I suggested this idea to him At the same time I wanted to learn JavaScript.


Javascript treating you right? But that's cool, I'm definitely going to look into it. Thanks for the push start!
Life?
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 10 2015 17:59 GMT
#28
On July 10 2015 23:04 ShoCkeyy wrote:
Show nested quote +
On July 10 2015 06:33 Xatalos wrote:
Clojure was chosen because my friend (TripleSnail) wanted to learn Clojure, so I suggested this idea to him At the same time I wanted to learn JavaScript.


Javascript treating you right? But that's cool, I'm definitely going to look into it. Thanks for the push start!


It's been a pretty interesting journey. I've learned quite a few new things about JavaScript/CSS (especially the one page approach implementation) and also a bit of Clojure.

By the way I don't think there's much need for a JSON feed or something like that. TripleSnail said that the easy part is finding the posts and their content as well. The problems are with sorting the content of the posts and giving the content in a different form wouldn't help with that really.

You're free to use the code for something else if you want to. You can also make a pull request if you notice something that needs fixing.

I should get back to working on the project in the near future
"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
gonzaw
Profile Joined December 2011
Uruguay4911 Posts
July 12 2015 09:23 GMT
#29
Awesome.

Nice choice to use Clojure. If you start learning more of it surely you'll come up with new ways to improve your app.

On July 06 2015 21:24 Xatalos wrote:
1) The votes of the current day could perhaps also be displayed in the same format as the regular votecount posts on the forum. That way the host/co-host could simply always copy the most recent vote listing of this format to the thread when there's a need for another votecount post. However, there's a major problem with this idea: it's that many players vote with all kinds of "nicknames" or just misspell when they're voting. That causes huge difficulties for displaying votes neatly in such a format.


Like people said, ignore the "nicknames" and stuff. People should be able to know how CTRL+C works.
If you do allow hosts to pre-define the list of players, then you can only allow votes on those players, and give out warnings if someone voted for someone differently.
Or if you want it to be more flexible (for instance if you allow stuff like "#Vote: GLaDOS"), just leave it like it is.

2) There could be some sort of an authentication system for creating new games. This way only actual hosts could create new games and there wouldn't be any need to worry about trolls ruining the website by spamming the "Create New Game" button. Hopefully there wouldn't even be a need for this, but...


Nah, that'd make it overly-complicated. You'd have to manage those accounts manually, only for people in TL. If someone new wants to start using your app you have to create a new account just for him, etc.
With tools like a Captcha (to prevent bots from creating games), and some mild moderating, there won't be problems. Alternatively give someone the "job" of accepting which game is created or not. Each "create new game" button creates an application which you can accept or reject. But until that problem actually happens, I'd say ignore it.

Also, in the near/mid future, you may want to expose your vote-counter as a service (web services and all that). That way you could create games, receive notifications for new votes, get a list of all games/current votes by bots and other apps. It'd be easier to add security there too (you can give credentials to certain bots/apps and never worry again), etc. Might come handy in the future.


Once I finish my bachelors degree (is it called that in USA?), I have a craving for starting a project similar to this. I just need some free time to get rolling.
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 12 2015 10:11 GMT
#30
Thanks for the suggestions.

I, too, hope that nobody decides to troll the app :D

My current idea is to do it just like rayn suggested. We'll see how it goes. Going to be away from home for a bit now though.
"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 14 2015 20:22 GMT
#31
I implemented a tentative version of the "copy-pasteable" votecount listing that rayn suggested.

It looks kind of like this at the moment:

---

Current Day Votecount

Bill Murray (2): jcarlsoniv,Lord Tolkien
lord tolkien (0):
BillMurray (2): AsmodeusXI,ComaDose
vote: jcarlsoniv (1): Bill Murray
jcarlsoniv (1): Bill Murray
yomato (1): ComaDose

---

Source for the example: https://mafia-votecount.herokuapp.com/#487695-ot-vs-the-mods-mafia

Feedback is welcome!

At the moment I'm considering that it could be nice to also add things like:

- The list of non-voters
- Unvotes don't delete the vote but just overwrite it in the view
- Ordering of the votes in highest -> lowest order?

But that's enough for this session :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
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 14 2015 20:25 GMT
#32
(By the way... If you're wondering why Bill Murray has two votes in that example, it's because he voted twice in a row without unvoting... When you unvote, it deletes all your votes in the view, but in that case, two different votes without unvoting -> two votes in the view...)
"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 14 2015 20:26 GMT
#33
The "Players" list is pretty useless at this point in time, so I'll just delete it for the time being while at it....
"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 14 2015 20:32 GMT
#34
I'm actually not sure what should be done in that situation (a player voting another player without unvoting). Should it be considered as an unvote+vote? Or an invalid vote? Opinions?
"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 14 2015 20:33 GMT
#35
(Currently it just adds the new vote without doing anything about the old vote)
"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
Holyflare
Profile Blog Joined November 2010
United Kingdom30775 Posts
July 14 2015 22:12 GMT
#36
On July 15 2015 05:32 Xatalos wrote:
I'm actually not sure what should be done in that situation (a player voting another player without unvoting). Should it be considered as an unvote+vote? Or an invalid vote? Opinions?


unvote and vote since he clearly meant to vote someone new
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 15 2015 09:00 GMT
#37
I guess that would make more sense, yeah.
"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 15 2015 10:12 GMT
#38
Well, now a vote on another player is considered as unvote+vote....
"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
Holyflare
Profile Blog Joined November 2010
United Kingdom30775 Posts
July 15 2015 10:18 GMT
#39
Sweet! Ty dude. You should enable some kind of version where it just crosses out the name for an unvote if people want that info or something
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 15 2015 10:41 GMT
#40
Just implementing that feature Sorry if the app is being a bit unstable in the recent minutes since I'm testing stuff directly in the Heroku version.
"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 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 26m
BSL Team Wars
20h 26m
Team Bonyth vs Team Dewalt
Dewalt vs kogeT
JDConan vs Tarson
RaNgeD vs DragOn
StRyKeR vs Bonyth
Aeternum vs Hejek
IPSL
20h 26m
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.