|
Iceland22632 Posts
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/c10c42dd4dd330c0f89cI 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!
|
Variables nolo, yolo, klolo and klol wtf :D:D
|
Iceland22632 Posts
what on earth is leiningen?
edit: this looks like some kind of a bastard child of lisp or something, jesus.
|
Kind of a tool for managing Clojure projects (running, testing etc.)
|
Blazinghand
United States25550 Posts
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/c10c42dd4dd330c0f89cI 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
|
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.
|
Iceland22632 Posts
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 
|
Iceland22632 Posts
yeah clojure means no-go for me too. I'm not even a programmer!
|
tl mafia getting all high tech (Y)
|
|
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.
|
Everything seems to work properly now with the test game (Half the Sky's game). Let's see if things keep going so well
|
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?
|
|
Happy birthday rayn haha :D
|
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]
|
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.
|
Yeah the nonvoters list is work-in-progress :D You can ignore it until it works lol
|
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.
|
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..
|
|
|
|