• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 00:49
CET 06:49
KST 14:49
  • 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 Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket11Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
StarCraft Evolution League (SC Evo Biweekly) RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
Data analysis on 70 million replays soO on: FanTaSy's Potential Return to StarCraft FlaSh on: Biggest Problem With SnOw's Playstyle [ASL20] Ask the mapmakers — Drop your questions BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread [Game] Osu! Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2117 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
Next event in 1h 41m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 201
ProTech107
StarCraft: Brood War
Calm 3161
Leta 297
yabsab 68
Sexy 45
ToSsGirL 31
Icarus 7
Dota 2
monkeys_forever402
XaKoH 314
League of Legends
JimRising 804
Other Games
summit1g6415
fl0m332
C9.Mang0281
NeuroSwarm67
Trikslyr35
CosmosSc2 22
Organizations
StarCraft: Brood War
UltimateBattle 100
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 65
• practicex 23
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity7
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1020
• Stunt441
Other Games
• Scarra713
Upcoming Events
RSL Revival
1h 41m
Zoun vs Classic
SHIN vs TriGGeR
herO vs Reynor
Maru vs MaxPax
WardiTV Korean Royale
6h 11m
Replay Cast
17h 11m
RSL Revival
1d 1h
WardiTV Korean Royale
1d 6h
SC Evo League
1d 6h
IPSL
1d 11h
Julia vs Artosis
JDConan vs DragOn
OSC
1d 11h
BSL 21
1d 14h
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
2 days
[ Show More ]
Wardi Open
2 days
IPSL
2 days
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
2 days
StRyKeR vs Artosis
OyAji vs KameZerg
Replay Cast
2 days
Monday Night Weeklies
3 days
Replay Cast
3 days
Wardi Open
4 days
Replay Cast
5 days
Wardi Open
5 days
Tenacious Turtle Tussle
5 days
The PondCast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 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.