Bot Testing Vote Thread - Page 2
Forum Index > TL Mafia |
this is a test please ignore + Show Spoiler [last votecount] + On August 15 2019 05:31 Holyflare wrote: Day 1 Vote Count Conversion (1): Holyflare Grackaroni (1): Grackaroni Holyflare (1): Conversion Pandain (1): Jockmcplop Not Voting (5): Eywa-, Pandain, Trfel, Eversince, Raynpelikoneet Currently Conversion is set to be lynched. | ||
Holyflare
United Kingdom30774 Posts
| ||
Holyflare
United Kingdom30774 Posts
| ||
raynpelikoneet
Finland42134 Posts
| ||
Holyflare
United Kingdom30774 Posts
On August 14 2019 21:01 raynpelikoneet wrote: Do you have a "database" or something for "nicknames" like "rayn", "hf", "eywa" (without the - ) etc? No, that's why I said spelling is important :D Some day I'll add some kind of database. | ||
raynpelikoneet
Finland42134 Posts
On August 14 2019 22:02 Holyflare wrote: No, that's why I said spelling is important :D Some day I'll add some kind of database. How does your bot work? Like do you have some kind of UI (like in Xatalos' thingy)? | ||
Holyflare
United Kingdom30774 Posts
On August 14 2019 22:03 raynpelikoneet wrote: How does your bot work? Like do you have some kind of UI (like in Xatalos' thingy)? It scrapes the vote thread, makes a vote count, logs you into a browser and automatically posts the vote count nicely formatted into the vote thread. I'm currently working on: Making it follow a deadline. Scheduling it to post every x minutes/hours. Somehow working out a way for people to request a !votecount and the bot posting it <--- probably most important currently Eventually it will be a bot that hosts its own game. Eventually. I'm learning about classes and pickling so that will be the next project. I could probably make it into a UI at some point when I learn that too! At the moment it's just a bunch of python scripts. | ||
raynpelikoneet
Finland42134 Posts
On August 14 2019 22:09 Holyflare wrote: [...]automatically posts the vote count nicely formatted into the vote thread. Why does everyone want to use a vote thread? Originally voting thread is because host = lazy And now you wanna make your bot lazy? lol | ||
Holyflare
United Kingdom30774 Posts
On August 15 2019 03:16 raynpelikoneet wrote: Why does everyone want to use a vote thread? Originally voting thread is because host = lazy And now you wanna make your bot lazy? lol Well the vote count hourly will be in the vote thread. If someone requests a votecount (in the vote thread still most likely) it can post it in the actual thread. It's no big deal to change where it posts the vote count, it just would take a lot more time to get a response from the bot if it has to parse through all the pages (because currently it redoes the whole scrape of the vote thread each time). The reason the vote thread is a lot quicker for a bot is that it will take about 3 seconds to parse through the 5 or so pages in a vote thread looking for commands rather than the 200+ pages on the main thread. I could and probably will figure out a way to get this scraping thing to remember where it left off to minimise the time it takes and that would enable it to be much quicker in the main thread though. | ||
Holyflare
United Kingdom30774 Posts
| ||
raynpelikoneet
Finland42134 Posts
On August 15 2019 03:27 Holyflare wrote: I prefer vote threads as a player anyway because it lets you see who voted people and when in a really plainly laid out thread location. Ok. I don't feel the same way so i quit this thread. Nice work anyways. | ||
raynpelikoneet
Finland42134 Posts
On August 15 2019 03:26 Holyflare wrote: The reason the vote thread is a lot quicker for a bot is that it will take about 3 seconds to parse through the 5 or so pages in a vote thread looking for commands rather than the 200+ pages on the main thread. I dont understand this though, are you using some 1980 computer? | ||
Holyflare
United Kingdom30774 Posts
On August 15 2019 03:42 raynpelikoneet wrote: I dont understand this though, are you using some 1980 computer? No, if you request a web page too quickly then it blocks you from scraping it. | ||
Conversion
United States3308 Posts
| ||
Holyflare
United Kingdom30774 Posts
On August 15 2019 03:56 Conversion wrote: the limitation is more so teamliquid probably won't like you pinging its site with requests that are bot-like every second, although you could still scrape like every 30 minutes if you get your pick up where you left off functionality going, cause then you can just ignore everything that doesn't have a ##vote and store that in an object to parse through later That's the plan. Then rayn can have his precious thread votes :D | ||
Conversion
United States3308 Posts
| ||
Holyflare
United Kingdom30774 Posts
On August 15 2019 03:59 Conversion wrote: it'd be trivial to do it in both the thread and the vote count thread with a bot though, player will just choose their preference at that point With persistent stored data everything can be in the thread yeah or a vote thread or both yeah. | ||
Holyflare
United Kingdom30774 Posts
| ||
Holyflare
United Kingdom30774 Posts
This is not final, it's not ready for release. It's open to any kind of features people want for now and I can make a list and see what I can do. This is a test thread. | ||
Alakaslam
United States16918 Posts
| ||
Alakaslam
United States16918 Posts
| ||
| ||